]> git.baikalelectronics.ru Git - 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)
commitbdfb889871e42a7dc22dedb041f5bada92498830
tree342a01e2b6d1cf26ec3a6561301c7d3aa82325fc
parent7aeaaa9e8538cf7d0fd64a9234bb56fc6b614349
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