[media] rcar-vin: use pad information when verifying media bus format
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>
This commit is contained in:
parent
f4dbfbc75b
commit
557d61672f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue