]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix dynamic ADC change working again
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Aug 2010 09:56:53 +0000 (11:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Aug 2010 09:56:53 +0000 (11:56 +0200)
commit066dd34a9a70e3f6f2013db59f237e2687a871a7
treebc0552e35dd5248d19f8d85f2ad84783371f9e08
parent432ccc2764f54d1165bbc49d1fa766b2100f911c
ALSA: hda - Fix dynamic ADC change working again

The commit 85298a90edfdfa811717a122417954e3596b937f
    ALSA: hda - Make converter setups sticky
changes the semantics of snd_hda_codec_cleanup_stream() not to clean up
the stream at that moment but delay the action.  This broke the codes
expecting that the clean-up is done immediately, such as dynamic ADC
changes in some codec drivers.

This patch fixes the issue by introducing a lower helper,
__snd_hda_codec_cleanup_stream(), to allow the immediate clean up.
The original snd_hda_codec_cleanup_stream() is kept as is now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/patch_cirrus.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c