Skip to content
Commit f46c3296 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix index number conflicts of phantom jacks



Since some jack controls may be renamed as phantom jacks, the existing
check for index conflicts doesn't work because it simply compares the
name with the last used name, assuming that the controls with the same
name continue.  Thus, it would result in the duplicated controls when
two or more phantom jacks with the very same type exist, and the
driver gives up with an error.

This patch fixes the problem by checking the index number conflicts
more intensively (but dumbly).

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7ae48b56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment