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

Commit 84e902aa authored by Frank Schaefer's avatar Frank Schaefer Committed by Mauro Carvalho Chehab
Browse files

[media] em28xx: do not claim VBI support if the device is a camera



Avoids registering a VBI device and streaming in VBI-mode if the device is a
camera.

Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent fff459e3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -681,6 +681,11 @@ int em28xx_vbi_supported(struct em28xx *dev)
	if (disable_vbi == 1)
		return 0;

	if (dev->board.is_webcam)
		return 0;

	/* FIXME: check subdevices for VBI support */

	if (dev->chip_id == CHIP_ID_EM2860 ||
	    dev->chip_id == CHIP_ID_EM2883)
		return 1;