Skip to content

Commit 879c5a4

Browse files
Niklas Söderlundmchehab
authored andcommitted
media: rcar-vin: Gen3 can not scale NV12
The VIN modules on Gen3 can not scale NV12, fail format validation if the user tries. Currently no frames are produced if this is attempted. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent ba0ad6e commit 879c5a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/media/platform/renesas/rcar-vin/rcar-dma.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,11 @@ static int rvin_mc_validate_format(struct rvin_dev *vin, struct v4l2_subdev *sd,
13121312
}
13131313

13141314
if (rvin_scaler_needed(vin)) {
1315+
/* Gen3 can't scale NV12 */
1316+
if (vin->info->model == RCAR_GEN3 &&
1317+
vin->format.pixelformat == V4L2_PIX_FMT_NV12)
1318+
return -EPIPE;
1319+
13151320
if (!vin->scaler)
13161321
return -EPIPE;
13171322
} else {

0 commit comments

Comments
 (0)