alsactl - Fix wrong restore

Fix a bug in alsactl that restores wrong values for elements with
multiple channels (counts).
This commit is contained in:
Takashi Iwai 2007-11-30 17:20:39 +01:00
parent 0629a38f6c
commit 8d7759aa32

View file

@ -1380,7 +1380,7 @@ static int set_control(snd_ctl_t *handle, snd_config_t *control)
return -EINVAL;
continue;
}
err = restore_config_value2(handle, info, type, value,
err = restore_config_value2(handle, info, type, n,
ctl, idx, numid);
if (err < 0)
return err;