1. 14 8月, 2018 1 次提交
    • M
      ASoC: wm9712: fix replace codec to component · 5e4cfada
      Marcel Ziswiler 提交于
      Since commit 143b4484 ("ASoC: wm9712: replace codec to component")
      "wm9712-codec" got renamed to "wm9712-component", however, this change
      never got propagated down to the actual board/platform drivers. E.g. on
      Colibri T20 this lead to the following spew upon boot with sound/touch
      being broken:
      
      [    2.214121] tegra-snd-wm9712 sound: ASoC: CODEC DAI wm9712-hifi not registered
      [    2.222137] tegra-snd-wm9712 sound: snd_soc_register_card failed (-517)
      ...
      [    2.344384] tegra-snd-wm9712 sound: ASoC: CODEC DAI wm9712-hifi not registered
      [    2.351885] tegra-snd-wm9712 sound: snd_soc_register_card failed (-517)
      ...
      [    2.668339] tegra-snd-wm9712 sound: ASoC: CODEC DAI wm9712-hifi not registered
      [    2.675811] tegra-snd-wm9712 sound: snd_soc_register_card failed (-517)
      ...
      [    3.208408] tegra-snd-wm9712 sound: ASoC: CODEC DAI wm9712-hifi not registered
      [    3.216312] tegra-snd-wm9712 sound: snd_soc_register_card failed (-517)
      ...
      [    3.235397] tegra-snd-wm9712 sound: ASoC: CODEC DAI wm9712-hifi not registered
      [    3.248938] tegra-snd-wm9712 sound: snd_soc_register_card failed (-517)
      ...
      [   14.970443] ALSA device list:
      [   14.996628]   No soundcards found.
      
      This commit finally fixes this again.
      Signed-off-by: NMarcel Ziswiler <marcel.ziswiler@toradex.com>
      Acked-by: NCharles Keepax <ckeepax@opensource.cirrus.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      5e4cfada
  2. 14 2月, 2018 1 次提交
  3. 13 2月, 2018 1 次提交
  4. 18 10月, 2017 1 次提交
  5. 20 9月, 2017 2 次提交
  6. 02 11月, 2016 1 次提交
    • C
      ASoC: dapm: Support second register for DAPM control updates · e411b0b5
      Chen-Yu Tsai 提交于
      To support double channel shared controls split across 2 registers, one
      for each channel, we must be able to update both registers together.
      
      Add a second set of register fields to struct snd_soc_dapm_update, and
      update the DAPM control writeback (put) callbacks to support this.
      
      For codecs that use custom events which call into DAPM to do updates,
      also clear struct snd_soc_dapm_update before using it, so the second
      set of fields remains clean.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      e411b0b5
  7. 25 10月, 2016 1 次提交
  8. 21 10月, 2016 2 次提交
  9. 02 9月, 2016 1 次提交
    • J
      ASoC: constify snd_soc_codec_driver structures · f802d6c0
      Julia Lawall 提交于
      Check for snd_soc_codec_driver structures that are only passed to
      snd_soc_register_codec or memcpy (2nd arg), for which the corresponding
      parameters are declared const.  Declare as const snd_soc_codec_driver
      structures that have these properties.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct snd_soc_codec_driver i@p = { ... };
      
      @ok@
      identifier r.i;
      expression e1,e2,e3;
      position p;
      @@
      (
      snd_soc_register_codec(e1,&i@p,e2,e3)
      |
      memcpy(e1,&i@p,e2)
      )
      
      @bad@
      position p != {r.p,ok.p};
      identifier r.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct snd_soc_codec_driver i = { ... };
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f802d6c0
  10. 08 8月, 2016 1 次提交
  11. 24 7月, 2015 1 次提交
  12. 28 4月, 2015 2 次提交
  13. 11 3月, 2015 1 次提交
  14. 27 1月, 2015 1 次提交
  15. 25 11月, 2014 1 次提交
  16. 18 11月, 2014 3 次提交
  17. 08 11月, 2014 1 次提交
    • L
      ASoC: wm9712/wm9713: Replace virtual registers with custom put/get callbacks · cf1f2ebe
      Lars-Peter Clausen 提交于
      The wm9712/wm9713 has separate mixers for the left and the right channel,
      but the inputs to the mixers are enabled/disabled by the same control.
      Currently this is implemented by the driver by registering two virtual
      controls for each physical control, one for the left mixer and one for the
      right mixer.
      
      Using virtual registers will no longer work when the driver has
      been converted to regmap. This patch converts the driver to use controls
      with custom put/get callbacks instead which implement the logic making sure
      that the physical control is unmuted when either the left or the right
      control is unmuted.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      cf1f2ebe
  18. 01 11月, 2014 2 次提交
  19. 20 10月, 2014 1 次提交
  20. 27 6月, 2013 1 次提交
  21. 09 12月, 2012 1 次提交
  22. 11 9月, 2012 1 次提交
  23. 23 8月, 2012 1 次提交
  24. 18 8月, 2012 2 次提交
  25. 04 8月, 2012 2 次提交
  26. 31 7月, 2012 1 次提交
  27. 03 6月, 2012 1 次提交
  28. 11 4月, 2012 1 次提交
  29. 04 4月, 2012 1 次提交
  30. 04 2月, 2012 1 次提交
    • L
      ASoC: core: Add support for DAI and machine kcontrols. · 022658be
      Liam Girdwood 提交于
      Currently ASoC can only add kcontrols using codec and platform component device
      handles. It's also desirable to add kcontrols for DAIs (i.e. McBSP) and for
      SoC card machine drivers too. This allows the kcontrol to have a direct handle to
      the parent ASoC component DAI/SoC Card/Platform/Codec device and hence easily
      get it's private data.
      
      This change makes snd_soc_add_controls() static and wraps it in the folowing
      calls (card and dai are new) :-
      
      snd_soc_add_card_controls()
      snd_soc_add_codec_controls()
      snd_soc_add_dai_controls()
      snd_soc_add_platform_controls()
      
      This patch also does a lot of small mechanical changes in individual codec drivers
      to replace snd_soc_add_controls() with snd_soc_add_codec_controls().
      
      It also updates the McBSP DAI driver to use snd_soc_add_dai_controls().
      
      Finally, it updates the existing machine drivers that register controls to either :-
      
      1) Use snd_soc_add_card_controls() where no direct codec control is required.
      2) Use snd_soc_add_codec_controls() where there is direct codec control.
      
      In the case of 1) above we also update the machine drivers to get the correct
      component data pointers from the kcontrol (rather than getting the machine pointer
      via the codec pointer).
      Signed-off-by: NLiam Girdwood <lrg@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      022658be
  31. 01 2月, 2012 2 次提交