]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Don't create alt-stream for capture when unnecessary
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 Nov 2011 20:30:51 +0000 (21:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 Nov 2011 20:30:51 +0000 (21:30 +0100)
commit27bc034c286e1700a0641dd7d5c4cf93018c33e4
treea52f76fa88814741ca293837c9ff8f6e96a4a539
parentdf058b4a5b3fb8c4cfddbca8bd6896bdabe75265
ALSA: hda/realtek - Don't create alt-stream for capture when unnecessary

When the driver finds multiple ADCs, it tries to create an alternative
capture PCM stream.  However, these secondary ADCs might be useless or
in uncontrolled paths in some cases, e.g. when auto-mic or dynamic
ADC-switching is enabled.  Also, when only a single capture source is
available, the multi-streams don't make sense, too.

With this patch, the driver checks such condition and skips the alt
stream appropriately.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c