]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: verisilicon: AV1: Fix tx mode bit setting
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Tue, 9 Dec 2025 10:34:17 +0000 (11:34 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 14:56:31 +0000 (15:56 +0100)
commitcb3f945c012ab152fd2323e0df34c2b640071738
treeb2c46fca8c5a9b3600b0e7a77031397c2794e76c
parente0f99b810e1181374370f91cd996d761549e147f
media: verisilicon: AV1: Fix tx mode bit setting

AV1 specification describes 3 possibles tx modes: 4x4 only, largest and
select. The hardware allows 5 possibles tx modes: 4x4 only, 8x8, 16x16,
32x32 and select. Since the both aren't exactly matching we need to add
a mapping function to set the correct mode on hardware.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Fixes: 727a400686a2c ("media: verisilicon: Add Rockchip AV1 decoder")
Cc: stable@vger.kernel.org
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c