diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-02-03 06:35:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-17 08:27:47 -0400 |
commit | 827c7cf5135e4ca5b0e7de1ed2ae8c1a362b923c (patch) | |
tree | dcf7b1b54042bbf5a03efd027e799826a8165bed /drivers/media/radio | |
parent | 16b371784ecf1a2d1d7f04760807b3b8138d369f (diff) |
[media] radio-tea5764: audio and input ioctls do not apply to radio devices
Deleted those ioctls from this driver.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Fabio Belavenuto <belavenuto@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/radio-tea5764.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c index 5c47a970843e..5a609903d4c5 100644 --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c | |||
@@ -389,39 +389,6 @@ static int tea5764_s_ctrl(struct v4l2_ctrl *ctrl) | |||
389 | return -EINVAL; | 389 | return -EINVAL; |
390 | } | 390 | } |
391 | 391 | ||
392 | static int vidioc_g_input(struct file *filp, void *priv, unsigned int *i) | ||
393 | { | ||
394 | *i = 0; | ||
395 | return 0; | ||
396 | } | ||
397 | |||
398 | static int vidioc_s_input(struct file *filp, void *priv, unsigned int i) | ||
399 | { | ||
400 | if (i != 0) | ||
401 | return -EINVAL; | ||
402 | return 0; | ||
403 | } | ||
404 | |||
405 | static int vidioc_g_audio(struct file *file, void *priv, | ||
406 | struct v4l2_audio *a) | ||
407 | { | ||
408 | if (a->index > 1) | ||
409 | return -EINVAL; | ||
410 | |||
411 | strcpy(a->name, "Radio"); | ||
412 | a->capability = V4L2_AUDCAP_STEREO; | ||
413 | return 0; | ||
414 | } | ||
415 | |||
416 | static int vidioc_s_audio(struct file *file, void *priv, | ||
417 | const struct v4l2_audio *a) | ||
418 | { | ||
419 | if (a->index != 0) | ||
420 | return -EINVAL; | ||
421 | |||
422 | return 0; | ||
423 | } | ||
424 | |||
425 | static const struct v4l2_ctrl_ops tea5764_ctrl_ops = { | 392 | static const struct v4l2_ctrl_ops tea5764_ctrl_ops = { |
426 | .s_ctrl = tea5764_s_ctrl, | 393 | .s_ctrl = tea5764_s_ctrl, |
427 | }; | 394 | }; |
@@ -436,10 +403,6 @@ static const struct v4l2_ioctl_ops tea5764_ioctl_ops = { | |||
436 | .vidioc_querycap = vidioc_querycap, | 403 | .vidioc_querycap = vidioc_querycap, |
437 | .vidioc_g_tuner = vidioc_g_tuner, | 404 | .vidioc_g_tuner = vidioc_g_tuner, |
438 | .vidioc_s_tuner = vidioc_s_tuner, | 405 | .vidioc_s_tuner = vidioc_s_tuner, |
439 | .vidioc_g_audio = vidioc_g_audio, | ||
440 | .vidioc_s_audio = vidioc_s_audio, | ||
441 | .vidioc_g_input = vidioc_g_input, | ||
442 | .vidioc_s_input = vidioc_s_input, | ||
443 | .vidioc_g_frequency = vidioc_g_frequency, | 406 | .vidioc_g_frequency = vidioc_g_frequency, |
444 | .vidioc_s_frequency = vidioc_s_frequency, | 407 | .vidioc_s_frequency = vidioc_s_frequency, |
445 | }; | 408 | }; |