aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-09-10 23:08:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 22:47:44 -0400
commit0414614aab32d84da2bb092eb83b5e456946022d (patch)
tree1b509b31c9694bdae61c0799283c4aa4d56ab12e /drivers/media/video/em28xx/em28xx-video.c
parent290c0cfac9050fa2442e93f35f47e4faa4227e85 (diff)
V4L/DVB (12747): em28xx: only advertise VBI capability if supported
Change the code so we only claim to support VBI if the underlying chipset actually has the support. This work was sponsored by EyeMagnet Limited. Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index a5632c7e6438..8955b7b5365f 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -1758,11 +1758,13 @@ static int vidioc_querycap(struct file *file, void *priv,
1758 cap->version = EM28XX_VERSION_CODE; 1758 cap->version = EM28XX_VERSION_CODE;
1759 1759
1760 cap->capabilities = 1760 cap->capabilities =
1761 V4L2_CAP_VBI_CAPTURE |
1762 V4L2_CAP_SLICED_VBI_CAPTURE | 1761 V4L2_CAP_SLICED_VBI_CAPTURE |
1763 V4L2_CAP_VIDEO_CAPTURE | 1762 V4L2_CAP_VIDEO_CAPTURE |
1764 V4L2_CAP_READWRITE | V4L2_CAP_STREAMING; 1763 V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
1765 1764
1765 if (dev->vbi_dev)
1766 cap->capabilities |= V4L2_CAP_VBI_CAPTURE;
1767
1766 if (dev->audio_mode.has_audio) 1768 if (dev->audio_mode.has_audio)
1767 cap->capabilities |= V4L2_CAP_AUDIO; 1769 cap->capabilities |= V4L2_CAP_AUDIO;
1768 1770