diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-03-02 11:02:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 09:03:51 -0500 |
commit | eb2ba855470797b20dced364f5897cc949e7ade6 (patch) | |
tree | 84d5543750c89c3167ac0712c7e999d2a28e9892 /drivers/media/video/ivtv/ivtv-ioctl.c | |
parent | 072e660257ee26e4f4defd836b1e1fa23d68de32 (diff) |
[media] ivtv: simplify how the decoder controls are set up
The code was unnecessarily complex, introducing a hdl_out handler that was
not needed. Instead just add the controls to the cxhdl.hdl handler directly.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index 385e003fcfbb..5452beef8e11 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -1548,10 +1548,7 @@ static int ivtv_log_status(struct file *file, void *fh) | |||
1548 | } | 1548 | } |
1549 | IVTV_INFO("Tuner: %s\n", | 1549 | IVTV_INFO("Tuner: %s\n", |
1550 | test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" : "TV"); | 1550 | test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" : "TV"); |
1551 | if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) | 1551 | v4l2_ctrl_handler_log_status(&itv->cxhdl.hdl, itv->v4l2_dev.name); |
1552 | v4l2_ctrl_handler_log_status(&itv->hdl_out, itv->v4l2_dev.name); | ||
1553 | else | ||
1554 | v4l2_ctrl_handler_log_status(&itv->cxhdl.hdl, itv->v4l2_dev.name); | ||
1555 | IVTV_INFO("Status flags: 0x%08lx\n", itv->i_flags); | 1552 | IVTV_INFO("Status flags: 0x%08lx\n", itv->i_flags); |
1556 | for (i = 0; i < IVTV_MAX_STREAMS; i++) { | 1553 | for (i = 0; i < IVTV_MAX_STREAMS; i++) { |
1557 | struct ivtv_stream *s = &itv->streams[i]; | 1554 | struct ivtv_stream *s = &itv->streams[i]; |