]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: jack: Fix the id uniqueness check
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2015 12:06:32 +0000 (14:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2015 12:06:32 +0000 (14:06 +0200)
commit2b9dd43c0b40a80d64b34504a4fee9b3738708d1
tree94c69b365ff6218706530d9be436e0adc7b630bb
parent21a24863279182d8258b631d2208222d39a50929
ALSA: jack: Fix the id uniqueness check

snd_kctl_jack_new() tries to assign a unique index number when a name
string that has been already registered is passed.  However, it checks
with the base string without "Jack" suffix, so it never hits.
Fix the call with the properly processed name string instead.

Fixes: 3b29d439002c 'ALSA: Jack: handle jack embedded kcontrol creating within ctljack')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ctljack.c