mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
media: stm32: dcmipp: byteproc: disable compose for all bayers
Avoid possibility to perform compose on all frames which mbus code is
within the bayer range or jpeg format.
Fixes: 822c72eb15 ("media: stm32: dcmipp: add bayer 10~14 bits formats")
Cc: stable@vger.kernel.org
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
222f1279ed
commit
3363aa2640
|
|
@ -130,11 +130,8 @@ static void dcmipp_byteproc_adjust_compose(struct v4l2_rect *r,
|
|||
r->left = 0;
|
||||
|
||||
/* Compose is not possible for JPEG or Bayer formats */
|
||||
if (fmt->code == MEDIA_BUS_FMT_JPEG_1X8 ||
|
||||
fmt->code == MEDIA_BUS_FMT_SBGGR8_1X8 ||
|
||||
fmt->code == MEDIA_BUS_FMT_SGBRG8_1X8 ||
|
||||
fmt->code == MEDIA_BUS_FMT_SGRBG8_1X8 ||
|
||||
fmt->code == MEDIA_BUS_FMT_SRGGB8_1X8) {
|
||||
if (fmt->code >= MEDIA_BUS_FMT_SBGGR8_1X8 &&
|
||||
fmt->code <= MEDIA_BUS_FMT_JPEG_1X8) {
|
||||
r->width = fmt->width;
|
||||
r->height = fmt->height;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user