[media] rcar-vin: move chip check for pixelformat support
The check for if the specific pixelformat is supported on the current chip should happen in VIDIOC_S_FMT and VIDIOC_TRY_FMT and not when we try to setup the hardware for streaming. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Mauro Carvalho Chehab

vecāks
2fb5910c03
revīzija
ee9e2a525c
@@ -192,6 +192,11 @@ static int __rvin_try_format(struct rvin_dev *vin,
|
||||
pix->sizeimage = max_t(u32, pix->sizeimage,
|
||||
rvin_format_sizeimage(pix));
|
||||
|
||||
if (vin->chip == RCAR_M1 && pix->pixelformat == V4L2_PIX_FMT_XBGR32) {
|
||||
vin_err(vin, "pixel format XBGR32 not supported on M1\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
vin_dbg(vin, "Requested %ux%u Got %ux%u bpl: %d size: %d\n",
|
||||
rwidth, rheight, pix->width, pix->height,
|
||||
pix->bytesperline, pix->sizeimage);
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user