Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0414614a authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Mauro Carvalho Chehab
Browse files

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: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 290c0cfa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;