1. 06 12月, 2011 1 次提交
  2. 05 12月, 2011 3 次提交
    • A
      ASoC: Make SND_SOC_MX27VIS_AIC32X4 depend on I2C · 570a2429
      Axel Lin 提交于
      SND_SOC_MX27VIS_AIC32X4 selects SND_SOC_TLV320AIC32X4,
      but SND_SOC_TLV320AIC32X4 needs CONFIG_I2C.
      So we need to make SND_SOC_MX27VIS_AIC32X4 depend on I2C.
      otherwise I got below build error if CONFIG_I2C is not selected.
      
        CC      sound/soc/codecs/tlv320aic32x4.o
      sound/soc/codecs/tlv320aic32x4.c: In function 'aic32x4_read':
      sound/soc/codecs/tlv320aic32x4.c:323: error: implicit declaration of function 'i2c_smbus_read_byte_data'
      sound/soc/codecs/tlv320aic32x4.c: In function 'aic32x4_probe':
      sound/soc/codecs/tlv320aic32x4.c:641: error: 'i2c_master_send' undeclared (first use in this function)
      sound/soc/codecs/tlv320aic32x4.c:641: error: (Each undeclared identifier is reported only once
      sound/soc/codecs/tlv320aic32x4.c:641: error: for each function it appears in.)
      sound/soc/codecs/tlv320aic32x4.c: In function 'aic32x4_modinit':
      sound/soc/codecs/tlv320aic32x4.c:763: error: implicit declaration of function 'i2c_add_driver'
      sound/soc/codecs/tlv320aic32x4.c: In function 'aic32x4_exit':
      sound/soc/codecs/tlv320aic32x4.c:774: error: implicit declaration of function 'i2c_del_driver'
      make[3]: *** [sound/soc/codecs/tlv320aic32x4.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>
      570a2429
    • 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
    • A
      ASoC: uda1380: Return proper error in uda1380_modinit failure path · ef149770
      Axel Lin 提交于
      Return proper error for uda1380_modinit if i2c_add_driver() fails.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      ef149770
  3. 03 12月, 2011 2 次提交
    • A
      ASoC: kirkwood: Make SND_KIRKWOOD_SOC_OPENRD and SND_KIRKWOOD_SOC_T5325 depend on I2C · 36d54dc0
      Axel Lin 提交于
      SND_KIRKWOOD_SOC_T5325 selects SND_SOC_ALC5623, but SND_SOC_ALC5623 needs
      CONFIG_I2C. So we need to make SND_KIRKWOOD_SOC_T5325 depend on I2C,
      otherwise I got below build error if CONFIG_I2C is not selected.
      
        CC      sound/soc/codecs/alc5623.o
      sound/soc/codecs/alc5623.c: In function 'alc5623_i2c_probe':
      sound/soc/codecs/alc5623.c:1002: error: implicit declaration of function 'i2c_smbus_read_word_data'
      sound/soc/codecs/alc5623.c:1009: error: implicit declaration of function 'i2c_smbus_read_byte_data'
      sound/soc/codecs/alc5623.c: In function 'alc5623_modinit':
      sound/soc/codecs/alc5623.c:1096: error: implicit declaration of function 'i2c_add_driver'
      sound/soc/codecs/alc5623.c: In function 'alc5623_modexit':
      sound/soc/codecs/alc5623.c:1108: error: implicit declaration of function 'i2c_del_driver'
      make[3]: *** [sound/soc/codecs/alc5623.o] Error 1
      make[2]: *** [sound/soc/codecs] Error 2
      make[1]: *** [sound/soc] Error 2
      make: *** [sound] Error 2
      
      Also fix the same issue for SND_KIRKWOOD_SOC_OPENRD.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      36d54dc0
    • M
      ASoC: Mark WM8994 ADC muxes as virtual · 87b86ade
      Mark Brown 提交于
      Since they don't actually have power bits but do have events associated
      with them it's important that we bootstrap their state properly which
      making them virtual does.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      87b86ade
  4. 29 11月, 2011 5 次提交
  5. 28 11月, 2011 1 次提交
  6. 23 11月, 2011 6 次提交
    • E
      ASoC: skip resume of soc-audio devices without codecs · 5ff1ddf2
      Eric Miao 提交于
      There are cases where there is no working codec on the soc-audio devices,
      and snd_soc_suspend() will skip such device when suspending. Yet its
      counterpart snd_soc_resume() does not check this, causing complaints
      about spinlock lockup:
      
      [  176.726087] BUG: spinlock lockup on CPU#0, kworker/0:2/1067, d8ab82a8
      [  176.732539] [<80014a14>] (unwind_backtrace+0x0/0xec) from [<805b3fc8>] (dump_stack+0x20/0x24)
      [  176.741082] [<805b3fc8>] (dump_stack+0x20/0x24) from [<80322208>] (do_raw_spin_lock+0x118/0x158)
      [  176.749882] [<80322208>] (do_raw_spin_lock+0x118/0x158) from [<805b7874>] (_raw_spin_lock_irqsave+0x5c/0x68)
      [  176.759723] [<805b7874>] (_raw_spin_lock_irqsave+0x5c/0x68) from [<8002a020>] (__wake_up+0x2c/0x5c)
      [  176.768781] [<8002a020>] (__wake_up+0x2c/0x5c) from [<804a6de8>] (soc_resume_deferred+0x3c/0x2b0)
      [  176.777666] [<804a6de8>] (soc_resume_deferred+0x3c/0x2b0) from [<8004ee20>] (process_one_work+0x2e8/0x50c)
      [  176.787334] [<8004ee20>] (process_one_work+0x2e8/0x50c) from [<8004fd08>] (worker_thread+0x1c8/0x2e0)
      [  176.796566] [<8004fd08>] (worker_thread+0x1c8/0x2e0) from [<80053ec8>] (kthread+0xa4/0xb0)
      [  176.804843] [<80053ec8>] (kthread+0xa4/0xb0) from [<8000ea70>] (kernel_thread_exit+0x0/0x8)
      Signed-off-by: NEric Miao <eric.miao@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      5ff1ddf2
    • A
      ASoC: cs42l51: Fix off-by-one for reg_cache_size · b284362b
      Axel Lin 提交于
      Just checking the code in cs42l51_fill_cache():
      The cache pointer points to codec->reg_cache + 1.
      I think it is because CS42L51_FIRSTREG is 0x01,
      so codec->reg_cache[0] is not used here.
      
      Then we read CS42L51_NUMREGS bytes to cache.
      So we need reg_cache_size to be CS42L51_NUMREGS + 1.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      b284362b
    • P
      ASoC: drop support for PlayPaq with WM8510 · 4ca8af57
      Paul Bolle 提交于
      SoC Audio support for PlayPaq with WM8510 got added in commit 9aaca968
      ("[ALSA] Revised AT32 ASoC Patch"). That support depends on
      BOARD_PLAYPAQ. That Kconfig symbol didn't exist when that support got
      added in v2.6.27. It still doesn't. It has never been possible to even
      build this driver. Drop it.
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      4ca8af57
    • T
      ASoC: mpc8610: tell the CS4270 codec that it's the master · 380c8830
      Timur Tabi 提交于
      Commit ac601555 ("ASoC: Return early with -EINVAL if invalid dai format is
      detected") requires the machine driver to tell the CS4270 codec driver
      whether the CS4270 should be configured for master or slave operation.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      380c8830
    • D
      ASoC: cs4720: use snd_soc_cache_sync() · d66b8537
      Daniel Mack 提交于
      Replace the manual register restore mechanism in cs4270.c and call the
      generic snd_soc_cache_sync() handler instead.
      
      This factors code out in favour of core facilities and also fixes a
      bus confusion that is most probably caused by intermixing i2c-regmap
      functions and i2c_smbus_* accessors.
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Reported-and-tested-by: NSven Neumann <s.neumann@raumfeld.com>
      Acked-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      d66b8537
    • B
      ASoC: SAMSUNG: Fix build error · 3d94a2a5
      Boojin Kim 提交于
      This patch adds <linux/modules.h> to fix following build errors.
      
      sound/soc/codecs/wm8994.c: In function 'wm8994_readable':
      sound/soc/codecs/wm8994.c:58: warning: unused variable 'wm8994'
      sound/soc/samsung/smdk_wm8994.c:176: error: expected declaration specifiers or '...' before string constant
      sound/soc/samsung/smdk_wm8994.c:176: warning: data definition has no type or storage class
      sound/soc/samsung/smdk_wm8994.c:176: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      sound/soc/samsung/smdk_wm8994.c:176: warning: function declaration isn't a prototype
      sound/soc/samsung/smdk_wm8994.c:177: error: expected declaration specifiers or '...' before string constant
      Signed-off-by: NBoojin Kim <boojin.kim@samsung.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      3d94a2a5
  7. 22 11月, 2011 3 次提交
  8. 21 11月, 2011 2 次提交
  9. 20 11月, 2011 7 次提交
  10. 18 11月, 2011 1 次提交
  11. 15 11月, 2011 2 次提交
  12. 10 11月, 2011 1 次提交
  13. 08 11月, 2011 6 次提交