]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda - Fix bogus codec address check for mixer name assignment
authorTakashi Iwai <tiwai@suse.de>
Sat, 17 Oct 2015 16:25:38 +0000 (18:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 17 Oct 2015 16:34:18 +0000 (18:34 +0200)
commit2f0eaad91005b00e774a118595a573a9e0fd30fc
treefb82e28d94b6e1cb1095c3e5ba7485edae9ae2bd
parent724097059a8e5df1aa162d153b8f90b0ffbb82dc
ALSA: hda - Fix bogus codec address check for mixer name assignment

The recent commit [7fbe824a0f0e: ALSA: hda - Update mixer name for the
lower codec address] tried to improve the mixer chip name assignment
in the order of codec address.  However, this fix was utterly bogus;
it checks the field set in each codec, thus this value is reset at
each codec creation, of course.  For really handling this priority,
the assignment has to be remembered in the common place, namely in
hda_bus, instead of hda_codec.

Fixes: 7fbe824a0f0e ('ALSA: hda - Update mixer name for the lower codec address')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_bind.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_controller.c