From patchwork Wed Sep 26 15:54:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 1510001 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A2D1AE00F5 for ; Wed, 26 Sep 2012 15:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757119Ab2IZPyl (ORCPT ); Wed, 26 Sep 2012 11:54:41 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:29914 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757106Ab2IZPyj (ORCPT ); Wed, 26 Sep 2012 11:54:39 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MAY00F2NS6UKE21@mailout4.samsung.com> for linux-media@vger.kernel.org; Thu, 27 Sep 2012 00:54:38 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-61-5063253e3ce0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 65.6C.03783.E3523605; Thu, 27 Sep 2012 00:54:38 +0900 (KST) Received: from amdc248.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MAY000JLS6LTOA0@mmp1.samsung.com> for linux-media@vger.kernel.org; Thu, 27 Sep 2012 00:54:38 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: a.hajda@samsung.com, sakari.ailus@iki.fi, laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl, kyungmin.park@samsung.com, sw0312.kim@samsung.com, Sylwester Nawrocki Subject: [PATCH RFC v3 1/5] V4L: Add V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 media bus format Date: Wed, 26 Sep 2012 17:54:09 +0200 Message-id: <1348674853-24596-2-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.11.3 In-reply-to: <1348674853-24596-1-git-send-email-s.nawrocki@samsung.com> References: <1348674853-24596-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAV071eQAg1sHjSx6NmxldWD0+LxJ LoAxissmJTUnsyy1SN8ugSuj+/NhpoID0hUPF59nbGDsFuti5OCQEDCR6F4JZHICmWISF+6t Z+ti5OIQEljEKPF31xEmCGc5k8TL613MIFVsAoYSvUf7GEFsEQF5iSe9N8A6mAVOMko0rPsJ ViQsEC5xce87MJtFQFVi3rs1YA28Am4SW48dZIFYpyjx4/sasBpOAXeJVTP/s4JcJARUc3eT 7wRG3gWMDKsYRVMLkguKk9JzDfWKE3OLS/PS9ZLzczcxgj3+TGoH48oGi0OMAhyMSjy8Db8S A4RYE8uKK3MPMUpwMCuJ8D7LSgoQ4k1JrKxKLcqPLyrNSS0+xCjNwaIkziv8KTBASCA9sSQ1 OzW1ILUIJsvEwSnVwJjdk6S2acK5mBhmK/aP2x94NecrsIg5PSkLSJOSZLhzMXPFmfW2Z1yy Sr6c3h/qP02x58bVkh87ptubG4ctFpV9l8pltD0gdb352YvFKm2nZ26S/2Dcv/HNToMnkxuu +nIKMd2YpBPlnncuKmnar1cvbSSD2fe35a5VvrM16jqD58sZkxn0ViuxFGckGmoxFxUnAgC9 1NOS9AEAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds media bus pixel code for the interleaved JPEG/UYVY image format used by S5C73MX Samsung cameras. This interleaved image data is transferred on MIPI-CSI2 bus as User Defined Byte-based Data. It also defines an experimental vendor and device specific media bus formats section and adds related DocBook documentation. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- Documentation/DocBook/media/v4l/compat.xml | 4 ++ Documentation/DocBook/media/v4l/subdev-formats.xml | 44 ++++++++++++++++++++++ include/linux/v4l2-mediabus.h | 5 +++ 3 files changed, 53 insertions(+) diff --git a/Documentation/DocBook/media/v4l/compat.xml b/Documentation/DocBook/media/v4l/compat.xml index 802c1ab..b12cddb 100644 --- a/Documentation/DocBook/media/v4l/compat.xml +++ b/Documentation/DocBook/media/v4l/compat.xml @@ -2612,6 +2612,10 @@ ioctls. Exporting DMABUF files using &VIDIOC-EXPBUF; ioctl. + + Vendor and device specific media bus pixel formats. + . + diff --git a/Documentation/DocBook/media/v4l/subdev-formats.xml b/Documentation/DocBook/media/v4l/subdev-formats.xml index 49c532e..a0a9364 100644 --- a/Documentation/DocBook/media/v4l/subdev-formats.xml +++ b/Documentation/DocBook/media/v4l/subdev-formats.xml @@ -2565,5 +2565,49 @@ + +
+ Vendor and Device Specific Formats + + + Experimental + This is an experimental +interface and may change in the future. + + + This section lists complex data formats that are either vendor or + device specific. + + + The following table lists the existing vendor and device specific + formats. + + + Vendor and device specific formats + + + + + + + Identifier + Code + Comments + + + + + V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 + 0x5001 + + Interleaved raw UYVY and JPEG image format with embedded + meta-data used by Samsung S3C73MX camera sensors. + + + + +
+
+ diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h index 5ea7f75..7d64e0e 100644 --- a/include/linux/v4l2-mediabus.h +++ b/include/linux/v4l2-mediabus.h @@ -92,6 +92,11 @@ enum v4l2_mbus_pixelcode { /* JPEG compressed formats - next is 0x4002 */ V4L2_MBUS_FMT_JPEG_1X8 = 0x4001, + + /* Vendor specific formats - next is 0x5002 */ + + /* S5C73M3 sensor specific interleaved UYVY and JPEG */ + V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 = 0x5001, }; /**