1. 16 Sep, 2015 1 commit
    • Robert Jarzmik's avatar
      ASoC: fix broken pxa SoC support · 3c8f7710
      Robert Jarzmik authored
      The previous fix of pxa library support, which was introduced to fix the
      library dependency, broke the previous SoC behavior, where a machine
      code binding pxa2xx-ac97 with a coded relied on :
       - sound/soc/pxa/pxa2xx-ac97.c
       - sound/soc/codecs/XXX.c
      
      For example, the mioa701_wm9713.c machine code is currently broken. The
      "select ARM" statement wrongly selects the soc/arm/pxa2xx-ac97 for
      compilation, as per an unfortunate fate SND_PXA2XX_AC97 is both declared
      in sound/arm/Kconfig and sound/soc/pxa/Kconfig.
      
      Fix this by ensuring that SND_PXA2XX_SOC correctly triggers the correct
      pxa2xx-ac97 compilation.
      
      Fixes: 846172df
      
       ("ASoC: fix SND_PXA2XX_LIB Kconfig warning")
      Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      3c8f7710
  2. 30 Jan, 2015 1 commit
    • Arnd Bergmann's avatar
      ASoC: pxa: make TTC DKB tristate · 7c47cd7f
      Arnd Bergmann authored
      
      
      In a rare combination of Kconfig settings, the 88pm860x-codec
      module may be selected as a loadable module, while it's also being
      used by the ttb-dkb code that is built-in, resulting in a link
      error:
      
      sound/built-in.o: In function `ttc_pm860x_init':
      :(.text+0x3e888): undefined reference to `pm860x_hs_jack_detect'
      :(.text+0x3e898): undefined reference to `pm860x_mic_jack_detect'
      
      Changing ttb-tkb to a tristate option tells Kconfig that 88pm86x
      actually needs to be built-in if ttc-dkb is also built-in.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      7c47cd7f
  3. 17 Jun, 2014 1 commit
    • Arnd Bergmann's avatar
      ASoC: MMP audio needs sram support · 5ba4059c
      Arnd Bergmann authored
      
      
      Building the pxa/mmp audio driver without support for the mmp
      sram driver enabled results in this link error:
      
      sound/built-in.o: In function `mmp_pcm_free_dma_buffers':
      :(.text+0x3e734): undefined reference to `sram_get_gpool'
      sound/built-in.o: In function `mmp_pcm_new':
      :(.text+0x3e7c0): undefined reference to `sram_get_gpool'
      
      The sram driver is cannot be manually enabled and needs to
      be turned on by selecting MMP_SRAM from each module that
      needs it, which is what this patch does.
      
      Ideally, MMP should move over to the generic SRAM support, but
      for the moment, we can avoid the build error.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      5ba4059c
  4. 05 Jun, 2014 1 commit
    • Arnd Bergmann's avatar
      ASoC: MMP audio needs sram support · 5ab0862e
      Arnd Bergmann authored
      
      
      From e7a94bb7fb871c73cc85712d89c1f48d0271c1be Mon Sep 17 00:00:00 2001
      From: Arnd Bergmann <arnd@arndb.de>
      Date: Thu, 5 Jun 2014 12:31:28 +0200
      Subject: [PATCH] ASoC: MMP audio needs sram support
      
      Building the pxa/mmp audio driver without support for the mmp
      sram driver enabled results in this link error:
      
      sound/built-in.o: In function `mmp_pcm_free_dma_buffers':
      :(.text+0x3e734): undefined reference to `sram_get_gpool'
      sound/built-in.o: In function `mmp_pcm_new':
      :(.text+0x3e7c0): undefined reference to `sram_get_gpool'
      
      The sram driver is cannot be manually enabled and needs to
      be turned on by selecting MMP_SRAM from each module that
      needs it, which is what this patch does.
      
      Ideally, MMP should move over to the generic SRAM support, but
      for the moment, we can avoid the build error.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Qiao Zhou <zhouqiao@marvell.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      5ab0862e
  5. 03 Jun, 2014 1 commit
    • Arnd Bergmann's avatar
      ASoC: pxa: add I2C dependencies as needed · 38784764
      Arnd Bergmann authored
      
      
      We have in the past added 'depends on I2C' for some of the PXA boards
      after hitting randconfig build bugs. I have seens a couple of new
      bugs in this area during the linux-next cycle for 3.16, after it
      became possible to build some more PXA machines with I2C disabled.
      
      To shut this up for good, this adds the dependency to every board
      that uses I2C as the interface to the codec. I have gone through
      all board files and verified that they all either use AC97 or
      I2C, and this annotates the latter. Some of these already enable
      I2C from mach-pxa/Kconfig, but since that can change it's better
      to be explicit here.
      
      The link error that can result otherwise happens when CONFIG_I2C
      is set to 'm' and the codec driver is built-in as a result of being
      selected by the platform specific glue.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      38784764
  6. 01 May, 2014 1 commit
  7. 17 Dec, 2013 1 commit
  8. 15 Aug, 2013 1 commit
  9. 15 May, 2013 1 commit
  10. 13 Jun, 2012 4 commits
  11. 04 Dec, 2011 1 commit
    • Axel Lin's avatar
      ASoC: Fix dependency for SND_SOC_RAUMFELD and SND_PXA2XX_SOC_HX4700 · b971c370
      Axel Lin authored
      
      
      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: default avatarAxel Lin <axel.lin@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      b971c370
  12. 12 Oct, 2011 1 commit
    • Axel Lin's avatar
      ASoC: Make SND_SOC_SAARB and SND_SOC_TAVOREVB3 select MFD_88PM860X · b29a33a2
      Axel Lin authored
      
      
      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: default avatarAxel Lin <axel.lin@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      b29a33a2
  13. 19 May, 2011 1 commit
  14. 25 Nov, 2010 1 commit
  15. 18 Aug, 2010 2 commits
  16. 11 May, 2010 1 commit
  17. 12 Apr, 2010 1 commit
  18. 01 Mar, 2010 2 commits
  19. 27 Nov, 2009 1 commit
  20. 15 Oct, 2009 1 commit
  21. 01 Oct, 2009 1 commit
  22. 05 Jun, 2009 1 commit
  23. 12 May, 2009 1 commit
  24. 05 May, 2009 1 commit
  25. 02 Apr, 2009 1 commit
  26. 08 Feb, 2009 1 commit
    • Robert Jarzmik's avatar
      ASoC: Add initial support of Mitac mioa701 device SoC. · 8f0dc655
      Robert Jarzmik authored
      
      
      This machine driver enables sound functions on Mitac mio
      a701 smartphone. Build upon ASoC v1, it handles :
       - rear speaker
       - front speaker
       - microphone
       - GSM
      
      A global "Mio Mode" switch is not yet provided to cope with
      audio path setup. As balance on audio chip line is no more
      assured, an incorrect setup can produce a lot of heat and
      even fry the battery behind the wm9713 and the speaker
      amplifier.
      
      It doesn't cope with :
       - headset jack
       - mio master mode
       - master volume control
      
      This driver is backported from ASoc v2, and amputated from
      scenario setups and master volume control.
      
      [Minor mods for terminology in comments -- broonie]
      
      Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      8f0dc655
  27. 19 Jan, 2009 1 commit
  28. 16 Jan, 2009 1 commit
  29. 05 Nov, 2008 1 commit
  30. 30 Oct, 2008 1 commit
    • Mark Brown's avatar
      ASoC: Add PXA SSP support · 1b340bd7
      Mark Brown authored
      
      
      The SSP ports PXA series processors can be used to implement a variety of
      audio interface formats. This patch implements support for I2S, DSP A and
      DSP B modes on these ports.
      
      This patch is based on the previous out of tree pxa2xx-ssp driver (which
      was originally written by Liam Girdwood with updates from Philipp Zabel
      and Nicola Perrino) and pxa3xx-ssp driver (originally written by Seth
      Forsee based on the pxa2xx-ssp driver). Testing coverage is not complete
      currently.
      
      Tested-by: default avatarDaniel Ribeiro <drwyrm@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      1b340bd7
  31. 23 Sep, 2008 2 commits
  32. 07 Jul, 2008 1 commit
  33. 27 May, 2008 2 commits