diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-02-03 06:39:09 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-17 08:28:54 -0400 |
commit | 090fdf6af8d1baafcdaf44796058f62a73a637bf (patch) | |
tree | aad9a2fa66ee9698b345a562d44868a5b75ea15b | |
parent | cc9231f88edec9e95ce579484e1c862b6d810854 (diff) |
[media] radio-tea5764: add prio and control event support
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Fabio Belavenuto <belavenuto@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/radio/radio-tea5764.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c index 077d9063cd4f..c22feedb36f5 100644 --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <media/v4l2-ioctl.h> | 41 | #include <media/v4l2-ioctl.h> |
42 | #include <media/v4l2-device.h> | 42 | #include <media/v4l2-device.h> |
43 | #include <media/v4l2-ctrls.h> | 43 | #include <media/v4l2-ctrls.h> |
44 | #include <media/v4l2-event.h> | ||
44 | 45 | ||
45 | #define DRIVER_VERSION "0.0.2" | 46 | #define DRIVER_VERSION "0.0.2" |
46 | 47 | ||
@@ -397,6 +398,9 @@ static const struct v4l2_ctrl_ops tea5764_ctrl_ops = { | |||
397 | /* File system interface */ | 398 | /* File system interface */ |
398 | static const struct v4l2_file_operations tea5764_fops = { | 399 | static const struct v4l2_file_operations tea5764_fops = { |
399 | .owner = THIS_MODULE, | 400 | .owner = THIS_MODULE, |
401 | .open = v4l2_fh_open, | ||
402 | .release = v4l2_fh_release, | ||
403 | .poll = v4l2_ctrl_poll, | ||
400 | .unlocked_ioctl = video_ioctl2, | 404 | .unlocked_ioctl = video_ioctl2, |
401 | }; | 405 | }; |
402 | 406 | ||
@@ -406,6 +410,9 @@ static const struct v4l2_ioctl_ops tea5764_ioctl_ops = { | |||
406 | .vidioc_s_tuner = vidioc_s_tuner, | 410 | .vidioc_s_tuner = vidioc_s_tuner, |
407 | .vidioc_g_frequency = vidioc_g_frequency, | 411 | .vidioc_g_frequency = vidioc_g_frequency, |
408 | .vidioc_s_frequency = vidioc_s_frequency, | 412 | .vidioc_s_frequency = vidioc_s_frequency, |
413 | .vidioc_log_status = v4l2_ctrl_log_status, | ||
414 | .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, | ||
415 | .vidioc_unsubscribe_event = v4l2_event_unsubscribe, | ||
409 | }; | 416 | }; |
410 | 417 | ||
411 | /* V4L2 interface */ | 418 | /* V4L2 interface */ |
@@ -469,6 +476,7 @@ static int tea5764_i2c_probe(struct i2c_client *client, | |||
469 | video_set_drvdata(&radio->vdev, radio); | 476 | video_set_drvdata(&radio->vdev, radio); |
470 | radio->vdev.lock = &radio->mutex; | 477 | radio->vdev.lock = &radio->mutex; |
471 | radio->vdev.v4l2_dev = v4l2_dev; | 478 | radio->vdev.v4l2_dev = v4l2_dev; |
479 | set_bit(V4L2_FL_USE_FH_PRIO, &radio->vdev.flags); | ||
472 | 480 | ||
473 | /* initialize and power off the chip */ | 481 | /* initialize and power off the chip */ |
474 | tea5764_i2c_read(radio); | 482 | tea5764_i2c_read(radio); |