{
struct dvb_usb_adapter *adap = fe->sec_priv;
struct az6007_device_state *st;
- int status;
+ int status = 0;
- info("%s: %s", __func__, enable ? "enable" : "disable");
+ deb_info("%s: %s\n", __func__, enable ? "enable" : "disable");
if (!adap)
return -EINVAL;
debug_dump(b, blen, deb_xfer);
if (blen > 64) {
- printk(KERN_ERR
- "az6007: doesn't suport I2C transactions longer than 64 bytes\n");
+ err("az6007: doesn't suport I2C transactions longer than 64 bytes\n");
return -EOPNOTSUPP;
}
USB_TYPE_VENDOR | USB_DIR_OUT,
value, index, b, blen, 5000);
if (ret != blen) {
- warn("usb out operation failed. (%d)", ret);
+ err("usb out operation failed. (%d)", ret);
return -EIO;
}
u16 index;
int blen;
- info("az6007_frontend_poweron adap=%p adap->dev=%p", adap, adap->dev);
+ deb_info("az6007_frontend_poweron adap=%p adap->dev=%p\n",
+ adap, adap->dev);
req = 0xBC;
value = 1; /* power on */
err("az6007_frontend_poweron failed!!!");
return -EIO;
}
- info("az6007_frontend_poweron: OK");
+ deb_info("az6007_frontend_poweron: OK\n");
return 0;
}
u16 index;
int blen;
- info("az6007_frontend_reset adap=%p adap->dev=%p", adap, adap->dev);
+ deb_info("az6007_frontend_reset adap=%p adap->dev=%p\n", adap, adap->dev);
/* reset demodulator */
req = 0xC0;
msleep_interruptible(200);
- info("reset az6007 frontend");
+ deb_info("reset az6007 frontend\n");
return 0;
}
az6007_frontend_poweron(adap);
az6007_frontend_reset(adap);
- info("az6007_frontend_attach: drxk");
-
+ info("az6007: attaching demod drxk");
adap->fe = dvb_attach(drxk_attach, &terratec_h7_drxk,
&adap->dev->i2c_adap, &adap->fe2);
if (!adap->fe) {
goto out_free;
}
- info("Setting hacks");
+ deb_info("Setting hacks\n");
/* FIXME: do we need a pll semaphore? */
adap->fe->sec_priv = adap;
adap->fe->ops.i2c_gate_ctrl = drxk_gate_ctrl;
adap->fe2->id = 1;
- info("az6007_frontend_attach: mt2063");
+ info("az6007: attaching tuner mt2063");
/* Attach mt2063 to DVB-C frontend */
if (adap->fe->ops.i2c_gate_ctrl)
adap->fe->ops.i2c_gate_ctrl(adap->fe, 1);
mutex_unlock(&d->i2c_mutex);
if (ret < 0) {
- info("%s ERROR: %i\n", __func__, ret);
+ info("%s ERROR: %i", __func__, ret);
return ret;
}
return num;
0xb7, USB_TYPE_VENDOR | USB_DIR_IN, 6, 0, b,
6, USB_CTRL_GET_TIMEOUT);
- info("FW GET_VERSION length: %d", ret);
+ deb_info("FW GET_VERSION length: %d\n", ret);
*cold = ret <= 0;
- info("cold: %d", *cold);
+ deb_info("cold: %d\n", *cold);
return 0;
}
static int __init az6007_usb_module_init(void)
{
int result;
- info("az6007 usb module init");
+ deb_info("az6007 usb module init\n");
result = usb_register(&az6007_usb_driver);
if (result) {
static void __exit az6007_usb_module_exit(void)
{
/* deregister this driver from the USB subsystem */
- info("az6007 usb module exit");
+ deb_info("az6007 usb module exit\n");
usb_deregister(&az6007_usb_driver);
}