diff options
author | Bingbu Cao <bingbu.cao@intel.com> | 2019-12-30 04:09:04 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-01-04 08:11:51 +0100 |
commit | 92590966fe5b6cc1930b1ad36d4f84e9bc88b982 (patch) | |
tree | a72a64027fa5d29552d91ba63830feca2cc299c1 /drivers/staging/media/ipu3/ipu3-v4l2.c | |
parent | 1451d5ae351d938a0ab1677498c893f17b9ee21d (diff) | |
download | linux-92590966fe5b6cc1930b1ad36d4f84e9bc88b982.tar.gz linux-92590966fe5b6cc1930b1ad36d4f84e9bc88b982.tar.bz2 linux-92590966fe5b6cc1930b1ad36d4f84e9bc88b982.zip |
media: staging/intel-ipu3: set the main output as mandatory
From firmware perspective, the main output for each pipe is mandatory
and must be enabled. This patch set the link between imgu subdev and
main output as IMMUTABLE by default.
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/ipu3/ipu3-v4l2.c')
-rw-r--r-- | drivers/staging/media/ipu3/ipu3-v4l2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c index 3c7ad1eed434..569e27b824c8 100644 --- a/drivers/staging/media/ipu3/ipu3-v4l2.c +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c @@ -1260,6 +1260,11 @@ static int imgu_v4l2_node_setup(struct imgu_device *imgu, unsigned int pipe, r = media_create_pad_link(&vdev->entity, 0, &sd->entity, node_num, flags); } else { + if (node->id == IMGU_NODE_OUT) { + flags |= MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE; + node->enabled = true; + } + r = media_create_pad_link(&sd->entity, node_num, &vdev->entity, 0, flags); } |