]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: mc: Expand MUST_CONNECT flag to always require an enabled link
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 14 Jan 2024 23:04:52 +0000 (01:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:17 +0000 (15:28 +0200)
commitd0e3440dab0d20466b3b95774ad59e50c47b7774
treee8d88efa6a7936c61e63ac63c714a2db3a1f0f70
parent3b6ccc91dcc44265294b9b179d99342a428bcc4c
media: mc: Expand MUST_CONNECT flag to always require an enabled link

[ Upstream commit b3decc5ce7d778224d266423b542326ad469cb5f ]

The MEDIA_PAD_FL_MUST_CONNECT flag indicates that the pad requires an
enabled link to stream, but only if it has any link at all. This makes
little sense, as if a pad is part of a pipeline, there are very few use
cases for an active link to be mandatory only if links exist at all. A
review of in-tree drivers confirms they all need an enabled link for
pads marked with the MEDIA_PAD_FL_MUST_CONNECT flag.

Expand the scope of the flag by rejecting pads that have no links at
all. This requires modifying the pipeline build code to add those pads
to the pipeline.

Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/userspace-api/media/mediactl/media-types.rst
drivers/media/mc/mc-entity.c