All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <Bassai_Dai@gmx.net>
To: linux-media@vger.kernel.org
Subject: Re: Add private controls to ctrl_handler
Date: Tue, 7 Jan 2014 08:15:58 +0000 (UTC)	[thread overview]
Message-ID: <loom.20140107T091511-641@post.gmane.org> (raw)
In-Reply-To: 52CAC006.7080907@xs4all.nl

Hans Verkuil <hverkuil <at> xs4all.nl> writes:

> 
> Don't use V4L2_CID_PRIVATE_BASE, that doesn't work with the control framework
> (for good but somewhat obscure reasons).
> 
> Instead use (V4L2_CID_USER_BASE | 0x1000) as the base for your private
controls.
> If you want to upstream the code, then you should define a range for the
private
> controls of this driver in v4l2-controls.h. Search for e.g.
V4L2_CID_USER_S2255_BASE
> in that header to see how it is done.
> 
> Regards,
> 
> 	Hans
> 

thanks for your help. It worked for me with "(V4L2_CID_USER_BASE | 0x1000)"
base and the "v4l2_ctrl_new_custom" function.

Regards, Tom


      reply	other threads:[~2014-01-07  8:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-06 14:30 Add private controls to ctrl_handler Tom
2014-01-06 14:36 ` Tom
2014-01-06 14:39 ` Hans Verkuil
2014-01-07  8:15   ` Tom [this message]

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=loom.20140107T091511-641@post.gmane.org \
    --to=bassai_dai@gmx.net \
    --cc=linux-media@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.