linux-stable/drivers/staging/media/rkvdec
Jonas Karlman a5d7879d92 media: rkvdec: h264: Fix bit depth wrap in pps packet
[ Upstream commit a074aa4760 ]

The luma and chroma bit depth fields in the pps packet are 3 bits wide.
8 is wrongly added to the bit depth values written to these 3 bit fields.
Because only the 3 LSB are written, the hardware was configured
correctly.

Correct this by not adding 8 to the luma and chroma bit depth value.

Fixes: cd33c83044 ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:25:54 +02:00
..
Kconfig media: rkvdec: Add the VP9 backend 2021-11-22 07:49:23 +00:00
Makefile media: rkvdec: Add the VP9 backend 2021-11-22 07:49:23 +00:00
rkvdec-h264.c media: rkvdec: h264: Fix bit depth wrap in pps packet 2022-06-09 10:25:54 +02:00
rkvdec-regs.h
rkvdec-vp9.c media: rkvdec: Add the VP9 backend 2021-11-22 07:49:23 +00:00
rkvdec.c media: staging: media: rkvdec: Constify static struct v4l2_m2m_ops 2021-11-30 12:00:26 +01:00
rkvdec.h media: rkvdec: Add the VP9 backend 2021-11-22 07:49:23 +00:00
TODO