]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:49 +0000 (11:18 -0800)
commit4b2b66382fe5cc4afafc70a9cff3b4b7e0f4b142
treedd3c530568e4e3337e2b779042df3c86adc95df2
parent39f1efeb63bb7b61737fcf47e443b7708d69cf22
ALSA: hda - Don't add elements of other codecs to vmaster slave

commit aeb4b88ec0a948efce8e3a23a8f964d3560a7308 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/hda_codec.c