Skip to content

Commit

Permalink
V4L/DVB (12747): em28xx: only advertise VBI capability if supported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 290c0cf commit 0414614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1758,11 +1758,13 @@ static int vidioc_querycap(struct file *file, void *priv,
cap->version = EM28XX_VERSION_CODE;

cap->capabilities =
V4L2_CAP_VBI_CAPTURE |
V4L2_CAP_SLICED_VBI_CAPTURE |
V4L2_CAP_VIDEO_CAPTURE |
V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;

if (dev->vbi_dev)
cap->capabilities |= V4L2_CAP_VBI_CAPTURE;

if (dev->audio_mode.has_audio)
cap->capabilities |= V4L2_CAP_AUDIO;

Expand Down

0 comments on commit 0414614

Please sign in to comment.