]> git.ipfire.org Git - thirdparty/linux.git/commit
media: iris: stop encoding PIPE value into fw_caps
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 28 Oct 2025 11:46:22 +0000 (13:46 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 6 Nov 2025 10:18:09 +0000 (11:18 +0100)
commit6c67d1cf18dce081f126a6aeb9f7cbd328805591
tree50f3efeca13825859bcfe7a6cf61ea1225f3ad20
parent7a02a8b98419c992faf8ab714cf4df7da99b2c46
media: iris: stop encoding PIPE value into fw_caps

The value of the PIPE property depends on the number of pipes available
on the platform and is frequently the only difference between several
fw_caps. In order to reduce duplication, use num_vpp_pipe from the
iris_platform_data rather than hardcoding the value into the fw_cap.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
[bod: duplciation -> duplication]
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/iris/iris_ctrls.c
drivers/media/platform/qcom/iris/iris_platform_gen2.c
drivers/media/platform/qcom/iris/iris_platform_qcs8300.h
drivers/media/platform/qcom/iris/iris_platform_sm8250.c