linux-stable/drivers/staging/media
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
..
atomisp media: atomisp: fix bad usage at error handling logic 2022-04-08 13:58:46 +02:00
av7110 Revert "media: dvb header files: move some headers to staging" 2021-08-23 09:49:09 -07:00
hantro media: hantro: HEVC: Fix tile info buffer value computation 2022-06-09 10:25:52 +02:00
imx media: imx: imx8mq-mipi_csi2: fix system resume 2022-04-08 13:57:42 +02:00
ipu3 media: staging: ipu3-imgu: add the AWB memory layout 2021-12-16 20:54:52 +01:00
max96712 media: staging: max96712: Constify static v4l2_subdev_ops 2021-12-14 15:09:14 +01:00
meson/vdec media: meson: vdec: potential dereference of null pointer 2022-04-08 13:57:43 +02:00
omap4iss media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
rkvdec media: rkvdec: h264: Fix bit depth wrap in pps packet 2022-06-09 10:25:54 +02:00
sunxi media: cedrus: h264: Fix neighbour info buffer size 2022-04-08 13:57:47 +02:00
tegra-vde media updates for v5.17-rc1 2022-01-10 18:55:43 -08:00
tegra-video device property: Drop fwnode_graph_get_remote_node() 2021-12-17 18:41:29 +01:00
zoran media: staging: media: zoran: fix various V4L2 compliance errors 2022-04-08 13:58:41 +02:00
Kconfig media: staging: max96712: Add basic support for MAX96712 GMSL2 deserializer 2021-11-15 08:11:43 +00:00
Makefile media: staging: max96712: Add basic support for MAX96712 GMSL2 deserializer 2021-11-15 08:11:43 +00:00