[media] em28xx: add support for V4L2_PIX_FMT_SRGGB8

Adding support for SRGGB8 is as simple as adding a new entry at
struct em28xx_fmt.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Frank Schaefer 2017-04-15 07:05:04 -03:00 committed by Mauro Carvalho Chehab
parent a7b8e9a5b3
commit 495ab569d0

View File

@ -115,6 +115,11 @@ static struct em28xx_fmt format[] = {
.fourcc = V4L2_PIX_FMT_RGB565, .fourcc = V4L2_PIX_FMT_RGB565,
.depth = 16, .depth = 16,
.reg = EM28XX_OUTFMT_RGB_16_656, .reg = EM28XX_OUTFMT_RGB_16_656,
}, {
.name = "8 bpp Bayer RGRG..GBGB",
.fourcc = V4L2_PIX_FMT_SRGGB8,
.depth = 8,
.reg = EM28XX_OUTFMT_RGB_8_RGRG,
}, { }, {
.name = "8 bpp Bayer BGBG..GRGR", .name = "8 bpp Bayer BGBG..GRGR",
.fourcc = V4L2_PIX_FMT_SBGGR8, .fourcc = V4L2_PIX_FMT_SBGGR8,