]> git.karo-electronics.de Git - linux-beck.git/commit
[media] uvcvideo: Mark first output terminal as default video node
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 3 Aug 2012 07:35:10 +0000 (04:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 28 Nov 2012 12:30:00 +0000 (10:30 -0200)
commit8be8ec6ea58bd77338f6ffa2f6d2acfc88b835f4
tree8bf7dcb4b5bead6f0cd726013b5493867d53b376
parent0550513c7a559b4933c5e1d47fbd15d15f6078d5
[media] uvcvideo: Mark first output terminal as default video node

The MEDIA_ENT_FL_DEFAULT identifies entities that are considered as
default for their group and type. For video nodes, it identifies the
node that application should use by default.
UVC devices don't report which output terminal should be considered as
the default, use the first one. Most devices have a single output
terminal anyway.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_entity.c
drivers/media/usb/uvc/uvcvideo.h