]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: verisilicon: HEVC: Initialize start_bit field
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Mon, 20 Jan 2025 08:10:52 +0000 (09:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:12 +0000 (14:39 +0200)
commitd34100049923f4d15f93120004f5849703208f99
tree67e7da7d69af1e96ac0ef71f966cdfc01912a82c
parente161533964de0dd6c85c9308893e39f7e9237cf8
media: verisilicon: HEVC: Initialize start_bit field

[ Upstream commit 7fcb42b3835e90ef18d68555934cf72adaf58402 ]

The HEVC driver needs to set the start_bit field explicitly to avoid
causing corrupted frames when the VP9 decoder is used in parallel. The
reason for this problem is that the VP9 and the HEVC decoder share this
register.

Fixes: cb5dd5a0fa51 ("media: hantro: Introduce G2/HEVC decoder")
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Tested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/verisilicon/hantro_g2_hevc_dec.c