]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: qcom: iris: vdec: update find_format to handle 8bit and 10bit formats
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 2 Jun 2026 08:39:20 +0000 (10:39 +0200)
committerBryan O'Donoghue <bod@kernel.org>
Tue, 2 Jun 2026 21:12:10 +0000 (22:12 +0100)
commit20c3ef4c7cae76d4e15f31c812aa7761def2207a
treeee4c4d1db4e63dd2890116ed27e705ee6f2819a4
parent2f2f76d43314a8ae86aedae28f908a6a03e22521
media: qcom: iris: vdec: update find_format to handle 8bit and 10bit formats

The 10bit pixel format can be only used when the decoder identifies the
stream as decoding into 10bit pixel format buffers, so update the
find_format helper to filter the formats and only allow the proper
formats when setting or trying a capture format.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Tested-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
drivers/media/platform/qcom/iris/iris_platform_common.h
drivers/media/platform/qcom/iris/iris_vdec.c