]> asedeno.scripts.mit.edu Git - linux.git/commit
media: rcar-vin: Add support for RGB formats with alpha component
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 4 Jul 2019 17:16:01 +0000 (13:16 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 25 Jul 2019 15:46:58 +0000 (11:46 -0400)
commit1d99e68ce7fd9b5f5ab01d72455e8acd699e49cc
treedc866044ea7e792fd5df015cd722997cc115a8b7
parent5720c7331ff7e376a6d612eb8c2920d1789d78f7
media: rcar-vin: Add support for RGB formats with alpha component

The R-Car VIN module supports V4L2_PIX_FMT_ARGB555 and
V4L2_PIX_FMT_ABGR32 pixel formats. Add the hardware register setup and
allow the alpha component to be changed while streaming using the
V4L2_CID_ALPHA_COMPONENT control.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: fix checkpatch warning for macro VNDMR_A8BIT]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar-vin/rcar-dma.c
drivers/media/platform/rcar-vin/rcar-v4l2.c