[media] rcar-vin: use pad information when verifying media bus format
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 24 May 2017 00:15:31 +0000 (21:15 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 17:39:22 +0000 (14:39 -0300)
Use information about pad index when enumerating mbus codes.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-core.c

index 24ce6967f7110b818ce0913d9346715ffd3d711c..94c5c8d905d969986098c6311b86054515947c1f 100644 (file)
@@ -53,6 +53,7 @@ static bool rvin_mbus_supported(struct rvin_graph_entity *entity)
        };
 
        code.index = 0;
+       code.pad = entity->source_pad;
        while (!v4l2_subdev_call(sd, pad, enum_mbus_code, NULL, &code)) {
                code.index++;
                switch (code.code) {