mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
vimc_capture_enum_framesizes() looks up the requested format using
vimc_pix_map_by_code(), which searches the pix map table by media
bus code (MEDIA_BUS_FMT_*).
However, v4l2_frmsizeenum::pixel_format holds a V4L2 pixel format
(V4L2_PIX_FMT_*), not a media bus code, so valid pixel formats end
up being rejected with -EINVAL.
Fix this by using vimc_pix_map_by_pixelformat() instead, which
performs the lookup by pixel format as the ioctl expects.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| vimc-capture.c | ||
| vimc-common.c | ||
| vimc-common.h | ||
| vimc-core.c | ||
| vimc-debayer.c | ||
| vimc-lens.c | ||
| vimc-scaler.c | ||
| vimc-sensor.c | ||
| vimc-streamer.c | ||
| vimc-streamer.h | ||