]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13217): tda18271: handle rf_cal_on_startup properly during attach
authorMichael Krufky <mkrufky@kernellabs.com>
Sat, 24 Oct 2009 21:18:03 +0000 (18:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:56 +0000 (18:40 -0200)
commit3cff0dec0662cb723c6c1bde065757fae569ecd8
tree62939d3ea54575e6eafb23ce37c01355bf2bff0c
parent82a9a81a4f87bcab32db229222193de19f3f6e09
V4L/DVB (13217): tda18271: handle rf_cal_on_startup properly during attach

If rf_cal_on_startup is enabled in the structure passed into
tda18271_attach, and the cal module option isn't disabled, then we
should run the initialization and calibration procedures during the
tda18271_attach function call, regardless of how many instances of the
driver have been attached.  If the device is already calibrated, the
driver will detect that and will only calibrate again if necessary.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18271-fe.c