1. 08 12月, 2011 3 次提交
  2. 05 12月, 2011 2 次提交
    • A
      aec60f51
    • A
      ASoC: Fix dependency for SND_SOC_RAUMFELD and SND_PXA2XX_SOC_HX4700 · b971c370
      Axel Lin 提交于
      SND_SOC_RAUMFELD selects SND_SOC_CS4270 which needs CONFIG_I2C,
      and also selects SND_SOC_AK4104 which needs SPI_MASTER.
      Thus make SND_SOC_RAUMFELD depend on I2C && SPI_MASTER.
      
      Add depend on SPI_MASTER to fix below build error if CONFIG_SPI_MASTER
      is not selected.
      
        LD      .tmp_vmlinux1
      sound/built-in.o: In function `ak4104_spi_write':
      last.c:(.text+0x290cc): undefined reference to `spi_sync'
      sound/built-in.o: In function `ak4104_probe':
      last.c:(.text+0x292a0): undefined reference to `spi_write_then_read'
      sound/built-in.o: In function `ak4104_spi_probe':
      last.c:(.text+0x29398): undefined reference to `spi_setup'
      sound/built-in.o: In function `ak4104_init':
      last.c:(.init.text+0x4ec): undefined reference to `spi_register_driver'
      make: *** [.tmp_vmlinux1] Error 1
      
      Add depend on I2C to fix below build error if CONFIG_I2C is not selected:
        CC      sound/soc/codecs/cs4270.o
      sound/soc/codecs/cs4270.c: In function 'cs4270_i2c_probe':
      sound/soc/codecs/cs4270.c:657: error: implicit declaration of function 'i2c_smbus_read_byte_data'
      sound/soc/codecs/cs4270.c: In function 'cs4270_init':
      sound/soc/codecs/cs4270.c:730: error: implicit declaration of function 'i2c_add_driver'
      sound/soc/codecs/cs4270.c: In function 'cs4270_exit':
      sound/soc/codecs/cs4270.c:736: error: implicit declaration of function 'i2c_del_driver'
      make[3]: *** [sound/soc/codecs/cs4270.o] Error 1
      make[2]: *** [sound/soc/codecs] Error 2
      make[1]: *** [sound/soc] Error 2
      make: *** [sound] Error 2
      
      SND_PXA2XX_SOC_HX4700 selects SND_SOC_AK4641 which needs CONFIG_I2C.
      Thus make SND_PXA2XX_SOC_HX4700 depend on I2C.
      
      Add depend on I2C to fix below build error if CONFIG_I2C is not selected:
        CC      sound/soc/codecs/ak4641.o
      sound/soc/codecs/ak4641.c: In function 'ak4641_modinit':
      sound/soc/codecs/ak4641.c:646: error: implicit declaration of function 'i2c_add_driver'
      sound/soc/codecs/ak4641.c: In function 'ak4641_exit':
      sound/soc/codecs/ak4641.c:656: error: implicit declaration of function 'i2c_del_driver'
      make[3]: *** [sound/soc/codecs/ak4641.o] Error 1
      make[2]: *** [sound/soc/codecs] Error 2
      make[1]: *** [sound/soc] Error 2
      make: *** [sound] Error 2
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      b971c370
  3. 25 11月, 2011 1 次提交
  4. 23 11月, 2011 1 次提交
    • L
      ASoC: Constify snd_soc_dai_ops structs · 85e7652d
      Lars-Peter Clausen 提交于
      Commit 1ee46ebd("ASoC: Make the DAI ops constant in the DAI structure")
      introduced the possibility to have constant DAI ops structures, yet this is
      barley used in both existing drivers and also new drivers being submitted,
      although none of them modifies its DAI ops structure. The later is not
      surprising since existing drivers are often used as templates for new drivers.
      So this patch just constifies all existing snd_soc_dai_ops structs to eliminate
      the issue altogether.
      
      The patch was generated with the following coccinelle semantic patch:
      // <smpl>
      @@
      identifier ops;
      @@
      -struct snd_soc_dai_ops ops =
      +const struct snd_soc_dai_ops ops =
      { ... };
      // </smpl>
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      85e7652d
  5. 01 11月, 2011 1 次提交
  6. 13 10月, 2011 2 次提交
    • A
      ASoC: pxa: Remove redundant snd_soc_dapm_sync() calls from machine drivers · dbe37dbc
      Axel Lin 提交于
      The core will sync DAPM as part of the card initialization, there is no
      need for machine drivers to do so during their setup.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      dbe37dbc
    • A
      ASoC: Make SND_SOC_SAARB and SND_SOC_TAVOREVB3 select MFD_88PM860X · b29a33a2
      Axel Lin 提交于
      In saarb_pm860x_init() and evb3_pm860x_init(), we call
      pm860x_hs_jack_detect() and pm860x_mic_jack_detect() which in turn
      calls pm860x_set_bits().
      Thus make SND_SOC_SAARB and SND_SOC_TAVOREVB3 select MFD_88PM860X.
      
      This patch fixes below build error if CONFIG_MFD_88PM860X is not configured.
      
        LD      .tmp_vmlinux1
      sound/built-in.o: In function `pm860x_write_reg_cache':
      last.c:(.text+0x29e9c): undefined reference to `pm860x_reg_write'
      sound/built-in.o: In function `pm860x_set_bias_level':
      last.c:(.text+0x29ecc): undefined reference to `pm860x_set_bits'
      last.c:(.text+0x29f00): undefined reference to `pm860x_reg_write'
      last.c:(.text+0x29f18): undefined reference to `pm860x_reg_write'
      sound/built-in.o: In function `pm860x_read_reg_cache':
      last.c:(.text+0x29f40): undefined reference to `pm860x_reg_read'
      sound/built-in.o: In function `pm860x_probe':
      last.c:(.text+0x2a034): undefined reference to `pm860x_bulk_read'
      sound/built-in.o: In function `pm860x_codec_handler':
      last.c:(.text+0x2a344): undefined reference to `pm860x_reg_read'
      last.c:(.text+0x2a354): undefined reference to `pm860x_reg_read'
      sound/built-in.o: In function `pm860x_mic_jack_detect':
      last.c:(.text+0x2a450): undefined reference to `pm860x_set_bits'
      sound/built-in.o: In function `pm860x_hs_jack_detect':
      last.c:(.text+0x2a4d0): undefined reference to `pm860x_set_bits'
      last.c:(.text+0x2a4f8): undefined reference to `pm860x_set_bits'
      last.c:(.text+0x2a510): undefined reference to `pm860x_set_bits'
      make: *** [.tmp_vmlinux1] Error 1
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      b29a33a2
  7. 08 10月, 2011 1 次提交
  8. 03 10月, 2011 2 次提交
  9. 06 9月, 2011 1 次提交
  10. 14 8月, 2011 1 次提交
  11. 08 7月, 2011 1 次提交
  12. 24 6月, 2011 1 次提交
  13. 08 6月, 2011 1 次提交
  14. 24 5月, 2011 1 次提交
  15. 20 5月, 2011 1 次提交
  16. 03 4月, 2011 2 次提交
  17. 30 3月, 2011 3 次提交
  18. 11 3月, 2011 2 次提交
  19. 25 2月, 2011 1 次提交
  20. 03 2月, 2011 1 次提交
  21. 27 1月, 2011 2 次提交
  22. 25 1月, 2011 1 次提交
  23. 19 1月, 2011 2 次提交
  24. 01 12月, 2010 1 次提交
  25. 25 11月, 2010 1 次提交
  26. 22 11月, 2010 1 次提交
  27. 06 11月, 2010 2 次提交
    • L
      ASoC: Decouple DAPM from CODECs · ce6120cc
      Liam Girdwood 提交于
      Decoupling Dynamic Audio Power Management (DAPM) from codec devices is
      required when developing ASoC further. Such as for other ASoC components to
      have DAPM widgets or when extending DAPM to handle cross-device paths.
      
      This patch decouples DAPM related variables from struct snd_soc_codec and
      moves them to new struct snd_soc_dapm_context that is used to encapsulate
      DAPM context of a device. ASoC core and API of DAPM functions are modified
      to use DAPM context instead of codec.
      
      This patch does not change current functionality and a large part of changes
      come because of structure and internal API changes.
      
      Core implementation is from Liam Girdwood <lrg@slimlogic.co.uk> with some
      minor core changes, codecs and machine driver conversions from
      Jarkko Nikula <jhnikula@gmail.com>.
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Manuel Lauss <manuel.lauss@googlemail.com>
      Cc: Mike Frysinger <vapier.adi@gmail.com>
      Cc: Cliff Cai <cliff.cai@analog.com>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      Cc: Ryan Mallon <ryan@bluewatersys.com>
      Cc: Timur Tabi <timur@freescale.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
      Cc: Wan ZongShun <mcuos.com@gmail.com>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Jassi Brar <jassi.brar@samsung.com>
      Cc: Daniel Gloeckner <dg@emlix.com>
      Cc: Kuninori Morimoto <morimoto.kuninori@renesas.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      ce6120cc
    • M
      ASoC: Lock the CODEC in PXA external jack controls · 71a29560
      Mark Brown 提交于
      When doing anything with the system, especially DAPM, we need to hold the
      CODEC mutex.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      71a29560
  28. 02 11月, 2010 1 次提交