]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:44:03 +0000 (09:44 -0800)
commit7d0db8193d1e0090791a33037b6af934d2ad3543
tree1e6609329ce8cc58dd9e89bb33d33dbfec2a6926
parentc8d8433258effb001d91cca846c66bab5f9876c5
ALSA: hda/realtek - Don't create alt-stream for capture when unnecessary

commit 1fa1757366783fb52e6e85c2d735db49b818d382 upstream.

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_realtek.c