]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:16 +0000 (14:40 +0200)
commit73b9240149d4dc079491ac846f3bee5299b15c6b
tree37d44a1a2a800a8980b07d46986fecfba36726c2
parent50b7e3276bdec6455b2f096a7b987571168d828b
media: qcom: camss: csid: Only add TPG v4l2 ctrl if TPG hardware is available

[ Upstream commit 2f1361f862a68063f37362f1beb400e78e289581 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/qcom/camss/camss-csid.c