Commit 7c154711 authored by Gjorgji Rosikopulos's avatar Gjorgji Rosikopulos Committed by Greg Kroah-Hartman

greybus: camera: add semiplanar and planar formats

This change adds missing planar and semiplanar
formats from gb specification.

Mbus to Gb format map:
V4L2_MBUS_FMT_NV12_1x8 -> 0x12
V4L2_MBUS_FMT_NV21_1x8 -> 0x13
V4L2_MBUS_FMT_YV12_1x8 -> 0x16
V4L2_MBUS_FMT_YU12_1x8 -> 0x17

Change depends on:
"media: add new mediabus format enums for ara camera"
Signed-off-by: default avatarGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent f3e6c097
...@@ -70,11 +70,19 @@ static const struct gb_camera_fmt_map mbus_to_gbus_format[] = { ...@@ -70,11 +70,19 @@ static const struct gb_camera_fmt_map mbus_to_gbus_format[] = {
.gb_format = 0x01, .gb_format = 0x01,
}, },
{ {
.mbus_code = V4L2_MBUS_FMT_YUYV8_1_5X8, .mbus_code = V4L2_MBUS_FMT_NV12_1x8,
.gb_format = 0x12,
},
{
.mbus_code = V4L2_MBUS_FMT_NV21_1x8,
.gb_format = 0x13,
},
{
.mbus_code = V4L2_MBUS_FMT_YU12_1x8,
.gb_format = 0x16, .gb_format = 0x16,
}, },
{ {
.mbus_code = V4L2_MBUS_FMT_YVYU8_1_5X8, .mbus_code = V4L2_MBUS_FMT_YV12_1x8,
.gb_format = 0x17, .gb_format = 0x17,
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment