|
@@ -190,6 +190,7 @@ static int bru_enum_mbus_code(struct v4l2_subdev *subdev,
|
|
|
MEDIA_BUS_FMT_ARGB8888_1X32,
|
|
|
MEDIA_BUS_FMT_AYUV8_1X32,
|
|
|
};
|
|
|
+ struct vsp1_bru *bru = to_bru(subdev);
|
|
|
struct v4l2_mbus_framefmt *format;
|
|
|
|
|
|
if (code->pad == BRU_PAD_SINK(0)) {
|
|
@@ -201,7 +202,8 @@ static int bru_enum_mbus_code(struct v4l2_subdev *subdev,
|
|
|
if (code->index)
|
|
|
return -EINVAL;
|
|
|
|
|
|
- format = v4l2_subdev_get_try_format(subdev, cfg, BRU_PAD_SINK(0));
|
|
|
+ format = vsp1_entity_get_pad_format(&bru->entity, cfg,
|
|
|
+ BRU_PAD_SINK(0), code->which);
|
|
|
code->code = format->code;
|
|
|
}
|
|
|
|