mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 04:05:43 +01:00
Fixed unhexing thanks to Anders
This commit is contained in:
parent
9c7ba00630
commit
fdacf95e6c
1 changed files with 2 additions and 2 deletions
|
@ -781,11 +781,11 @@ static int set_control(snd_ctl_t *handle, snd_config_t *control)
|
||||||
error("bad control.%d.value contents\n", numid);
|
error("bad control.%d.value contents\n", numid);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
idx++;
|
if (idx % 2 == 1)
|
||||||
if (idx % 2 == 0)
|
|
||||||
snd_ctl_elem_value_set_byte(ctl, idx / 2, c1 << 4 | c);
|
snd_ctl_elem_value_set_byte(ctl, idx / 2, c1 << 4 | c);
|
||||||
else
|
else
|
||||||
c1 = c;
|
c1 = c;
|
||||||
|
idx++;
|
||||||
}
|
}
|
||||||
goto _ok;
|
goto _ok;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue