1. 22 10月, 2015 1 次提交
  2. 10 6月, 2015 1 次提交
  3. 21 5月, 2015 1 次提交
  4. 05 3月, 2015 1 次提交
  5. 30 1月, 2015 1 次提交
  6. 20 10月, 2014 1 次提交
  7. 30 9月, 2014 1 次提交
  8. 03 6月, 2014 2 次提交
    • T
      ASoC: Fix wrong argument for card remove callbacks · 16088cb6
      Takashi Iwai 提交于
      The commit [e1d4d3c8: ASoC: free jack GPIOs before the sound card is
      freed] introduced snd_soc_card remove callbacks to a few drivers, but
      they are implemented with a wrong argument type.  The callback should
      receive snd_soc_card pointer instead of snd_soc_pcm_runtime.
      
      Fixes: e1d4d3c8 ('ASoC: free jack GPIOs before the sound card is freed')
      Acked-by: NMark Brown <broonie@linaro.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      16088cb6
    • S
      ASoC: free jack GPIOs before the sound card is freed · e1d4d3c8
      Stephen Warren 提交于
      This is the same change as commit fb6b8e71 "ASoC: tegra: free jack
      GPIOs before the sound card is freed", but applied to all other ASoC
      machine drivers where code inspection indicates the same problem exists.
      
      That commit's description is:
      ==========
      snd_soc_jack_add_gpios() schedules a work queue item to poll the GPIO to
      generate an initial jack status report. If sound card initialization
      fails, that work item needs to be cancelled, so it doesn't run after the
      card has been freed. Specifically, freeing the card calls
      snd_jack_dev_free() which calls snd_jack_dev_disconnect() which sets
      jack->input_dev = NULL, and input_dev is used by snd_jack_report(), which
      is called from the work queue item.
      
      snd_soc_jack_free_gpios() cancels the work item. The Tegra ASoC machine
      drivers do call this function in the platform driver remove() callback.
      However, this happens after the sound card is freed, at least when the
      card is freed due to errors late during snd_soc_instantiate_card(). This
      leaves a window where the work item can execute after the card is freed.
      In next-20140522, sound card initialization does fail for unrelated
      reasons, and hits the problem described above.
      
      To solve this, fix the Tegra ASoC machine drivers to clean up the Jack
      GPIOs during the snd_soc_card's .remove() callback, which is executed
      before the overall card object is freed. also, guard the cleanup call
      based on whether we actually setup up the GPIOs in the first place.
      Ideally, we'd do the cleanup in a struct snd_soc_dai_link .fini/remove
      function to match where the GPIOs get set up. However, there is no such
      callback.
      ==========
      
      Note that I have not even compile-tested this in most cases, since most
      of the drivers rely on specific mach-* support I don't have enabled, and
      don't support COMPILE_TEST. Testing by the relevant board maintainers
      would be useful.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      e1d4d3c8
  9. 21 5月, 2014 1 次提交
  10. 02 5月, 2014 4 次提交
  11. 30 4月, 2014 3 次提交
  12. 19 4月, 2014 1 次提交
  13. 15 4月, 2014 1 次提交
  14. 20 2月, 2014 1 次提交
  15. 04 7月, 2013 1 次提交
  16. 04 4月, 2013 1 次提交
  17. 05 2月, 2013 1 次提交
    • H
      ASoC: tlv320aic3x: Convert mic bias to a supply widget · e2e8bfdf
      Hebbar Gururaja 提交于
      Convert MicBias widgets to supply widget.
      
      On tlv320aic3x, Mic bias power on/off shares the same register bits
      with output mic bias voltage.  So, when power on mic bias, we need
      reclaim it to voltage value.
      
      Provide a new platform data so that the micbias voltage can be sent
      according to board requirement. Now since tlv320aic3x codec driver
      is DT aware, update dt files and functions to handle this new
      "micbias-vg"  platform data.
      
      Because of sharing of bits, when enabling the micbias, voltage also
      needs to be updated. So use SND_SOC_DAPM_POST_PMU & SND_SOC_DAPM_PRE_PMD
      macro to create an event to handle this.
      
      Since micbias is converted to supply widget, updated machine drivers as
      well.
      
      This change is runtime tested on da850-evm with audio loopback
      (arecord|aplay) for confirmation.
      Signed-off-by: NHebbar Gururaja <gururaja.hebbar@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      e2e8bfdf
  18. 19 9月, 2012 1 次提交
    • A
      ARM: omap: move platform_data definitions · 2203747c
      Arnd Bergmann 提交于
      Platform data for device drivers should be defined in
      include/linux/platform_data/*.h, not in the architecture
      and platform specific directories.
      
      This moves such data out of the omap include directories
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: "Benoît Cousson" <b-cousson@ti.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Ohad Ben-Cohen <ohad@wizery.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Cc: Jean Pihet <j-pihet@ti.com>
      Cc: J Keerthy <j-keerthy@ti.com>
      Cc: linux-omap@vger.kernel.org
      2203747c
  19. 12 3月, 2012 1 次提交
  20. 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
  21. 24 12月, 2011 1 次提交
  22. 13 12月, 2011 1 次提交
  23. 01 11月, 2011 1 次提交
  24. 10 10月, 2011 1 次提交
  25. 03 10月, 2011 1 次提交
  26. 12 8月, 2011 1 次提交
  27. 11 5月, 2011 1 次提交
  28. 09 3月, 2011 1 次提交
    • J
      ASoC: omap: rx51: Enable McBSP2 sidetone · fa4d1f59
      Jarkko Nikula 提交于
      McBSP sidetone is needed in telephony applications. McBSP sidetone is a
      configurable FIR filter that forms a loopback from McBSP input to output.
      This patch enables the McBSP2 sidetone ALSA controls so that it can be used
      on Nokia RX-51/N900.
      
      Sidetone feature can be tested with following commands:
      
      	(set up codec input and output paths)
      	# Enable and configure sidetone
      	amixer -D hw:0 set 'McBSP2 Sidetone' on
      	amixer set -D hw:0 'McBSP2 Sidetone Channel 0' 32767
      	echo 32767 >/sys/devices/platform/omap-mcbsp.2/st_taps
      	# Do not loop audio via CPU
      	arecord -f dat >/dev/null |aplay /dev/zero
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      fa4d1f59
  29. 22 2月, 2011 1 次提交
  30. 16 2月, 2011 3 次提交
  31. 01 2月, 2011 1 次提交
  32. 28 1月, 2011 1 次提交