DMX_WRITE_REG(dmx->id, SB_START, addr >> 12);
DMX_WRITE_REG(dmx->id, SB_LAST_ADDR, (dmx->sub_buf_len >> 3) - 1);
#endif
- pr_inf("sub buff: (%d) %lx %x\n", dmx->id, addr, dmx->sub_buf_len);
+ if (dmx->sub_pages != dvb->sub_pages) {
+ pr_dbg("sub buff: (%d) %lx %x\n",
+ dmx->id, addr, dmx->sub_buf_len);
+ }
#endif
return 0;
}
dma_map_single(dvb->dev, (void *)dvb->sub_pages,
dvb->sub_buf_len, DMA_FROM_DEVICE);
- pr_inf("sub buff shared: %lx %x\n",
+ pr_dbg("sub buff shared: %lx %x\n",
(unsigned long)virt_to_phys((void *)dvb->sub_pages),
dvb->sub_buf_len);
#endif
DMX_WRITE_REG(dmx->id, OB_START, addr >> 12);
DMX_WRITE_REG(dmx->id, OB_LAST_ADDR, (dmx->pes_buf_len >> 3) - 1);
- pr_inf("pes buff: (%d) %lx %x\n", dmx->id, addr, dmx->pes_buf_len);
+ if (dmx->pes_pages != dvb->pes_pages) {
+ pr_dbg("pes buff: (%d) %lx %x\n",
+ dmx->id, addr, dmx->pes_buf_len);
+ }
return 0;
}
#ifdef PES_BUF_SHARED
dma_map_single(dvb->dev, (void *)dvb->pes_pages,
dvb->pes_buf_len, DMA_FROM_DEVICE);
- pr_inf("pes buff shared: %lx %x\n",
+ pr_dbg("pes buff shared: %lx %x\n",
(unsigned long)virt_to_phys((void *)dvb->pes_pages),
dvb->pes_buf_len);
return 0;
afifo->buf_toggle = 0;
afifo->buf_read = 0;
afifo->buf_len = dmx_get_afifo_size(afifo);
- pr_error("++++async fifo %d buf %lu buf size %d, flush size %d, secure_enable %d, blk.addr %u\n",
+ pr_dbg("async fifo %d buf %lu buf size %d, flush size %d, secure_enable %d, blk.addr %u\n",
afifo->id, buf, afifo->buf_len, afifo->flush_size, afifo->secure_enable, afifo->blk.addr);
if ((afifo->flush_size <= 0)
printk(args);\
} while (0)
#define pr_error(fmt, args...) printk("DVB: " fmt, ## args)
-#define pr_inf(fmt, args...) printk("DVB: " fmt, ## args)
+#define pr_inf(fmt, args...) printk(fmt, ## args)
MODULE_PARM_DESC(debug_dvb, "\n\t\t Enable dvb debug information");
-static int debug_dvb = 1;
+static int debug_dvb;
module_param(debug_dvb, int, 0644);
#define CARD_NAME "amlogic-dvb"
static void aml_dvb_dmx_release(struct aml_dvb *advb, struct aml_dmx *dmx)
{
int i;
- pr_dbg("[dmx_kpi] %s Enter.\n", __func__);
+ pr_inf("[dmx_kpi] %s Enter.\n", __func__);
dvb_net_release(&dmx->dvb_net);
aml_dmx_hw_deinit(dmx);
dmx->demux.dmx.close(&dmx->demux.dmx);
dvb_dmxdev_release(&dmx->dmxdev);
dvb_dmx_release(&dmx->demux);
- pr_dbg("[dmx_kpi] %s Exit.\n", __func__);
+ pr_inf("[dmx_kpi] %s Exit.\n", __func__);
}
static int aml_dvb_dmx_init(struct aml_dvb *advb, struct aml_dmx *dmx, int id)
if (res)
dmx->dmx_irq = res->start;
- printk("%s irq num:%d \r\n", buf, dmx->dmx_irq);
+ pr_dbg("%s irq num:%d \r\n", buf, dmx->dmx_irq);
dmx->source = -1;
dmx->dump_ts_select = 0;
res = platform_get_resource_byname(advb->pdev, IORESOURCE_IRQ, buf);
if (res)
asyncfifo->asyncfifo_irq = res->start;
- pr_inf("%s irq num:%d \n", buf, asyncfifo->asyncfifo_irq);
+ pr_dbg("%s irq num:%d \n", buf, asyncfifo->asyncfifo_irq);
asyncfifo->dvb = advb;
asyncfifo->id = id;
asyncfifo->init = 0;
unsigned long flags;
spin_lock_irqsave(&dvb->slock, flags);
- pr_dbg("Reset demux, call dmx_reset_hw\n");
+ pr_inf("Reset demux, call dmx_reset_hw\n");
dmx_reset_hw_ex(dvb, 0);
spin_unlock_irqrestore(&dvb->slock, flags);
}
int i, ret = 0;
struct devio_aml_platform_data *pd_dvb;
- pr_dbg("probe amlogic dvb driver [%s]\n", DVB_VERSION);
+ pr_inf("probe amlogic dvb driver [%s]\n", DVB_VERSION);
/*switch_mod_gate_by_name("demux", 1); */
#if 0
&str);
if (!ret) {
if (!strcmp(str, "serial")) {
- pr_inf("%s: serial\n", buf);
+ pr_dbg("%s: serial\n", buf);
if (s2p_id >= advb->s2p_total_count)
pr_error("no free s2p\n");
s2p_id++;
}
} else if (!strcmp(str, "parallel")) {
- pr_inf("%s: parallel\n", buf);
+ pr_dbg("%s: parallel\n", buf);
memset(buf, 0, 32);
snprintf(buf, sizeof(buf), "p_ts%d", i);
advb->ts[i].mode = AM_TS_PARALLEL;
of_property_read_u32(pdev->dev.of_node, buf,
&value);
if (!ret) {
- pr_inf("%s: 0x%x\n", buf, value);
+ pr_dbg("%s: 0x%x\n", buf, value);
advb->ts[i].control = value;
} else {
- pr_inf("read error:%s: 0x%x\n", buf, value);
+ pr_dbg("read error:%s: 0x%x\n", buf, value);
}
if (advb->ts[i].s2p_id != -1) {
of_property_read_u32(pdev->dev.of_node, buf,
&value);
if (!ret) {
- pr_inf("%s: 0x%x\n", buf, value);
+ pr_dbg("%s: 0x%x\n", buf, value);
advb->s2p[advb->ts[i].s2p_id].invert =
value;
}
of_property_read_u32(pdev->dev.of_node, buf,
&value);
if (!ret) {
- pr_inf("%s: 0x%x\n", buf, value);
+ pr_dbg("%s: 0x%x\n", buf, value);
advb->ts_out_invert = value;
}
}
aml_regist_dmx_class();
if (class_register(&aml_stb_class) < 0) {
- pr_error("register class error\n");
+ pr_error("dvb register class error\n");
goto error;
}
if (advb->tuners)
kfree(advb->tuners);
- pr_dbg("probe amlogic dvb driver [%s] Exit\n", DVB_VERSION);
return 0;
}
struct aml_dvb *advb = (struct aml_dvb *)dev_get_drvdata(&pdev->dev);
int i;
- pr_dbg("[dmx_kpi] %s Enter.\n", __func__);
+ pr_inf("[dmx_kpi] %s Enter.\n", __func__);
for (i=0; i<FE_DEV_COUNT; i++) {
aml_detach_dtvdemod(s_demod_type[i]);
if (advb->tuners)
kfree(advb->tuners);
- pr_dbg("[dmx_kpi] %s Exit.\n", __func__);
+ pr_inf("[dmx_kpi] %s Exit.\n", __func__);
return 0;
}
static int __init aml_dvb_init(void)
{
- pr_dbg("aml dvb init\n");
return platform_driver_register(&aml_dvb_driver);
}
static void __exit aml_dvb_exit(void)
{
- pr_dbg("aml dvb exit\n");
+ pr_inf("aml dvb exit\n");
platform_driver_unregister(&aml_dvb_driver);
}
{
struct aml_dvb *dvb = &aml_dvb_device;
unsigned long flags;
- pr_dbg("[dmx_kpi] %s Enter\n", __func__);
+ pr_inf("[dmx_kpi] %s Enter\n", __func__);
spin_lock_irqsave(&dvb->slock, flags);
if (dvb->reset_flag) {
}
}
spin_unlock_irqrestore(&dvb->slock, flags);
- pr_dbg("[dmx_kpi] %s Exit\n", __func__);
+ pr_inf("[dmx_kpi] %s Exit\n", __func__);
return 0;
}