aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-23 10:54:40 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-21 10:45:20 -0500
commitf2ba9e5dda2afd4615dbd3c48afe64fe2ce70d4e (patch)
treeaaae259bd40a4ae8c098bbea8d18510b90c22a6d /drivers/media/dvb
parent067fb88c9d423d67dbf432010b3bfc5336a2bbed (diff)
[media] az6007: make driver less verbose
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/az6007.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c
index 780a480fb703..bb597c67cc9f 100644
--- a/drivers/media/dvb/dvb-usb/az6007.c
+++ b/drivers/media/dvb/dvb-usb/az6007.c
@@ -62,9 +62,9 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
62{ 62{
63 struct dvb_usb_adapter *adap = fe->sec_priv; 63 struct dvb_usb_adapter *adap = fe->sec_priv;
64 struct az6007_device_state *st; 64 struct az6007_device_state *st;
65 int status; 65 int status = 0;
66 66
67 info("%s: %s", __func__, enable ? "enable" : "disable"); 67 deb_info("%s: %s\n", __func__, enable ? "enable" : "disable");
68 68
69 if (!adap) 69 if (!adap)
70 return -EINVAL; 70 return -EINVAL;
@@ -127,8 +127,7 @@ static int az6007_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value,
127 debug_dump(b, blen, deb_xfer); 127 debug_dump(b, blen, deb_xfer);
128 128
129 if (blen > 64) { 129 if (blen > 64) {
130 printk(KERN_ERR 130 err("az6007: doesn't suport I2C transactions longer than 64 bytes\n");
131 "az6007: doesn't suport I2C transactions longer than 64 bytes\n");
132 return -EOPNOTSUPP; 131 return -EOPNOTSUPP;
133 } 132 }
134 133
@@ -138,7 +137,7 @@ static int az6007_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value,
138 USB_TYPE_VENDOR | USB_DIR_OUT, 137 USB_TYPE_VENDOR | USB_DIR_OUT,
139 value, index, b, blen, 5000); 138 value, index, b, blen, 5000);
140 if (ret != blen) { 139 if (ret != blen) {
141 warn("usb out operation failed. (%d)", ret); 140 err("usb out operation failed. (%d)", ret);
142 return -EIO; 141 return -EIO;
143 } 142 }
144 143
@@ -207,7 +206,8 @@ static int az6007_frontend_poweron(struct dvb_usb_adapter *adap)
207 u16 index; 206 u16 index;
208 int blen; 207 int blen;
209 208
210 info("az6007_frontend_poweron adap=%p adap->dev=%p", adap, adap->dev); 209 deb_info("az6007_frontend_poweron adap=%p adap->dev=%p\n",
210 adap, adap->dev);
211 211
212 req = 0xBC; 212 req = 0xBC;
213 value = 1; /* power on */ 213 value = 1; /* power on */
@@ -245,7 +245,7 @@ static int az6007_frontend_poweron(struct dvb_usb_adapter *adap)
245 err("az6007_frontend_poweron failed!!!"); 245 err("az6007_frontend_poweron failed!!!");
246 return -EIO; 246 return -EIO;
247 } 247 }
248 info("az6007_frontend_poweron: OK"); 248 deb_info("az6007_frontend_poweron: OK\n");
249 249
250 return 0; 250 return 0;
251} 251}
@@ -258,7 +258,7 @@ static int az6007_frontend_reset(struct dvb_usb_adapter *adap)
258 u16 index; 258 u16 index;
259 int blen; 259 int blen;
260 260
261 info("az6007_frontend_reset adap=%p adap->dev=%p", adap, adap->dev); 261 deb_info("az6007_frontend_reset adap=%p adap->dev=%p\n", adap, adap->dev);
262 262
263 /* reset demodulator */ 263 /* reset demodulator */
264 req = 0xC0; 264 req = 0xC0;
@@ -295,7 +295,7 @@ static int az6007_frontend_reset(struct dvb_usb_adapter *adap)
295 295
296 msleep_interruptible(200); 296 msleep_interruptible(200);
297 297
298 info("reset az6007 frontend"); 298 deb_info("reset az6007 frontend\n");
299 299
300 return 0; 300 return 0;
301} 301}
@@ -361,8 +361,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
361 az6007_frontend_poweron(adap); 361 az6007_frontend_poweron(adap);
362 az6007_frontend_reset(adap); 362 az6007_frontend_reset(adap);
363 363
364 info("az6007_frontend_attach: drxk"); 364 info("az6007: attaching demod drxk");
365
366 adap->fe = dvb_attach(drxk_attach, &terratec_h7_drxk, 365 adap->fe = dvb_attach(drxk_attach, &terratec_h7_drxk,
367 &adap->dev->i2c_adap, &adap->fe2); 366 &adap->dev->i2c_adap, &adap->fe2);
368 if (!adap->fe) { 367 if (!adap->fe) {
@@ -370,7 +369,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
370 goto out_free; 369 goto out_free;
371 } 370 }
372 371
373 info("Setting hacks"); 372 deb_info("Setting hacks\n");
374 373
375 /* FIXME: do we need a pll semaphore? */ 374 /* FIXME: do we need a pll semaphore? */
376 adap->fe->sec_priv = adap; 375 adap->fe->sec_priv = adap;
@@ -379,7 +378,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
379 adap->fe->ops.i2c_gate_ctrl = drxk_gate_ctrl; 378 adap->fe->ops.i2c_gate_ctrl = drxk_gate_ctrl;
380 adap->fe2->id = 1; 379 adap->fe2->id = 1;
381 380
382 info("az6007_frontend_attach: mt2063"); 381 info("az6007: attaching tuner mt2063");
383 /* Attach mt2063 to DVB-C frontend */ 382 /* Attach mt2063 to DVB-C frontend */
384 if (adap->fe->ops.i2c_gate_ctrl) 383 if (adap->fe->ops.i2c_gate_ctrl)
385 adap->fe->ops.i2c_gate_ctrl(adap->fe, 1); 384 adap->fe->ops.i2c_gate_ctrl(adap->fe, 1);
@@ -513,7 +512,7 @@ err:
513 mutex_unlock(&d->i2c_mutex); 512 mutex_unlock(&d->i2c_mutex);
514 513
515 if (ret < 0) { 514 if (ret < 0) {
516 info("%s ERROR: %i\n", __func__, ret); 515 info("%s ERROR: %i", __func__, ret);
517 return ret; 516 return ret;
518 } 517 }
519 return num; 518 return num;
@@ -538,11 +537,11 @@ int az6007_identify_state(struct usb_device *udev,
538 0xb7, USB_TYPE_VENDOR | USB_DIR_IN, 6, 0, b, 537 0xb7, USB_TYPE_VENDOR | USB_DIR_IN, 6, 0, b,
539 6, USB_CTRL_GET_TIMEOUT); 538 6, USB_CTRL_GET_TIMEOUT);
540 539
541 info("FW GET_VERSION length: %d", ret); 540 deb_info("FW GET_VERSION length: %d\n", ret);
542 541
543 *cold = ret <= 0; 542 *cold = ret <= 0;
544 543
545 info("cold: %d", *cold); 544 deb_info("cold: %d\n", *cold);
546 return 0; 545 return 0;
547} 546}
548 547
@@ -629,7 +628,7 @@ static struct usb_driver az6007_usb_driver = {
629static int __init az6007_usb_module_init(void) 628static int __init az6007_usb_module_init(void)
630{ 629{
631 int result; 630 int result;
632 info("az6007 usb module init"); 631 deb_info("az6007 usb module init\n");
633 632
634 result = usb_register(&az6007_usb_driver); 633 result = usb_register(&az6007_usb_driver);
635 if (result) { 634 if (result) {
@@ -643,7 +642,7 @@ static int __init az6007_usb_module_init(void)
643static void __exit az6007_usb_module_exit(void) 642static void __exit az6007_usb_module_exit(void)
644{ 643{
645 /* deregister this driver from the USB subsystem */ 644 /* deregister this driver from the USB subsystem */
646 info("az6007 usb module exit"); 645 deb_info("az6007 usb module exit\n");
647 usb_deregister(&az6007_usb_driver); 646 usb_deregister(&az6007_usb_driver);
648} 647}
649 648