]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/media/video/msp3400-driver.c
msp3400: fix mute audio regression
[karo-tx-linux.git] / drivers / media / video / msp3400-driver.c
index 0e412131da7cc68ab932b321e0d57076a7e92b99..4897d90f6a25893c17d249a692758ced2f563dc1 100644 (file)
@@ -382,7 +382,12 @@ static int msp_s_ctrl(struct v4l2_ctrl *ctrl)
 
 void msp_update_volume(struct msp_state *state)
 {
-       v4l2_ctrl_s_ctrl(state->volume, v4l2_ctrl_g_ctrl(state->volume));
+       /* Force an update of the volume/mute cluster */
+       v4l2_ctrl_lock(state->volume);
+       state->volume->val = state->volume->cur.val;
+       state->muted->val = state->muted->cur.val;
+       msp_s_ctrl(state->volume);
+       v4l2_ctrl_unlock(state->volume);
 }
 
 /* --- v4l2 ioctls --- */