]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda - Don't add elements of other codecs to vmaster slave
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Nov 2011 11:28:38 +0000 (12:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Nov 2011 11:32:08 +0000 (12:32 +0100)
commitaeb4b88ec0a948efce8e3a23a8f964d3560a7308
tree5160c27e43021a9ed689c89fe533a4336c074080
parent7fb4f392bd27e5b0e2444430d241370837bcc8fa
ALSA: hda - Don't add elements of other codecs to vmaster slave

When a virtual mater control is created, the driver looks for slave
elements from the assigned card instance.  But this may include the
elements of other codecs when multiple codecs are on the same HD-audio
bus.  This works at the first time, but it'll give Oops when it's once
freed and re-created via reconfig sysfs.

This patch changes the element-look-up strategy to limit only to the
mixer elements of the same codec.

Reported-by: David Henningsson <david.henningsson@canonical.com>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c