]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: add RF tuner gain controls
authorAntti Palosaari <crope@iki.fi>
Sat, 25 Jan 2014 02:44:26 +0000 (23:44 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 18:46:56 +0000 (15:46 -0300)
commit031a51d44866d0b01e00ae75152d2e5ba064773e
treed0ded0209d6a908fffa155509dab58f260ca5a0a
parentb3dfe61af3095afab8309684729a500bcdf02eb3
[media] v4l: add RF tuner gain controls

Modern silicon RF tuners used nowadays has many controllable gain
stages on signal path. Usually, but not always, there is at least
3 gain stages. Also on some cases there could be multiple gain
stages within the ones specified here. However, I think that having
these three controllable gain stages offers enough fine-tuning for
real use cases.

1) LNA gain. That is first gain just after antenna input.
2) Mixer gain. It is located quite middle of the signal path, where
RF signal is down-converted to IF/BB.
3) IF gain. That is last gain in order to adjust output signal level
to optimal level for receiving party (usually demodulator ADC).

Each gain stage could be set rather often both manual or automatic
(AGC) mode. Due to that add separate controls for controlling
operation mode.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ctrls.c
include/uapi/linux/v4l2-controls.h