[PATCH 10/10] media: rcar-vin: Support multiplexed transmitters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The VIN driver calls get_fmt() on the remove subdev to validate its
format. Now that the R-Car CSI-2 driver supports multiplexed streams
pass it the active state when calling the operation.

Signed-off-by: Jacopo Mondi <jacopo+renesas@xxxxxxxxxx>
---
 drivers/media/platform/rcar-vin/rcar-dma.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/rcar-vin/rcar-dma.c b/drivers/media/platform/rcar-vin/rcar-dma.c
index 3575be1387e3..1e181eede8e1 100644
--- a/drivers/media/platform/rcar-vin/rcar-dma.c
+++ b/drivers/media/platform/rcar-vin/rcar-dma.c
@@ -1133,7 +1133,8 @@ static int rvin_mc_validate_format(struct rvin_dev *vin, struct v4l2_subdev *sd,
 	};
 
 	fmt.pad = pad->index;
-	if (v4l2_subdev_call(sd, pad, get_fmt, NULL, &fmt))
+	if (v4l2_subdev_call(sd, pad, get_fmt,
+			     v4l2_subdev_get_active_state(sd), &fmt))
 		return -EPIPE;
 
 	switch (fmt.format.code) {
-- 
2.35.0




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux