summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Rechberger <devnull@localhost>2006-01-25 13:46:19 +0000
committerMarkus Rechberger <devnull@localhost>2006-01-25 13:46:19 +0000
commit9e7565e6b11a6a077dbff2d1b63e113ee788b155 (patch)
tree2fd4524e9b7b955593cf322ac778191e82954662
parent706062980ed678e5821121df4ffc82a043fd396e (diff)
downloadmediapointer-dvb-s2-9e7565e6b11a6a077dbff2d1b63e113ee788b155.tar.gz
mediapointer-dvb-s2-9e7565e6b11a6a077dbff2d1b63e113ee788b155.tar.bz2
small cleanups (removed debugging printks),
From: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
-rw-r--r--v4l_experimental/xc3028/xc3028.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/v4l_experimental/xc3028/xc3028.c b/v4l_experimental/xc3028/xc3028.c
index 7b55860e3..d2936638e 100644
--- a/v4l_experimental/xc3028/xc3028.c
+++ b/v4l_experimental/xc3028/xc3028.c
@@ -44,7 +44,7 @@ int xceive_set_color(struct i2c_client *c);
int xc3028_probe(struct i2c_client *c)
{
- printk("probe function unknown\n");
+ printk("xc3028: probe function unknown\n");
return -1;
}
@@ -52,9 +52,8 @@ static void xc3028_set_tv_freq(struct i2c_client *c, unsigned int freq){
// the frequency is just shifted and there's a 1:1 relation for all frequencies
// E11 is Das Erste in Germany/Ulm all other channels match their frequency too
- unsigned char chanbuf[10];
+ unsigned char chanbuf[4];
freq<<=2;
- printk("setting channel: 0x%02x%02x\n",(freq&0xff00)>>8,freq&0x00ff);
chanbuf[0]=0;
chanbuf[1]=0;
chanbuf[2]=(freq&0xff00)>>8;
@@ -82,9 +81,6 @@ int xc3028_init(struct i2c_client *c)
int txtlen;
long fwoff;
size_t firmware_size = 5000;
- printk("Xceive 3028 tuner init()\n");
- printk("reached first firmwareoffset!\n");
- printk("--- request firmware here --\n");
// request firmware from /lib/firmware, note that the file got extracted by the convert application I wrote and which is available
// on linuxtv.org / xc3028
@@ -109,12 +105,11 @@ int xc3028_init(struct i2c_client *c)
firmware[i++]=0;
fwoff=simple_strtol(firmware,&fwoffset,10);
if(fwoff>fw->size){
- printk("firmware offset doesn't match!\n");
+ printk("xc3028: firmware offset doesn't match!\n");
release_firmware(fw);
return(-1);
}
- printk("strtol: %ld\n",fwoff);
linebuffer[d++]=0x2a;
dev=c->adapter->algo_data;
@@ -133,7 +128,6 @@ int xc3028_init(struct i2c_client *c)
if((d%64==0&&d!=0)||i==fwoff+txtlen){
i2c_master_send(c,linebuffer,d);
if(i==(fwoff+txtlen)){
- printk("\n\n --- FWINIT REACHED!! --\n\n");
i2c_master_send(c,"\x02\x02",2);
i2c_master_send(c,"\x02\x03",2);
i2c_master_send(c,"\x00\x8c",2);
@@ -150,10 +144,9 @@ int xc3028_init(struct i2c_client *c)
}
i++;
}
+ printk("xc3024: Firmware uploaded\n");
- printk("Firmware looks ok!\n");
firmware[firmware_size-1]=0;
- printk("loaded firmware size: %u\n",firmware_size);
release_firmware(fw);
@@ -182,7 +175,6 @@ int xc3028_init(struct i2c_client *c)
i2c_master_send(c,"\x2b\x1a",0x2);
#endif
xceive_set_color(c);
- printk("setting set_tv_freq!\n");
t->set_tv_freq = xc3028_set_tv_freq;
return(0);
}