Commit f951b386 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Fix the wrong function call from ioctl

Control Midlevel
Fixed the call of a wrong function from ioctl.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2359b08a
......@@ -1061,7 +1061,7 @@ static long snd_ctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg
case SNDRV_CTL_IOCTL_ELEM_ADD:
return snd_ctl_elem_add_user(ctl, argp, 0);
case SNDRV_CTL_IOCTL_ELEM_REPLACE:
return snd_ctl_elem_add(ctl, argp, 1);
return snd_ctl_elem_add_user(ctl, argp, 1);
case SNDRV_CTL_IOCTL_ELEM_REMOVE:
return snd_ctl_elem_remove(ctl, argp);
case SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS:
......
Markdown is supported
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