media: cedrus: Fix H265 status definitions
authorJernej Skrabec <jernej.skrabec@siol.net>
Mon, 12 Apr 2021 15:43:49 +0000 (17:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 15 Apr 2021 11:20:04 +0000 (13:20 +0200)
commit147d211cc9b4d753148d1640a1758b25edfbf437
tree7ae8a006e19d744ec65661a71c79c81584e250ef
parent87e780db2253a1759822c2c9ea207135fcc059de
media: cedrus: Fix H265 status definitions

Some of the H265 status flags are wrong. Redefine them to corespond to
Allwinner CedarC open source userspace library. Only one of these flags
is actually used and new value also matches value used in libvdpau-sunxi
library, which is proven to be working.

Note that wrong (old) value in right circumstances (in combination with
another H265 decoding bug) causes driver lock up. With this fix decoding
is still broken (green output) but at least driver doesn't lock up.

Fixes: 86caab29da78 ("media: cedrus: Add HEVC/H.265 decoding support")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus_regs.h