]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit80807fada4398d11ebd2bb28b3b49ca6a59e1260
treed0ded0209d6a908fffa155509dab58f260ca5a0a
parent851897a4adc42ad7b6327e4c64f599c07a6c5ebb
[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