Commit 37965546 authored by Jonathan Nieder's avatar Jonathan Nieder Committed by Mauro Carvalho Chehab

[media] dvb-bt8xx: use dprintk for debug statements

This way, the messages will be tagged with KERN_DEBUG and not clutter
the log from dmesg unless the "debug" module parameter is set.

[mchehab@redhat.com: whitespace fixes]
Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent efd279ec
...@@ -205,7 +205,7 @@ static int cx24108_tuner_set_params(struct dvb_frontend *fe) ...@@ -205,7 +205,7 @@ static int cx24108_tuner_set_params(struct dvb_frontend *fe)
0x00120000,0x00140000}; 0x00120000,0x00140000};
#define XTAL 1011100 /* Hz, really 1.0111 MHz and a /10 prescaler */ #define XTAL 1011100 /* Hz, really 1.0111 MHz and a /10 prescaler */
printk("cx24108 debug: entering SetTunerFreq, freq=%d\n",freq); dprintk("cx24108 debug: entering SetTunerFreq, freq=%d\n", freq);
/* This is really the bit driving the tuner chip cx24108 */ /* This is really the bit driving the tuner chip cx24108 */
...@@ -216,7 +216,7 @@ static int cx24108_tuner_set_params(struct dvb_frontend *fe) ...@@ -216,7 +216,7 @@ static int cx24108_tuner_set_params(struct dvb_frontend *fe)
/* decide which VCO to use for the input frequency */ /* decide which VCO to use for the input frequency */
for(i = 1; (i < ARRAY_SIZE(osci) - 1) && (osci[i] < freq); i++); for(i = 1; (i < ARRAY_SIZE(osci) - 1) && (osci[i] < freq); i++);
printk("cx24108 debug: select vco #%d (f=%d)\n",i,freq); dprintk("cx24108 debug: select vco #%d (f=%d)\n", i, freq);
band=bandsel[i]; band=bandsel[i];
/* the gain values must be set by SetSymbolrate */ /* the gain values must be set by SetSymbolrate */
/* compute the pll divider needed, from Conexant data sheet, /* compute the pll divider needed, from Conexant data sheet,
...@@ -232,7 +232,7 @@ static int cx24108_tuner_set_params(struct dvb_frontend *fe) ...@@ -232,7 +232,7 @@ static int cx24108_tuner_set_params(struct dvb_frontend *fe)
((a&0x1f)<<11); ((a&0x1f)<<11);
/* everything is shifted left 11 bits to left-align the bits in the /* everything is shifted left 11 bits to left-align the bits in the
32bit word. Output to the tuner goes MSB-aligned, after all */ 32bit word. Output to the tuner goes MSB-aligned, after all */
printk("cx24108 debug: pump=%d, n=%d, a=%d\n",pump,n,a); dprintk("cx24108 debug: pump=%d, n=%d, a=%d\n", pump, n, a);
cx24110_pll_write(fe,band); cx24110_pll_write(fe,band);
/* set vga and vca to their widest-band settings, as a precaution. /* set vga and vca to their widest-band settings, as a precaution.
SetSymbolrate might not be called to set this up */ SetSymbolrate might not be called to set this up */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment