]> git.baikalelectronics.ru Git - kernel.git/commit
media: Hantro: Correct G2 init qp field
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Tue, 24 May 2022 11:59:45 +0000 (12:59 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:35 +0000 (10:30 +0100)
commit6c739b7effd7b612c4925932a92321d30dc987f5
tree9d35616fbed18c4c4cd792c0d42a6c0b4a720585
parent540dee5aaf6b8518cac70869888bd3c0634c59e3
media: Hantro: Correct G2 init qp field

Documentation said that g2 init_qp field use bits 24 to 30 of
the 8th register.
Change the field mask to be able to set 7 bits and not only 6 of them.

Conformance test INITQP_B_Main10_Sony_1 decoding is OK with this
patch.

Fixes: 8da9da7889ff8 ("media: hantro: Introduce G2/HEVC decoder")
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_g2_regs.h