]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: atmel: atmel-isi: add support for mono sensors, GRAY and Y16
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 29 Nov 2019 14:10:38 +0000 (15:10 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 09:16:56 +0000 (10:16 +0100)
commitb567bf86eeba8d227d45a083a6cf139df05b9eb7
tree20d43849098f8b00fe9818d563144a9a53136d76
parent374d968ac7440d128f93128e7f13f2ab035b0dcc
media: atmel: atmel-isi: add support for mono sensors, GRAY and Y16

This adds support for GREY and Y16 formats, based on Y10 mbus codes.
Y16 needs to go through preview path in the ISI, with 2 pixels per word,
and it fits the Y16 format. The ISI data lines need to be MSB aligned with
the sensor data lines.
GREY format in 8 bits per pixel is done by dropping the 2 LSB bits
from the Y10 format, and packed as 4 pixels per word.

Suggested-by: Wenyou Yang <wenyou.yang@microchip.com>
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-isi.c
drivers/media/platform/atmel/atmel-isi.h