]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: coda: clear error return value before picture run
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 Apr 2019 12:32:49 +0000 (08:32 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:53:25 +0000 (11:53 -0400)
commitbbeefa7357a648afe70e7183914c87c3878d528d
tree0dd1c846e9135707413c6796f9c059e365595035
parentbe9dd094e8f38873ba2db49e3edf5f8aab3679d7
media: coda: clear error return value before picture run

The error return value is not written by some firmware codecs, such as
MPEG-2 decode on CodaHx4. Clear the error return value before starting
the picture run to avoid misinterpreting unrelated values returned by
sequence initialization as error return value.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-bit.c