diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2019-03-30 15:01:31 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-04-22 17:34:50 +0200 |
commit | bccb89cf9cd07a0690d519696a00c00a973b3fe4 (patch) | |
tree | 4c6d52fe477f7a00a888ffe9fb9ce6e5c5e8f0aa /crypto/blkcipher.c | |
parent | media: ov6650: Register with asynchronous subdevice framework (diff) | |
download | linux-bccb89cf9cd07a0690d519696a00c00a973b3fe4.tar.xz linux-bccb89cf9cd07a0690d519696a00c00a973b3fe4.zip |
media: ov2659: make S_FMT succeed even if requested format doesn't match
This driver returns an error if unsupported media bus pixel code is
requested by VIDIOC_SUBDEV_S_FMT.
But according to Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst,
Drivers must not return an error solely because the requested format
doesn't match the device capabilities. They must instead modify the
format to match what the hardware can provide.
So select default format code and return success in that case.
This is detected by v4l2-compliance.
Cc: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'crypto/blkcipher.c')
0 files changed, 0 insertions, 0 deletions