[media] media: Check for active links on pads with MEDIA_PAD_FL_MUST_CONNECT flag
authorSakari Ailus <sakari.ailus@iki.fi>
Sun, 13 Oct 2013 11:00:26 +0000 (08:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 Dec 2013 17:03:45 +0000 (15:03 -0200)
commitde49c285a3604955dcbf746edd871f2a4f128122
treefbfa015d30fe98726b8fde0ce1354e1b6425771d
parentd0700c5175b0684c9935ca57deae733c2758667c
[media] media: Check for active links on pads with MEDIA_PAD_FL_MUST_CONNECT flag

Do not allow streaming if a pad with MEDIA_PAD_FL_MUST_CONNECT flag is not
connected by an active link.
This patch makes it possible to avoid drivers having to check for the most
common case of link state validation: a sink pad that must be connected.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/media-entity.c