diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-routing.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-routing.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/ivtv/ivtv-routing.c b/drivers/media/video/ivtv/ivtv-routing.c index 05564919b57f..3fd302294497 100644 --- a/drivers/media/video/ivtv/ivtv-routing.c +++ b/drivers/media/video/ivtv/ivtv-routing.c | |||
@@ -47,13 +47,13 @@ void ivtv_audio_set_io(struct ivtv *itv) | |||
47 | route.output = 0; | 47 | route.output = 0; |
48 | if (itv->card->hw_muxer & IVTV_HW_M52790) | 48 | if (itv->card->hw_muxer & IVTV_HW_M52790) |
49 | route.output = M52790_OUT_STEREO; | 49 | route.output = M52790_OUT_STEREO; |
50 | ivtv_i2c_hw(itv, itv->card->hw_muxer, VIDIOC_INT_S_AUDIO_ROUTING, &route); | 50 | v4l2_subdev_call(itv->sd_muxer, audio, s_routing, &route); |
51 | 51 | ||
52 | route.input = in->audio_input; | 52 | route.input = in->audio_input; |
53 | route.output = 0; | 53 | route.output = 0; |
54 | if (itv->card->hw_audio & IVTV_HW_MSP34XX) | 54 | if (itv->card->hw_audio & IVTV_HW_MSP34XX) |
55 | route.output = MSP_OUTPUT(MSP_SC_IN_DSP_SCART1); | 55 | route.output = MSP_OUTPUT(MSP_SC_IN_DSP_SCART1); |
56 | ivtv_i2c_hw(itv, itv->card->hw_audio, VIDIOC_INT_S_AUDIO_ROUTING, &route); | 56 | ivtv_call_hw(itv, itv->card->hw_audio, audio, s_routing, &route); |
57 | } | 57 | } |
58 | 58 | ||
59 | /* Selects the video input and output according to the current | 59 | /* Selects the video input and output according to the current |
@@ -66,7 +66,7 @@ void ivtv_video_set_io(struct ivtv *itv) | |||
66 | 66 | ||
67 | route.input = itv->card->video_inputs[inp].video_input; | 67 | route.input = itv->card->video_inputs[inp].video_input; |
68 | route.output = 0; | 68 | route.output = 0; |
69 | itv->video_dec_func(itv, VIDIOC_INT_S_VIDEO_ROUTING, &route); | 69 | v4l2_subdev_call(itv->sd_video, video, s_routing, &route); |
70 | 70 | ||
71 | type = itv->card->video_inputs[inp].video_type; | 71 | type = itv->card->video_inputs[inp].video_type; |
72 | 72 | ||
@@ -79,7 +79,7 @@ void ivtv_video_set_io(struct ivtv *itv) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | if (itv->card->hw_video & IVTV_HW_GPIO) | 81 | if (itv->card->hw_video & IVTV_HW_GPIO) |
82 | ivtv_gpio(itv, VIDIOC_INT_S_VIDEO_ROUTING, &route); | 82 | ivtv_call_hw(itv, IVTV_HW_GPIO, video, s_routing, &route); |
83 | 83 | ||
84 | if (itv->card->hw_video & IVTV_HW_UPD64031A) { | 84 | if (itv->card->hw_video & IVTV_HW_UPD64031A) { |
85 | if (type == IVTV_CARD_INPUT_VID_TUNER || | 85 | if (type == IVTV_CARD_INPUT_VID_TUNER || |
@@ -92,7 +92,7 @@ void ivtv_video_set_io(struct ivtv *itv) | |||
92 | } | 92 | } |
93 | route.input |= itv->card->gr_config; | 93 | route.input |= itv->card->gr_config; |
94 | 94 | ||
95 | ivtv_upd64031a(itv, VIDIOC_INT_S_VIDEO_ROUTING, &route); | 95 | ivtv_call_hw(itv, IVTV_HW_UPD64031A, video, s_routing, &route); |
96 | } | 96 | } |
97 | 97 | ||
98 | if (itv->card->hw_video & IVTV_HW_UPD6408X) { | 98 | if (itv->card->hw_video & IVTV_HW_UPD6408X) { |
@@ -110,6 +110,6 @@ void ivtv_video_set_io(struct ivtv *itv) | |||
110 | route.input |= UPD64083_EXT_Y_ADC; | 110 | route.input |= UPD64083_EXT_Y_ADC; |
111 | } | 111 | } |
112 | } | 112 | } |
113 | ivtv_upd64083(itv, VIDIOC_INT_S_VIDEO_ROUTING, &route); | 113 | ivtv_call_hw(itv, IVTV_HW_UPD6408X, video, s_routing, &route); |
114 | } | 114 | } |
115 | } | 115 | } |