aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dibusb-common.c
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-08-08 14:48:10 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:43 -0400
commit825d51ef9ed956d896244f82b02988d370a7e47e (patch)
tree40d3b77300b4fe46ba2a56ad3121bd533550abde /drivers/media/dvb/dvb-usb/dibusb-common.c
parenta841e1f6d153c72e29802a33520f2c862792f7b0 (diff)
V4L/DVB: MT2060: Code cleanups, adding to new build-mechanism
Some minor code cleanups and added the MT2060 to new v4l-dvb-build-system, preliminarily under dvb/frontends. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dibusb-common.c')
-rw-r--r--drivers/media/dvb/dvb-usb/dibusb-common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c
index d7e2319ff202..a32ff63d170b 100644
--- a/drivers/media/dvb/dvb-usb/dibusb-common.c
+++ b/drivers/media/dvb/dvb-usb/dibusb-common.c
@@ -235,7 +235,7 @@ int dibusb_dib3000mc_tuner_attach (struct dvb_usb_device *d)
235{ 235{
236 int ret; 236 int ret;
237 u8 a,b; 237 u8 a,b;
238 u16 if1=1220; 238 u16 if1 = 1220;
239 239
240 if (d->tuner_pass_ctrl) { 240 if (d->tuner_pass_ctrl) {
241 struct dibusb_state *st = d->priv; 241 struct dibusb_state *st = d->priv;
@@ -243,17 +243,17 @@ int dibusb_dib3000mc_tuner_attach (struct dvb_usb_device *d)
243 // First IF calibration for Liteon Sticks 243 // First IF calibration for Liteon Sticks
244 if (d->udev->descriptor.idVendor == USB_VID_LITEON && 244 if (d->udev->descriptor.idVendor == USB_VID_LITEON &&
245 d->udev->descriptor.idProduct == USB_PID_LITEON_DVB_T_WARM) { 245 d->udev->descriptor.idProduct == USB_PID_LITEON_DVB_T_WARM) {
246
246 dibusb_read_eeprom_byte(d,0x7E,&a); 247 dibusb_read_eeprom_byte(d,0x7E,&a);
247 dibusb_read_eeprom_byte(d,0x7F,&b); 248 dibusb_read_eeprom_byte(d,0x7F,&b);
248 if (a == 0xFF && b == 0xFF) { 249
250 if (a == 0xFF && b == 0xFF)
249 if1 = 1220; 251 if1 = 1220;
250 } else 252 else if (a == 0x00)
251 if (a == 0x00) {
252 if1 = 1220+b; 253 if1 = 1220+b;
253 } else 254 else if (a == 0x80)
254 if (a == 0x80) {
255 if1 = 1220-b; 255 if1 = 1220-b;
256 } else { 256 else {
257 warn("LITE-ON DVB-T Tuner : Strange IF1 calibration :%2X %2X\n",(int)a,(int)b); 257 warn("LITE-ON DVB-T Tuner : Strange IF1 calibration :%2X %2X\n",(int)a,(int)b);
258 if1 = 1220; 258 if1 = 1220;
259 } 259 }