]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkvdec: h264: Fix bit depth wrap in pps packet
authorJonas Karlman <jonas@kwiboo.se>
Fri, 13 May 2022 20:29:12 +0000 (22:29 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 08:05:41 +0000 (10:05 +0200)
commit3e68e7cf4f9eb67db791e9370dc937c24bba8c8d
treea3a18198ecb3e25af9f8c01a5ee7e8370e111e1b
parent887f6c39555e9d1ed0e977a7c3bbb676234b6262
media: rkvdec: h264: Fix bit depth wrap in pps packet

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: 8e6530de4e639 ("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>
drivers/staging/media/rkvdec/rkvdec-h264.c