diff options
| author | Sven Püschel <s.pueschel@pengutronix.de> | 2026-05-21 01:44:22 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-21 13:32:20 +0300 |
| commit | 9481ec73f6e6bff573a5716692ceb9669b68f134 (patch) | |
| tree | b2b049fda7442a8a0aac8d6878a68efa00ef52fc /include/linux/timerqueue.h | |
| parent | 10e2141179fe480763d10b604d7e4f9c62e8ba76 (diff) | |
| download | linux-9481ec73f6e6bff573a5716692ceb9669b68f134.tar.xz | |
media: rockchip: rga: check scaling factor
Check the scaling factor to avoid potential problems. This is relevant
for the upcoming RGA3 support, as it can hang when the scaling factor
is exceeded.
The check is done at streamon when the other side is already streaming
to avoid incorrectly failing if the application configures the other
side after calling streamon. As try_fmt shouldn't be state aware,
it cannot be used to limit the format based on the scaling factor.
Therefore the check is done just before the actual streaming would be
started.
As the driver allows changing the rotation and selection while
streaming, add additional checks to ensure these changes
don't exceed the scaling factor.
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
