media: bcm2835-unicam: Start and stop media_pipeline with same node
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 28 Mar 2023 12:43:43 +0000 (13:43 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:31 +0000 (11:33 +0000)
commit0146c37f9236f826fec87f4089a24ef22d97bb3b
tree6b6ee6119a8a284909c61a2d62466c1060807bad
parent34ccdac840e88469b397fa56be0c5005b082a793
media: bcm2835-unicam: Start and stop media_pipeline with same node

media_pipeline_start and media_pipeline_stop now validate that
the pipeline is being started and stopped with the same pipe
and pad handles.
When running with embedded metadata (eg imx477 and imx708), the
start typically happens from the metadata pad, whilst stop is
always from the image pad.

Always pass the image pad to media_pipeline_start to ensure
that the calls are balanced.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c