diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-11-11 09:02:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 10:45:10 -0500 |
commit | 43f8e28916e96bf71c01591711168a1eaa58d8e3 (patch) | |
tree | 9c5f97bfbfcd44265203179250d9fd82324cd3e4 | |
parent | db856694c4ec6204b3220b2089da1c642bffad22 (diff) |
media: wm8775: fix broken audio routing
commit 3af41a337a5b270de3e65466a07f106ad97ad0c6 upstream.
Commit 5aa9ae5ed5d449a85fbf7aac3d1fdc241c542a79 inverted the mute control
state test in s_routing which caused the audio routing to fail. This broke
ivtv support for the Hauppauge video/audio input bracket (which adds additional
video and audio inputs) all the way back in kernel 2.6.36.
This fix fixes the condition and it also removes a nonsense check on the
balance control.
Bisected-by: Rajil Saraswat <rajil.s@gmail.com>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Reported-by: Rajil Saraswat <rajil.s@gmail.com>
Tested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/media/i2c/wm8775.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/i2c/wm8775.c b/drivers/media/i2c/wm8775.c index 27c27b4ae238..e5f3a78cf55b 100644 --- a/drivers/media/i2c/wm8775.c +++ b/drivers/media/i2c/wm8775.c | |||
@@ -131,12 +131,10 @@ static int wm8775_s_routing(struct v4l2_subdev *sd, | |||
131 | return -EINVAL; | 131 | return -EINVAL; |
132 | } | 132 | } |
133 | state->input = input; | 133 | state->input = input; |
134 | if (!v4l2_ctrl_g_ctrl(state->mute)) | 134 | if (v4l2_ctrl_g_ctrl(state->mute)) |
135 | return 0; | 135 | return 0; |
136 | if (!v4l2_ctrl_g_ctrl(state->vol)) | 136 | if (!v4l2_ctrl_g_ctrl(state->vol)) |
137 | return 0; | 137 | return 0; |
138 | if (!v4l2_ctrl_g_ctrl(state->bal)) | ||
139 | return 0; | ||
140 | wm8775_set_audio(sd, 1); | 138 | wm8775_set_audio(sd, 1); |
141 | return 0; | 139 | return 0; |
142 | } | 140 | } |