From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: riverful.kim@samsung.com,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Hans Verkuil <hverkuil@xs4all.nl>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
"???/Mobile S/W Platform Lab(DMC?)/E4(??)/????"
<sw0312.kim@samsung.com>,
"kyungmin.park@samsung.com" <kyungmin.park@samsung.com>
Subject: Re: [RFC PATCH RESEND v2 2/3] v4l2-ctrls: modify uvc driver to use new menu type of V4L2_CID_FOCUS_AUTO
Date: Mon, 21 Mar 2011 21:27:44 -0300 [thread overview]
Message-ID: <4D87ED00.1050406@redhat.com> (raw)
In-Reply-To: <201103031110.44920.laurent.pinchart@ideasonboard.com>
Hi Laurent,
Em 03-03-2011 07:10, Laurent Pinchart escreveu:
> On Thursday 03 March 2011 03:16:32 Kim, HeungJun wrote:
>> As following to change the boolean type of V4L2_CID_FOCUS_AUTO to menu
>> type, this uvc is modified the usage of V4L2_CID_FOCUS_AUTO, maintaining
>> v4l2 menu index.
>>
>> Signed-off-by: Heungjun Kim <riverful.kim@samsung.com>
>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>
> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
I'm assuming that you'll be applying those patches on your tree and sending
me a pull request, right?
Thanks!
Mauro
>
>> ---
>> drivers/media/video/uvc/uvc_ctrl.c | 9 ++++++++-
>> 1 files changed, 8 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/media/video/uvc/uvc_ctrl.c
>> b/drivers/media/video/uvc/uvc_ctrl.c index 59f8a9a..064827f 100644
>> --- a/drivers/media/video/uvc/uvc_ctrl.c
>> +++ b/drivers/media/video/uvc/uvc_ctrl.c
>> @@ -333,6 +333,11 @@ static struct uvc_menu_info exposure_auto_controls[] =
>> { { 8, "Aperture Priority Mode" },
>> };
>>
>> +static struct uvc_menu_info focus_auto_controls[] = {
>> + { 0, "Manual Mode" },
>> + { 1, "Auto Mode" },
>> +};
>> +
>> static __s32 uvc_ctrl_get_zoom(struct uvc_control_mapping *mapping,
>> __u8 query, const __u8 *data)
>> {
>> @@ -560,8 +565,10 @@ static struct uvc_control_mapping uvc_ctrl_mappings[]
>> = { .selector = UVC_CT_FOCUS_AUTO_CONTROL,
>> .size = 1,
>> .offset = 0,
>> - .v4l2_type = V4L2_CTRL_TYPE_BOOLEAN,
>> + .v4l2_type = V4L2_CTRL_TYPE_MENU,
>> .data_type = UVC_CTRL_DATA_TYPE_BOOLEAN,
>> + .menu_info = focus_auto_controls,
>> + .menu_count = ARRAY_SIZE(focus_auto_controls),
>> },
>> {
>> .id = V4L2_CID_IRIS_ABSOLUTE,
>
next prev parent reply other threads:[~2011-03-22 0:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 2:16 [RFC PATCH RESEND v2 2/3] v4l2-ctrls: modify uvc driver to use new menu type of V4L2_CID_FOCUS_AUTO Kim, HeungJun
2011-03-03 10:10 ` Laurent Pinchart
2011-03-22 0:27 ` Mauro Carvalho Chehab [this message]
2011-03-22 9:22 ` Laurent Pinchart
-- strict thread matches above, loose matches on Subject: below --
2011-02-25 12:46 Kim, HeungJun
2011-02-25 12:58 ` Laurent Pinchart
2011-02-28 5:15 ` Kim, HeungJun
2011-02-28 10:01 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D87ED00.1050406@redhat.com \
--to=mchehab@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=kyungmin.park@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=riverful.kim@samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=sw0312.kim@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox