summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorGjorgji Rosikopulos2016-01-22 16:59:44 +0100
committerGreg Kroah-Hartman2016-01-23 00:47:27 +0100
commit7c154711a6705bbc3036d8f64944e8882fe3fd84 (patch)
treec027425d6e005737ea4a9e99c455f0068e3e2da9 /drivers/staging/greybus/camera.c
parentgreybus: svc: Expose and retain VID/PID received from bootrom for ES2 (diff)
downloadkernel-qcow2-linux-7c154711a6705bbc3036d8f64944e8882fe3fd84.tar.gz
kernel-qcow2-linux-7c154711a6705bbc3036d8f64944e8882fe3fd84.tar.xz
kernel-qcow2-linux-7c154711a6705bbc3036d8f64944e8882fe3fd84.zip
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: Gjorgji Rosikopulos <grosikopulos@mm-sol.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/camera.c')
-rw-r--r--drivers/staging/greybus/camera.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 6f14848fa854..bcef3920d002 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -70,11 +70,19 @@ static const struct gb_camera_fmt_map mbus_to_gbus_format[] = {
.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,
},
{
- .mbus_code = V4L2_MBUS_FMT_YVYU8_1_5X8,
+ .mbus_code = V4L2_MBUS_FMT_YV12_1x8,
.gb_format = 0x17,
},
{