drivers: media: cfe: Find the source pads on the sensor entity
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 24 Nov 2023 14:29:57 +0000 (14:29 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:17 +0000 (11:35 +0000)
commitd8b4b24fb2dbd4de35c3fafc511a6ca7f67eed43
tree20c0e1892fb0df6572952d5f9f525004da31220d
parentc2c3137b8f9cb33e32346b6cff34aabef572c2e6
drivers: media: cfe: Find the source pads on the sensor entity

The driver was assuming that pad 0 on the sensor entity was the
appropriate source pad, but this isn't necessarily the case.
With video-mux, it has the sink pads first, and then the source
pad as the last one.

Iterate through the sensor pads to find the relevant source pads.

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