From patchwork Thu Aug 23 09:51:27 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: 1365461 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 51AF9DF2AB for ; Thu, 23 Aug 2012 09:52:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933340Ab2HWJwR (ORCPT ); Thu, 23 Aug 2012 05:52:17 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:19572 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758280Ab2HWJwQ (ORCPT ); Thu, 23 Aug 2012 05:52:16 -0400 Received: from epcpsbgm1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9700EG3CQH07Z0@mailout1.samsung.com> for linux-media@vger.kernel.org; Thu, 23 Aug 2012 18:52:15 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-ef-5035fd4fe8c4 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 98.CA.17335.F4DF5305; Thu, 23 Aug 2012 18:52:15 +0900 (KST) Received: from amdc248.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9700GHMCQHII60@mmp2.samsung.com> for linux-media@vger.kernel.org; Thu, 23 Aug 2012 18:52:14 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: riverful.kim@samsung.com, sw0312.kim@samsung.com, sakari.ailus@iki.fi, g.liakhovetski@gmx.de, laurent.pinchart@ideasonboard.com, kyungmin.park@samsung.com, Sylwester Nawrocki Subject: [PATCH RFC 2/4] V4L: Add V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 media bus format Date: Thu, 23 Aug 2012 11:51:27 +0200 Message-id: <1345715489-30158-3-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.11.3 In-reply-to: <1345715489-30158-1-git-send-email-s.nawrocki@samsung.com> References: <1345715489-30158-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jQV3/v6YBBns2s1v0bNjK6sDo8XmT XABjFJdNSmpOZllqkb5dAlfG6Y5TTAUrZCqWtWxkaWB8KNbFyMkhIWAiceHFN0YIW0ziwr31 bF2MXBxCAtMZJZ79ngrkcAA5y5kkPqeA1LAJGEr0Hu0DqxcRkJd40nsDrJ5Z4DyjxMLVZ1lB EsICIRKTPl5lBrFZBFQl3vzpBIvzCrhJ7J77gRlimaLEj+9rwGxOAXeJ+X1zmEBsIaCay9uO sExg5F3AyLCKUTS1ILmgOCk911CvODG3uDQvXS85P3cTI9jjz6R2MK5ssDjEKMDBqMTDmxFr GiDEmlhWXJl7iFGCg1lJhDd8HlCINyWxsiq1KD++qDQntfgQozQHi5I4L3+fYYCQQHpiSWp2 ampBahFMlomDU6qBscrG2PGFmupWa6lps5R+qp44G564SSJYe/HpNvEvJqxdE/aVnGp/fcfZ NpDBPGfL23oxsWCJzud51+yW78te2DyrKM+kfZJkaV16YoPsxcnv/xxOZ3Xj0a+8lL66a8VB 79n1uQ7neCMnpXl/WnE583N5xk3nef1T5BPulCor3O9T9WDzbbFXYinOSDTUYi4qTgQAlDn/ qPQBAAA= X-TM-AS-MML: No 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 | 45 ++++++++++++++++++++++ include/linux/v4l2-mediabus.h | 5 +++ 3 files changed, 54 insertions(+) diff --git a/Documentation/DocBook/media/v4l/compat.xml b/Documentation/DocBook/media/v4l/compat.xml index 98e8d08..5d2480b 100644 --- a/Documentation/DocBook/media/v4l/compat.xml +++ b/Documentation/DocBook/media/v4l/compat.xml @@ -2605,6 +2605,10 @@ ioctls. Support for frequency band enumeration: &VIDIOC-ENUM-FREQ-BANDS; 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..d7aa870 100644 --- a/Documentation/DocBook/media/v4l/subdev-formats.xml +++ b/Documentation/DocBook/media/v4l/subdev-formats.xml @@ -2565,5 +2565,50 @@ + +
+ 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. These formats comprise raw and compressed image data + and optional meta-data within a single frame. + + + The following table lists the existing vendor and device specific + formats. + + + Vendor and device specific formats + + + + + + + Identifier + Code + Comments + + + + + V4L2_MBUS_FMT_S5C_UYVY_JPG_1X8 + 0x8001 + + Interleaved raw UYVY and JPEG image format with embedded + meta-data, produced by S3C73M3 camera sensors. + + + + +
+
+ diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h index 5ea7f75..b98c566 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 0x8002 */ + + /* S5C73M3 interleaved UYVY and JPEG */ + V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 = 0x8001, }; /**