media: atmel: atmel-isc-base: allow 8 bit direct dump
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 25 Nov 2019 08:32:48 +0000 (09:32 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 09:14:14 +0000 (10:14 +0100)
commit62387970a4818168cd8d86dc59624c0fbd7268a8
treebbd53dc6ca19a6155f2699dbbff2ded8bb019c19
parentfee586a20f48bf646118dc553993b3b0d98a5f06
media: atmel: atmel-isc-base: allow 8 bit direct dump

In case the format that the sensor sends is 8 bit only (like GREY for
example) we need to be able to bypass ISC pipeline and directly dump
8 bits.
That's why the hardcoded value of 16 bpp is not correct in all cases.
This change allows the output format to decide what is the correct bpp
(bits per pixel) such that the result is in the proper format.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/atmel/atmel-isc-base.c