media: rkvdec: h264: Fix bit depth wrap in pps packet
stable inclusion from stable-v5.10.121 commit 63b7c0899564a8463ea699f8399b108a06140894 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=63b7c0899564a8463ea699f8399b108a06140894 -------------------------------- [ Upstream commit a074aa47 ] 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: cd33c830 ("media: rkvdec: Add the rkvdec driver") Signed-off-by: NJonas Karlman <jonas@kwiboo.se> Signed-off-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: NEzequiel Garcia <ezequiel@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录