]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: coda: increment sequence offset for the last returned frame
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Jun 2019 16:45:22 +0000 (12:45 -0400)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commite1e63d8260a18549db477b5a8bcfca09a00b555e
tree5393a9c27f90a4bfc3b093ef8294baee1e233b07
parentd7fcfb4816a870a25522ac6eba6c36f37bbf534f
media: coda: increment sequence offset for the last returned frame

BugLink: https://bugs.launchpad.net/bugs/1839036
[ Upstream commit b3b7d96817cdb8b6fc353867705275dce8f41ccc ]

If no more frames are decoded in bitstream end mode, and a previously
decoded frame has been returned, the firmware still increments the frame
number. To avoid a sequence number mismatch after decoder restart,
increment the sequence_offset correction parameter.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/platform/coda/coda-bit.c