diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-video-v4l.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-video-v4l.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c b/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c index 2a826464911a..8b37748cfcba 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c +++ b/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c | |||
@@ -183,18 +183,6 @@ static void decoder_enable(struct pvr2_v4l_decoder *ctxt,int fl) | |||
183 | } | 183 | } |
184 | 184 | ||
185 | 185 | ||
186 | static int decoder_is_tuned(struct pvr2_v4l_decoder *ctxt) | ||
187 | { | ||
188 | struct v4l2_tuner vt; | ||
189 | int ret; | ||
190 | |||
191 | memset(&vt,0,sizeof(vt)); | ||
192 | ret = pvr2_i2c_client_cmd(ctxt->client,VIDIOC_G_TUNER,&vt); | ||
193 | if (ret < 0) return -EINVAL; | ||
194 | return vt.signal ? 1 : 0; | ||
195 | } | ||
196 | |||
197 | |||
198 | static unsigned int decoder_describe(struct pvr2_v4l_decoder *ctxt,char *buf,unsigned int cnt) | 186 | static unsigned int decoder_describe(struct pvr2_v4l_decoder *ctxt,char *buf,unsigned int cnt) |
199 | { | 187 | { |
200 | return scnprintf(buf,cnt,"handler: pvrusb2-video-v4l"); | 188 | return scnprintf(buf,cnt,"handler: pvrusb2-video-v4l"); |
@@ -227,7 +215,6 @@ int pvr2_i2c_decoder_v4l_setup(struct pvr2_hdw *hdw, | |||
227 | ctxt->ctrl.ctxt = ctxt; | 215 | ctxt->ctrl.ctxt = ctxt; |
228 | ctxt->ctrl.detach = (void (*)(void *))decoder_detach; | 216 | ctxt->ctrl.detach = (void (*)(void *))decoder_detach; |
229 | ctxt->ctrl.enable = (void (*)(void *,int))decoder_enable; | 217 | ctxt->ctrl.enable = (void (*)(void *,int))decoder_enable; |
230 | ctxt->ctrl.tuned = (int (*)(void *))decoder_is_tuned; | ||
231 | ctxt->client = cp; | 218 | ctxt->client = cp; |
232 | ctxt->hdw = hdw; | 219 | ctxt->hdw = hdw; |
233 | ctxt->stale_mask = (1 << (sizeof(decoder_ops)/ | 220 | ctxt->stale_mask = (1 << (sizeof(decoder_ops)/ |