]> git.karo-electronics.de Git - karo-tx-linux.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)
commitd0a601c278de6876f36bcf1b7a9678d93d7dc67b
tree94c69b365ff6218706530d9be436e0adc7b630bb
parent28760c195e22856aedbacad5eb7b46ac1d76bb90
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: b8dd086674cf 'ALSA: Jack: handle jack embedded kcontrol creating within ctljack')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ctljack.c