1. 09 8月, 2011 1 次提交
    • S
      ASoC: Tegra: wm8903 machine driver: Allow re-insertion of module · 29591ed4
      Stephen Warren 提交于
      Two issues were preventing module snd-soc-tegra-wm8903.ko from being
      removed and re-inserted:
      
      a) The speaker-enable GPIO is hosted by the WM8903 chip. This GPIO must
         be freed before snd_soc_unregister_card() is called, because that
         triggers wm8903.c:wm8903_remove(), which calls gpiochip_remove(), which
         then fails if any of the GPIOs are in use. To solve this, free all GPIOs
         first, so the code doesn't care where they come from.
      
      b) We need to call snd_soc_jack_free_gpios() to match the call to
         snd_soc_jack_add_gpios() during initialization. Without this, the
         call to snd_soc_jack_add_gpios() fails during any subsequent modprobe
         and initialization, since the GPIO and IRQ are already registered. In
         turn, this causes the headphone state not to be monitored, so the
         headphone is assumed not to be plugged in, and the audio path to it is
         never enabled.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Cc: stable@kernel.org
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      29591ed4
  2. 27 5月, 2011 1 次提交
  3. 20 4月, 2011 5 次提交
  4. 19 4月, 2011 5 次提交
  5. 06 4月, 2011 1 次提交
  6. 14 2月, 2011 4 次提交
  7. 10 2月, 2011 1 次提交
  8. 09 2月, 2011 2 次提交
  9. 01 2月, 2011 1 次提交
  10. 31 1月, 2011 5 次提交
  11. 14 1月, 2011 1 次提交
  12. 11 1月, 2011 1 次提交