From 2d2afe1286fa2452f806415ffcf3294d2a46d399 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Wed, 21 Dec 2016 17:39:29 +0100 Subject: [PATCH] meta-digi: fix gst1.0-fsl-plugin video sink device Signed-off-by: Hector Palacios https://jira.digi.com/browse/DEL-3399 --- ...gstimxv4l2-map-dev-video1-to-dev-fb0.patch | 30 +++++++++++++++++++ .../gst1.0-fsl-plugin_4.0.8.bbappend | 5 ++++ 2 files changed, 35 insertions(+) create mode 100644 meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin-4.0.8/0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch create mode 100644 meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bbappend diff --git a/meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin-4.0.8/0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch b/meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin-4.0.8/0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch new file mode 100644 index 000000000..7f562f8b5 --- /dev/null +++ b/meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin-4.0.8/0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch @@ -0,0 +1,30 @@ +From: Hector Palacios +Date: Wed, 21 Dec 2016 16:28:05 +0100 +Subject: [PATCH] gstimxv4l2: map /dev/video1 to /dev/fb0 + +On the i.MX6UL, the CSI camera is probed before the video PXP device. +In this case the camera is registered as /dev/video0 and the video device +is registered as /dev/video1. + +In the mappings for video devices we must map /dev/video1 to /dev/fb0 so +that the imxv4l2sink can work with it. + +Signed-off-by: Hector Palacios + +https://jira.digi.com/browse/DEL-3399 +--- + libs/v4l2_core/gstimxv4l2.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libs/v4l2_core/gstimxv4l2.c b/libs/v4l2_core/gstimxv4l2.c +index 02cf68d9cddc..3ec3d6a41e18 100755 +--- a/libs/v4l2_core/gstimxv4l2.c ++++ b/libs/v4l2_core/gstimxv4l2.c +@@ -208,6 +208,7 @@ static guint g_camera_format_PXP[] = { + + static IMXV4l2DeviceMap g_device_maps[] = { + {"/dev/video0", FALSE, "/dev/fb0"}, ++ {"/dev/video1", FALSE, "/dev/fb0"}, + {"/dev/video16", TRUE, "/dev/fb0"}, + {"/dev/video17", FALSE, "/dev/fb0"}, + {"/dev/video18", TRUE, "/dev/fb2"}, diff --git a/meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bbappend b/meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bbappend new file mode 100644 index 000000000..833800cae --- /dev/null +++ b/meta-digi-dey/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bbappend @@ -0,0 +1,5 @@ +# Copyright (C) 2016 Digi International + +FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:" + +SRC_URI += "file://0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch"