]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
[media] xc5000: don't invoke auto calibration unless we really did reset tuner
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Tue, 7 Aug 2012 01:47:01 +0000 (22:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 9 Aug 2012 23:36:43 +0000 (20:36 -0300)
commitfc7a74bad1ae1d68a1a9999634baeb4bae277a92
treeb5e48a23ebb88d45fc14eada881e1100bf89d518
parentd6b8267800c59872bf2daf48c3399e83bee3a5ba
[media] xc5000: don't invoke auto calibration unless we really did reset tuner

The current code invokes the auto calibration of the tuner whenever the
init routine is called (whenever the DVB frontend opens the device).
However we should really only be invoking the calibration if we actually
did reset the device and reload the firmware.

Rework the routine to only do calibration if reset and firmware load was
performed.  Also because the called function is now a no-op if the
firmware is already loaded, the caller no longer needs to invoke
is_firmware_loaded().

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c