]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: venus: hfi_plat: Add codecs and capabilities ops
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Wed, 26 Aug 2020 11:07:07 +0000 (13:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:41:12 +0000 (07:41 +0200)
[ Upstream commit 9822291e031f6d7149ae4f3fc00bd9c33ac2a084 ]

Add ops to get the supported by the platform codecs and capabilities.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: 9edaaa8e3e15 ("media: venus: hfi_parser: refactor hfi packet parsing logic")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/qcom/venus/hfi_platform.h

index 67942323225577b94abb47a2298ae1f815b80a74..50512d142662f1deecd99dd786697a4647a61e76 100644 (file)
@@ -47,6 +47,8 @@ struct hfi_platform_codec_freq_data {
 struct hfi_platform {
        unsigned long (*codec_vpp_freq)(u32 session_type, u32 codec);
        unsigned long (*codec_vsp_freq)(u32 session_type, u32 codec);
+       void (*codecs)(u32 *enc_codecs, u32 *dec_codecs, u32 *count);
+       const struct hfi_plat_caps *(*capabilities)(unsigned int *entries);
 };
 
 extern const struct hfi_platform hfi_plat_v4;