1. 11 11月, 2017 1 次提交
    • A
      ASoC: rt5514: work around link error · c5630877
      Arnd Bergmann 提交于
      The main rt5514 driver optionally calls into the SPI back-end to load
      the firmware. This causes a link error when one driver selects rt5514
      as built-in and another driver selects rt5514-spi as a loadable module:
      
      sound/soc/codecs/rt5514.o: In function `rt5514_dsp_voice_wake_up_put':
      rt5514.c:(.text+0xac8): undefined reference to `rt5514_spi_burst_write'
      
      As a workaround, this adds another silent symbol, to force rt5514-spi
      to be built-in for that configuration. I'm not overly happy with
      that solution, but couldn't come up with anything better. Using
      'IS_REACHABLE()' would break the case that relies on the loadable
      module, and all other ideas would result in more complexity.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c5630877
  2. 01 9月, 2017 1 次提交
  3. 18 8月, 2017 1 次提交
  4. 28 7月, 2017 1 次提交
  5. 18 7月, 2017 1 次提交
  6. 23 6月, 2017 1 次提交
  7. 22 6月, 2017 1 次提交
    • A
      ASoC: es8316: add I2C dependency · 664d00d1
      Arnd Bergmann 提交于
      Without CONFIG_I2C, we get a build failure:
      
      sound/soc/codecs/es8316.c:633:1: error: data definition has no type or storage class [-Werror]
      sound/soc/codecs/es8316.c:633:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
      sound/soc/codecs/es8316.c:633:1: error: parameter names (without types) in function declaration [-Werror]
      sound/soc/codecs/es8316.c:623:26: error: 'es8316_i2c_driver' defined but not used [-Werror=unused-variable]
      
      This adds the required Kconfig dependency.
      
      Fixes: b8b88b70 ("ASoC: add es8316 codec driver")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      664d00d1
  8. 14 6月, 2017 1 次提交
    • D
      ASoC: add es8316 codec driver · b8b88b70
      Daniel Drake 提交于
      Add a codec driver for the Everest ES8316, based on code provided by
      David Yang from Everest Semi.
      
      I limited the functionality to items where the vendor code was clear,
      and things that can be tested on the Weibu F3C (Intel Cherry Trail).
      As a result the initial implementation only supports running in slave
      mode at single speed (up to 48kHz sample rate) using I2S. HPD is not
      supported.
      Signed-off-by: NDavid Yang <yangxiaohua@everest-semi.com>
      [drake@endlessm.com: significant cleanups and simplifications,
                           remove dead/unclear code]
      Signed-off-by: NDaniel Drake <drake@endlessm.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b8b88b70
  9. 26 4月, 2017 1 次提交
  10. 07 4月, 2017 1 次提交
  11. 16 3月, 2017 1 次提交
  12. 07 3月, 2017 2 次提交
  13. 06 3月, 2017 1 次提交
  14. 07 2月, 2017 1 次提交
    • A
      ASoC: fix ES8328_I2C/SPI dependencies · 245c5c7b
      Arnd Bergmann 提交于
      The two front-ends to the codec can now be selected individually, but fail to
      build when the bus support is missing:
      
      sound/built-in.o: In function `es8328_spi_probe':
      es8328-spi.c:(.text+0x125854): undefined reference to `__devm_regmap_init_spi'
      sound/built-in.o: In function `es8328_spi_driver_init':
      es8328-spi.c:(.init.text+0x3589): undefined reference to `__spi_register_driver'
      
      Related to this, the added dependency on SND_SOC_ES8328 breaks:
      
      warning: (SND_SOC_ALL_CODECS) selects SND_SOC_ES8328_I2C which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_ES8328 && I2C)
      
      This adds the respective Kconfig dependencies and changes SND_SOC_ES8328 to a hidden
      symbol that is selected implicitly by the two more specific options, as we do for
      some other codecs. We have to remove the 'depends on' for SND_SOC_IMX_ES8328 in the
      same step to avoid a recursive dependency.
      
      Fixes: aa00f2c8 ("ASoC: Allow to select ES8328_I2C and ES8328_SPI directly")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      245c5c7b
  15. 04 2月, 2017 2 次提交
  16. 25 1月, 2017 1 次提交
  17. 15 12月, 2016 1 次提交
  18. 18 11月, 2016 2 次提交
  19. 14 11月, 2016 1 次提交
  20. 09 11月, 2016 1 次提交
  21. 31 10月, 2016 1 次提交
  22. 27 10月, 2016 1 次提交
  23. 25 10月, 2016 4 次提交
  24. 21 10月, 2016 2 次提交
  25. 25 9月, 2016 1 次提交
  26. 14 9月, 2016 1 次提交
  27. 23 8月, 2016 1 次提交
  28. 04 7月, 2016 1 次提交
  29. 30 6月, 2016 1 次提交
    • S
      ASoC: max98504: Add max98504 speaker amplifier driver · 4c5d1469
      Sylwester Nawrocki 提交于
      This patch adds driver for the MAX98504 speaker amplifier.  The MAX98504
      is a high efficiency mono class D amplifier that features an integrated
      boost converter with voltage and current sensing ADCs for Dynamic Speaker
      Management.
      This driver does not include support for the I2S DAI, as we wouldn't be
      able  to test such code in a hardware configuration where the amplifier
      has only wired the analogue input.
      Signed-off-by: NInha Song <ideal.song@samsung.com>
      [k.kozlowski: rebased on 4.1]
      Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
      [s.nawrocki: removed unused macro definitions, rewrote regulator supply
       related parts, rewrote regmap configuration code, added support for speaker
       enable and global chip enable through DAPM, rewritten as component driver,
       added PDM DAI definition and TDM callbacks for PDM channels configuration]
      Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      --
      Changes since v2:
       - added parsing of the VBAT brownout DT properties,
       - removed MAX98504_REG_SPEAKER_SOURCE_SELECT register initialization,
       - removed unused macro definitions.
      
      Changes since v1:
       - none.
      
      Changes since initial version:
       - added regulator supply handling,
       - added DAPM widges for speaker source selection,
       - added PDM DAI definition and TDM callbacks for setting up active
         PDM Tx channels and I/V sense ADC data mapping,
       - removed all optional DT properties, added regulator supply properties
         in the DT binding.
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4c5d1469
  30. 28 6月, 2016 1 次提交
  31. 17 6月, 2016 1 次提交
  32. 14 6月, 2016 1 次提交
    • A
      ASoC: wm8985: add i2c dependency · 05252513
      Arnd Bergmann 提交于
      The wm8985 driver is now user-selectable, but building it with
      I2C disabled results in a link failure:
      
      sound/built-in.o: In function `wm8985_i2c_probe':
      :(.text+0x44914): undefined reference to `__devm_regmap_init_i2c'
      sound/built-in.o: In function `wm8985_exit':
      :(.exit.text+0x3d8): undefined reference to `i2c_del_driver'
      sound/built-in.o: In function `wm8985_modinit':
      :(.init.text+0x1454): undefined reference to `i2c_register_driver'
      
      This adds a Kconfig dependency the way that the other codec
      drivers have it.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 811e66de ("ASoC: wm8985: add support for WM8758")
      Signed-off-by: NMark Brown <broonie@kernel.org>
      05252513
  33. 10 6月, 2016 1 次提交
    • L
      ASoC: adau: Factor out shared PLL configuration code · 0eadaa9c
      Lars-Peter Clausen 提交于
      Multiple devices from the ADAU family share the same PLL structure and
      configuration register layout. Introduce a new helper module that can be
      used to calculated the PLL configuration registers based on a specified
      input frequency and the desired output frequency of the PLL.
      
      The ADAU1761/ADAU1781 and ADAU1373 drivers are updated to make use of this
      new helper module. But future drivers for additional devices from the ADAU
      family are also expected to make use of it.
      
      In anticipation of sharing more infrastructure code between different
      devices from the ADAU family the new module is called adau-utils.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      0eadaa9c