Skip to contentSkip to conversation

V4L control units

DISCUSSION Antti Palosaari 1 participant 1 message May 7, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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_LNA_GAIN_AUTO
V4L2_CID_RF_TUNER_LNA_GAIN
V4L2_CID_RF_TUNER_LNA_GAIN_dB

regards
Antti

Signature · 1 line
http://palosaari.fi/