Don't fail if mute control remain unchanged.

This commit is contained in:
Alexandre Ratchov 2016-01-28 19:06:32 +01:00
parent 5cf6d25827
commit 91689ee702
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,7 @@ setvol(struct siomix_sun_hdl *hdl, struct wskbd_vol *vol, int addr, int val)
val = val ? 1 : 0;
if (vol->mute_val == val) {
DPRINTF("mute %d, no change\n", val);
return 0;
return 1;
}
vol->mute_val = val;
ctrl.dev = vol->mute_idx;
@ -224,6 +224,7 @@ scanvol(struct siomix_sun_hdl *hdl, struct wskbd_vol *vol)
struct mixer_ctrl ctrl;
int i, val;
memset(&desc, 0, sizeof(struct siomix_desc));
if (vol->level_idx >= 0) {
ctrl.dev = vol->level_idx;
ctrl.type = AUDIO_MIXER_VALUE;