From 8d7759aa3242e43347d31ecedf93da9ac76ed4b1 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 30 Nov 2007 17:20:39 +0100 Subject: [PATCH] alsactl - Fix wrong restore Fix a bug in alsactl that restores wrong values for elements with multiple channels (counts). --- alsactl/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsactl/state.c b/alsactl/state.c index 4c807de..1a2a368 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -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;