Re: V4L control units

2014-05-09 Thread Hans Verkuil
On 05/09/2014 03:46 PM, Sakari Ailus wrote: > Hi Hans, > > On Fri, May 09, 2014 at 02:57:13PM +0200, Hans Verkuil wrote: >> On 05/08/2014 11:04 AM, Sakari Ailus wrote: >>> Heippa! >>> >>> On Wed, May 07, 2014 at 03:57:11PM +0300, Antti Palosaari wrote: What is preferred way implement controls

Re: V4L control units

2014-05-09 Thread Sakari Ailus
Hi Hans, On Fri, May 09, 2014 at 02:57:13PM +0200, Hans Verkuil wrote: > On 05/08/2014 11:04 AM, Sakari Ailus wrote: > > 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 u

Re: V4L control units

2014-05-09 Thread Hans Verkuil
On 05/08/2014 11:04 AM, Sakari Ailus wrote: > 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 (dec

Re: V4L control units

2014-05-08 Thread Sakari Ailus
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. S

V4L control units

2014-05-07 Thread Antti Palosaari
Moikka 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

V4L control units

2014-05-07 Thread Antti Palosaari
Moikka 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