From patchwork Mon Jan 17 09:53:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qing Xu X-Patchwork-Id: 483421 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0H9ujUE032504 for ; Mon, 17 Jan 2011 09:56:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702Ab1AQJ4m (ORCPT ); Mon, 17 Jan 2011 04:56:42 -0500 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:52629 "HELO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752583Ab1AQJ4m convert rfc822-to-8bit (ORCPT ); Mon, 17 Jan 2011 04:56:42 -0500 Received: from source ([65.219.4.129]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKTTQSVga9yrYBCAcVVq+eAORReXDANcop@postini.com; Mon, 17 Jan 2011 01:56:42 PST Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA01.marvell.com ([10.93.76.21]) with mapi; Mon, 17 Jan 2011 01:53:02 -0800 From: Qing Xu To: Guennadi Liakhovetski , Laurent Pinchart CC: Linux Media Mailing List Date: Mon, 17 Jan 2011 01:53:00 -0800 Subject: soc-camera jpeg support? Thread-Topic: soc-camera jpeg support? Thread-Index: Acuwsabrm/SmBIehQF+g75sgmWm5ngFeO2UQ Message-ID: <7BAC95F5A7E67643AAFB2C31BEE662D014040BF237@SC-VEXCH2.marvell.com> References: <1294368595-2518-1-git-send-email-qingx@marvell.com> <7BAC95F5A7E67643AAFB2C31BEE662D014040171EE@SC-VEXCH2.marvell.com> <201101101133.01636.laurent.pinchart@ideasonboard.com> In-Reply-To: <201101101133.01636.laurent.pinchart@ideasonboard.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: zh-CN, en-US MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 17 Jan 2011 09:56:45 +0000 (UTC) --- a/drivers/media/video/soc_mediabus.c +++ b/drivers/media/video/soc_mediabus.c @@ -130,6 +130,13 @@ static const struct soc_mbus_pixelfmt mbus_fmt[] = { .packing = SOC_MBUS_PACKING_2X8_PADLO, .order = SOC_MBUS_ORDER_BE, }, + [MBUS_IDX(JPEG_1X8)] = { + .fourcc = V4L2_PIX_FMT_JPEG, + .name = "JPEG", + .bits_per_sample = 8, + .packing = SOC_MBUS_PACKING_NONE, + .order = SOC_MBUS_ORDER_LE, + }, }; --- a/include/media/v4l2-mediabus.h +++ b/include/media/v4l2-mediabus.h @@ -41,6 +41,7 @@ enum v4l2_mbus_pixelcode { V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_BE, V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_BE, V4L2_MBUS_FMT_SGRBG8_1X8, + V4L2_MBUS_FMT_JPEG_1X8, }; Any ideas will be appreciated!