]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: qcom: camss: csid: Only add TPG v4l2 ctrl if TPG hardware is available
authorDepeng Shao <quic_depengs@quicinc.com>
Mon, 13 Jan 2025 04:31:28 +0000 (10:01 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 6 Feb 2025 12:49:32 +0000 (13:49 +0100)
commit2f1361f862a68063f37362f1beb400e78e289581
treeb210867bb477b83c39d523ffcaa29b37124e61cf
parent2f4204bb00b32eca3391a468d3b37e87feb96fa9
media: qcom: camss: csid: Only add TPG v4l2 ctrl if TPG hardware is available

There is no CSID TPG on some SoCs, so the v4l2 ctrl in CSID driver
shouldn't be registered. Checking the supported TPG modes to indicate
if the TPG hardware exists or not and only registering v4l2 ctrl for
CSID only when the TPG hardware is present.

Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/camss/camss-csid.c