]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: vicodec: improve handling of uncompressable planes
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 21 Aug 2018 07:09:02 +0000 (03:09 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 12:27:01 +0000 (08:27 -0400)
commitabe9d19ae3fd50d729cc6668f996ab27da414449
tree342a01e2b6d1cf26ec3a6561301c7d3aa82325fc
parent98efd5525ac092d20ae126936c87c02be0588bdc
media: vicodec: improve handling of uncompressable planes

Exit the loop immediately once it is clear that the plane
cannot be compressed. Also clear the PCODED bit and fix the
PCODED check (it should check for the bit) in the caller code.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/vicodec-codec.c
drivers/media/platform/vicodec/vicodec-core.c