.addr = adr, .flags = 0, .buf = data, .len = len };
if (i2c_transfer(adap, &msg, 1) != 1) {
- printk(KERN_ERR "i2c_write error\n");
+ printk(KERN_ERR "drxk: i2c write error at addr 0x%02x\n", adr);
return -1;
}
return 0;
.buf = answ, .len = alen}
};
if (i2c_transfer(adap, msgs, 2) != 2) {
- printk(KERN_ERR "i2c_read error\n");
+ printk(KERN_ERR "drxk: i2c read error at addr 0x%02x\n", adr);
return -1;
}
return 0;
status = i2c_write(state->i2c, state->demod_address,
&state->Chunk[0], Chunk + AdrLength);
if (status < 0) {
- printk(KERN_ERR "I2C Write error\n");
+ printk(KERN_ERR "drxk: %s: i2c write error at addr 0x%02x\n",
+ __func__, Address);
break;
}
pBlock += Chunk;
data = 0;
if (i2c_write(state->i2c,
state->demod_address, &data, 1) < 0)
- printk(KERN_ERR "powerup failed\n");
+ printk(KERN_ERR "drxk: powerup failed\n");
msleep(10);
retryCount++;
} while (i2c_read1(state->i2c,
state->m_hasIRQN = false;
break;
default:
- printk(KERN_ERR "DeviceID not supported = %02x\n",
+ printk(KERN_ERR "drxk: DeviceID not supported = %02x\n",
((sioTopJtagidLo >> 12) & 0xFF));
status = -1;
break;
} while ((blStatus == 0x1) &&
((time_is_after_jiffies(end))));
if (blStatus == 0x1) {
- printk(KERN_ERR "SIO not ready\n");
+ printk(KERN_ERR "drxk: SIO not ready\n");
mutex_unlock(&state->mutex);
return -1;
}
break;
} while ((data != desiredStatus) && ((time_is_after_jiffies(end))));
if (data != desiredStatus) {
- printk(KERN_ERR "SIO not ready\n");
+ printk(KERN_ERR "drxk: SIO not ready\n");
return -1;
}
return status;
} while (!(curCmd == DRX_SCU_READY)
&& (time_is_after_jiffies(end)));
if (curCmd != DRX_SCU_READY) {
- printk(KERN_ERR "SCU not ready\n");
+ printk(KERN_ERR "drxk: SCU not ready\n");
mutex_unlock(&state->mutex);
return -1;
}
/* check a few fixed error codes */
if (err == SCU_RESULT_UNKSTD) {
- printk(KERN_ERR "SCU_RESULT_UNKSTD\n");
+ printk(KERN_ERR "drxk: SCU_RESULT_UNKSTD\n");
mutex_unlock(&state->mutex);
return -1;
} else if (err == SCU_RESULT_UNKCMD) {
- printk(KERN_ERR "SCU_RESULT_UNKCMD\n");
+ printk(KERN_ERR "drxk: SCU_RESULT_UNKCMD\n");
mutex_unlock(&state->mutex);
return -1;
}
/* here it is assumed that negative means error,
and positive no error */
else if (err < 0) {
- printk(KERN_ERR "%s ERROR\n", __func__);
+ printk(KERN_ERR "drxk: %s ERROR\n", __func__);
mutex_unlock(&state->mutex);
return -1;
}
} while (0);
mutex_unlock(&state->mutex);
if (status < 0)
- printk(KERN_ERR "%s: status = %d\n", __func__, status);
+ printk(KERN_ERR "drxk: %s: status = %d\n", __func__, status);
return status;
}
break;
} while ((blStatus == 0x1) && time_is_after_jiffies(end));
if (blStatus == 0x1) {
- printk(KERN_ERR "SIO not ready\n");
+ printk(KERN_ERR "drxk: SIO not ready\n");
mutex_unlock(&state->mutex);
return -1;
}
} while (0);
if (status < 0)
- printk(KERN_ERR "%s status - %08x\n", __func__, status);
+ printk(KERN_ERR "drxk: %s status - %08x\n", __func__, status);
return status;
}
u16 param1;
int status;
- /* printk(KERN_DEBUG "%s IF =%d, TFO = %d\n", __func__, IntermediateFreqkHz, tunerFreqOffset); */
+ /* printk(KERN_DEBUG "drxk: %s IF =%d, TFO = %d\n", __func__, IntermediateFreqkHz, tunerFreqOffset); */
do {
status = scu_command(state, SCU_RAM_COMMAND_STANDARD_OFDM | SCU_RAM_COMMAND_CMD_DEMOD_STOP, 0, NULL, 1, &cmdResult);
if (status < 0)
} while (0);
if (status < 0)
- printk(KERN_ERR "%s: status - %08x\n", __func__, status);
+ printk(KERN_ERR "drxk: %s: status - %08x\n", __func__, status);
return status;
}
/* Select & calculate correct IQM rate */
adcFrequency = (state->m_sysClockFreq * 1000) / 3;
ratesel = 0;
- /* printk(KERN_DEBUG "SR %d\n", state->param.u.qam.symbol_rate); */
+ /* printk(KERN_DEBUG "drxk: SR %d\n", state->param.u.qam.symbol_rate); */
if (state->param.u.qam.symbol_rate <= 1188750)
ratesel = 3;
else if (state->param.u.qam.symbol_rate <= 2377500)
SCU_RAM_COMMAND_CMD_DEMOD_GET_LOCK, 0, NULL, 2,
Result);
if (status < 0)
- printk(KERN_ERR "%s status = %08x\n", __func__, status);
+ printk(KERN_ERR "drxk: %s status = %08x\n", __func__, status);
if (Result[1] < SCU_RAM_QAM_LOCKED_LOCKED_DEMOD_LOCKED) {
/* 0x0000 NOT LOCKED */
} while (0);
if (status < 0)
- printk(KERN_ERR "%s %d\n", __func__, status);
+ printk(KERN_ERR "drxk: %s %d\n", __func__, status);
return status;
}
err = request_firmware(&fw, mc_name, state->i2c->dev.parent);
if (err < 0) {
printk(KERN_ERR
- "Could not load firmware file %s.\n", mc_name);
+ "drxk: Could not load firmware file %s.\n", mc_name);
printk(KERN_INFO
- "Copy %s to your hotplug directory!\n", mc_name);
+ "drxk: Copy %s to your hotplug directory!\n", mc_name);
return err;
}
err = DownloadMicrocode(state, fw->data, fw->size);
{
struct drxk_state *state = fe->demodulator_priv;
- /* printk(KERN_DEBUG "drxk_gate %d\n", enable); */
+ /* printk(KERN_DEBUG "drxk: drxk_gate %d\n", enable); */
return ConfigureI2CBridge(state, enable ? true : false);
}
fe->ops.tuner_ops.get_frequency(fe, &IF);
Start(state, 0, IF);
- /* printk(KERN_DEBUG "%s IF=%d done\n", __func__, IF); */
+ /* printk(KERN_DEBUG "drxk: %s IF=%d done\n", __func__, IF); */
return 0;
}
#if 0
struct drxk_state *state = fe->demodulator_priv;
- printk(KERN_DEBUG "%s\n", __func__);
+ printk(KERN_DEBUG "drxk: %s\n", __func__);
kfree(state);
#endif
}