upstream: [media] vsp1: Fix lack of the sink entity registration for enabled links
authorKatsuya Matsubara <matsu@igel.co.jp>
Fri, 26 Jul 2013 09:32:11 +0000 (06:32 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:35 +0000 (11:51 +0900)
commit9396dd0b86c64a76aee8f93a4211310f4f3ee549
tree9d851841421d89f2bedef75c1829e5ee6e9f624a
parentf0d8952d1fd9a0302dddb738688a4f4c4bd82a91
upstream: [media] vsp1: Fix lack of the sink entity registration for enabled links

Each source entity maintains a pointer to the counterpart sink
entity while an enabled link connects them. It should be managed by
the setup_link callback in the media controller framework at runtime.
However, enabled links which connect RPFs and WPFs that have an
equivalent index number are created during initialization.
This registers the pointer to a sink entity from the source entity
when an enabled link is created.

Signed-off-by: Katsuya Matsubara <matsu@igel.co.jp>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vsp1/vsp1_drv.c