From fdacf95e6c3913b5d1edf59b6ce4e3e28c60a077 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Tue, 13 Feb 2001 20:20:52 +0000 Subject: [PATCH] Fixed unhexing thanks to Anders --- alsactl/alsactl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c index 8226751..b462be6 100644 --- a/alsactl/alsactl.c +++ b/alsactl/alsactl.c @@ -781,11 +781,11 @@ static int set_control(snd_ctl_t *handle, snd_config_t *control) error("bad control.%d.value contents\n", numid); return -EINVAL; } - idx++; - if (idx % 2 == 0) + if (idx % 2 == 1) snd_ctl_elem_value_set_byte(ctl, idx / 2, c1 << 4 | c); else c1 = c; + idx++; } goto _ok; }