Skip to content

Commit 63712e2

Browse files
stephan-ghgregkh
authored andcommitted
media: venus: hfi_parser: Ignore HEVC encoding for V1
[ Upstream commit c50cc6d ] Some older MSM8916 Venus firmware versions also seem to indicate support for encoding HEVC, even though they really can't. This will lead to errors later because hfi_session_init() fails in this case. HEVC is already ignored for "dec_codecs", so add the same for "enc_codecs" to make these old firmware versions work correctly. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2a72378 commit 63712e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/media/platform/qcom/venus/hfi_parser.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ static void parse_codecs(struct venus_core *core, void *data)
181181
if (IS_V1(core)) {
182182
core->dec_codecs &= ~HFI_VIDEO_CODEC_HEVC;
183183
core->dec_codecs &= ~HFI_VIDEO_CODEC_SPARK;
184+
core->enc_codecs &= ~HFI_VIDEO_CODEC_HEVC;
184185
}
185186
}
186187

0 commit comments

Comments
 (0)