diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2013-02-01 18:01:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-14 18:40:06 -0400 |
commit | 90a60e90749b844502bca1a7cd76755caf6f4548 (patch) | |
tree | a7629e6f978cd7ecb05e20db2531088553a3e45b | |
parent | ce5bdd52629ebb50f65db03e6dfa9c96697d0d40 (diff) |
[media] saa7134: v4l2-compliance: remove bogus audio input support
Make saa7134 driver more V4L2 compliant: remove empty g_audio and s_audio
functions and don't set audioset in enum_input
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/pci/saa7134/saa7134-video.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c index b832684b940a..40245e42d431 100644 --- a/drivers/media/pci/saa7134/saa7134-video.c +++ b/drivers/media/pci/saa7134/saa7134-video.c | |||
@@ -1750,7 +1750,6 @@ static int saa7134_enum_input(struct file *file, void *priv, | |||
1750 | strcpy(i->name, card_in(dev, n).name); | 1750 | strcpy(i->name, card_in(dev, n).name); |
1751 | if (card_in(dev, n).tv) | 1751 | if (card_in(dev, n).tv) |
1752 | i->type = V4L2_INPUT_TYPE_TUNER; | 1752 | i->type = V4L2_INPUT_TYPE_TUNER; |
1753 | i->audioset = 1; | ||
1754 | if (n == dev->ctl_input) { | 1753 | if (n == dev->ctl_input) { |
1755 | int v1 = saa_readb(SAA7134_STATUS_VIDEO1); | 1754 | int v1 = saa_readb(SAA7134_STATUS_VIDEO1); |
1756 | int v2 = saa_readb(SAA7134_STATUS_VIDEO2); | 1755 | int v2 = saa_readb(SAA7134_STATUS_VIDEO2); |
@@ -2084,17 +2083,6 @@ static int saa7134_s_frequency(struct file *file, void *priv, | |||
2084 | return 0; | 2083 | return 0; |
2085 | } | 2084 | } |
2086 | 2085 | ||
2087 | static int saa7134_g_audio(struct file *file, void *priv, struct v4l2_audio *a) | ||
2088 | { | ||
2089 | strcpy(a->name, "audio"); | ||
2090 | return 0; | ||
2091 | } | ||
2092 | |||
2093 | static int saa7134_s_audio(struct file *file, void *priv, const struct v4l2_audio *a) | ||
2094 | { | ||
2095 | return 0; | ||
2096 | } | ||
2097 | |||
2098 | static int saa7134_enum_fmt_vid_cap(struct file *file, void *priv, | 2086 | static int saa7134_enum_fmt_vid_cap(struct file *file, void *priv, |
2099 | struct v4l2_fmtdesc *f) | 2087 | struct v4l2_fmtdesc *f) |
2100 | { | 2088 | { |
@@ -2348,20 +2336,6 @@ static int radio_g_input(struct file *filp, void *priv, unsigned int *i) | |||
2348 | return 0; | 2336 | return 0; |
2349 | } | 2337 | } |
2350 | 2338 | ||
2351 | static int radio_g_audio(struct file *file, void *priv, | ||
2352 | struct v4l2_audio *a) | ||
2353 | { | ||
2354 | memset(a, 0, sizeof(*a)); | ||
2355 | strcpy(a->name, "Radio"); | ||
2356 | return 0; | ||
2357 | } | ||
2358 | |||
2359 | static int radio_s_audio(struct file *file, void *priv, | ||
2360 | const struct v4l2_audio *a) | ||
2361 | { | ||
2362 | return 0; | ||
2363 | } | ||
2364 | |||
2365 | static int radio_s_input(struct file *filp, void *priv, unsigned int i) | 2339 | static int radio_s_input(struct file *filp, void *priv, unsigned int i) |
2366 | { | 2340 | { |
2367 | return 0; | 2341 | return 0; |
@@ -2412,8 +2386,6 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { | |||
2412 | .vidioc_g_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, | 2386 | .vidioc_g_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2413 | .vidioc_try_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, | 2387 | .vidioc_try_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2414 | .vidioc_s_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, | 2388 | .vidioc_s_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2415 | .vidioc_g_audio = saa7134_g_audio, | ||
2416 | .vidioc_s_audio = saa7134_s_audio, | ||
2417 | .vidioc_cropcap = saa7134_cropcap, | 2389 | .vidioc_cropcap = saa7134_cropcap, |
2418 | .vidioc_reqbufs = saa7134_reqbufs, | 2390 | .vidioc_reqbufs = saa7134_reqbufs, |
2419 | .vidioc_querybuf = saa7134_querybuf, | 2391 | .vidioc_querybuf = saa7134_querybuf, |
@@ -2458,9 +2430,7 @@ static const struct v4l2_ioctl_ops radio_ioctl_ops = { | |||
2458 | .vidioc_querycap = saa7134_querycap, | 2430 | .vidioc_querycap = saa7134_querycap, |
2459 | .vidioc_g_tuner = radio_g_tuner, | 2431 | .vidioc_g_tuner = radio_g_tuner, |
2460 | .vidioc_enum_input = radio_enum_input, | 2432 | .vidioc_enum_input = radio_enum_input, |
2461 | .vidioc_g_audio = radio_g_audio, | ||
2462 | .vidioc_s_tuner = radio_s_tuner, | 2433 | .vidioc_s_tuner = radio_s_tuner, |
2463 | .vidioc_s_audio = radio_s_audio, | ||
2464 | .vidioc_s_input = radio_s_input, | 2434 | .vidioc_s_input = radio_s_input, |
2465 | .vidioc_s_std = radio_s_std, | 2435 | .vidioc_s_std = radio_s_std, |
2466 | .vidioc_queryctrl = radio_queryctrl, | 2436 | .vidioc_queryctrl = radio_queryctrl, |