Re: V4L control units

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heippa!

On Wed, May 07, 2014 at 03:57:11PM +0300, Antti Palosaari wrote:
> What is preferred way implement controls that could have some known
> unit or unknown unit? For example for gain controls, I would like to
> offer gain in unit of dB (decibel) and also some unknown driver
> specific unit. Should I two controls, one for each unit?
> 
> Like that
> 
> V4L2_CID_RF_TUNER_LNA_GAIN_AUTO
> V4L2_CID_RF_TUNER_LNA_GAIN
> V4L2_CID_RF_TUNER_LNA_GAIN_dB

I suppose that on any single device there would be a single unit to control
a given... control. Some existing controls do document the unit as well but
I don't think that's scalable nor preferrable. This way we'd have many
different controls to control the same thing but just using a different
unit. The auto control is naturally different. Hans did have a patch to add
the unit to queryctrl (in the form of QUERY_EXT_CTRL).

<URL:http://www.spinics.net/lists/linux-media/msg73136.html>

I wish we can get these in relatively soon.

-- 
Terveisin,

Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: sailus@xxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux