mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 12:50:02 +02:00
Don't change the quantization of an RGB format when converting between
RGB and YUV with the RGA3. As the RGA3 only supports doing conversions
to full range YUV with BT601, it wants to announce it through
try_fmt/s_fmt.
As it is only relevant, when converting between RGB and YUV, it's
guarded by a given condition. But the condition also causes the
RGB format quantization to be adjusted to limited range, which
is incorrect.
Therefore simplify the condition to only apply when the current format
is a YUV format. Also document the reason for checking if the other
format is an RGB format.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| rga-buf.c | ||
| rga-hw.c | ||
| rga-hw.h | ||
| rga.c | ||
| rga.h | ||
| rga3-hw.c | ||
| rga3-hw.h | ||