From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mailout4.samsung.com ([203.254.224.34]:53714 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813Ab1BXKpP (ORCPT ); Thu, 24 Feb 2011 05:45:15 -0500 Received: from epmmp1 (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LH400052B7DX310@mailout4.samsung.com> for linux-media@vger.kernel.org; Thu, 24 Feb 2011 19:45:13 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LH40041LB7DT9@mmp1.samsung.com> for linux-media@vger.kernel.org; Thu, 24 Feb 2011 19:45:13 +0900 (KST) Date: Thu, 24 Feb 2011 19:45:13 +0900 From: "Kim, HeungJun" Subject: [RFC PATCH 0/2] v4l2-ctrls: add new focus mode To: "linux-media@vger.kernel.org" , "kyungmin.park@samsung.com" Cc: Hans Verkuil , Laurent Pinchart , Sylwester Nawrocki Reply-to: riverful.kim@samsung.com Message-id: <4D6636B9.4020105@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7BIT List-ID: Sender: Hello, I faced to the absence of the mode of v4l2 focus for a couple of years. While dealing with some few morebile camera sensors, the focus modes are needed more than the current v4l2 focus mode, like a Macro & Continuous mode. The M-5MOLS camera sensor I dealt with, also support these 2 modes. So, I'm going to suggest supports of more detailed v4l2 focus mode. This RFC series of patch adds new auto focus modes, and documents it. The first changes the boolean type of V4L2_CID_FOCUS_AUTO to menu type, and insert menus 4 enumerations: V4L2_FOCUS_AUTO, V4L2_FOCUS_MACRO, V4L2_FOCUS_MANUAL, V4L2_FOCUS_CONTINUOUS The recent mobile camera sensors with ISP supports Macro & Continuous Auto Focus aka CAF mode, of course normal AUTO mode, even Continuous mode. Changing the type of V4L2_CID_FOCUS_MODE, is able to define more exact focusing mode of camera sensor. The second changes let the previous drivers using V4L2_CID_FOCUS_AUTO by boolean type be able to use the type of menu. Thanks for reading this, and I hope any ideas and any comments. Regards, Heungjun Kim