diff options
Diffstat (limited to 'drivers/media/video/wm8775.c')
-rw-r--r-- | drivers/media/video/wm8775.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/video/wm8775.c b/drivers/media/video/wm8775.c index eddf11abe1d9..f1f261a35245 100644 --- a/drivers/media/video/wm8775.c +++ b/drivers/media/video/wm8775.c | |||
@@ -79,7 +79,8 @@ static int wm8775_write(struct v4l2_subdev *sd, int reg, u16 val) | |||
79 | return -1; | 79 | return -1; |
80 | } | 80 | } |
81 | 81 | ||
82 | static int wm8775_s_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route) | 82 | static int wm8775_s_routing(struct v4l2_subdev *sd, |
83 | u32 input, u32 output, u32 config) | ||
83 | { | 84 | { |
84 | struct wm8775_state *state = to_state(sd); | 85 | struct wm8775_state *state = to_state(sd); |
85 | 86 | ||
@@ -88,11 +89,11 @@ static int wm8775_s_routing(struct v4l2_subdev *sd, const struct v4l2_routing *r | |||
88 | 16 combinations. | 89 | 16 combinations. |
89 | If only one input is active (the normal case) then the | 90 | If only one input is active (the normal case) then the |
90 | input values 1, 2, 4 or 8 should be used. */ | 91 | input values 1, 2, 4 or 8 should be used. */ |
91 | if (route->input > 15) { | 92 | if (input > 15) { |
92 | v4l2_err(sd, "Invalid input %d.\n", route->input); | 93 | v4l2_err(sd, "Invalid input %d.\n", input); |
93 | return -EINVAL; | 94 | return -EINVAL; |
94 | } | 95 | } |
95 | state->input = route->input; | 96 | state->input = input; |
96 | if (state->muted) | 97 | if (state->muted) |
97 | return 0; | 98 | return 0; |
98 | wm8775_write(sd, R21, 0x0c0); | 99 | wm8775_write(sd, R21, 0x0c0); |