]> 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)
commit721c4a098dd0edf457249fa95d28af2834b17e37
tree94c69b365ff6218706530d9be436e0adc7b630bb
parent3b8a1ffc4c48c48a833f2aa2e9931a95b1d8d0e5
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: 1b2c6d082f1f 'ALSA: Jack: handle jack embedded kcontrol creating within ctljack')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ctljack.c