]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Avoid conflict of unsol-events with static quirks
authorTakashi Iwai <tiwai@suse.de>
Thu, 19 Jan 2012 11:10:29 +0000 (12:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Jan 2012 11:10:29 +0000 (12:10 +0100)
commitc2f3b2d5880750f8d26a217d60c4a32ddbb2f560
treea6d580a92a6f8f3e2af7ca6bf53bf27749a60448
parent8b2ee47368094657996e4d92785f90e278b82ef5
ALSA: hda/realtek - Avoid conflict of unsol-events with static quirks

The recently added jack-kctl support sets the unsol event tags
dynamically, while static quirks usually set the fixed tags in the
init_verbs array.  Due to this conflict, the own unsol event handler
can't retrieve the tag and handle it properly any more.

For fixing this, avoid calling snd_hda_jack_add_kctls() for static
quirks, and always let them use own handlers instead of the standard
one for the auto-pareser.

Reported-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/alc880_quirks.c
sound/pci/hda/alc882_quirks.c
sound/pci/hda/patch_realtek.c