diff options
Diffstat (limited to 'v4l_experimental/xc3028/xc3028.c')
-rw-r--r-- | v4l_experimental/xc3028/xc3028.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/v4l_experimental/xc3028/xc3028.c b/v4l_experimental/xc3028/xc3028.c index b6395396f..7b55860e3 100644 --- a/v4l_experimental/xc3028/xc3028.c +++ b/v4l_experimental/xc3028/xc3028.c @@ -55,9 +55,10 @@ static void xc3028_set_tv_freq(struct i2c_client *c, unsigned int freq){ unsigned char chanbuf[10]; freq<<=2; printk("setting channel: 0x%02x%02x\n",(freq&0xff00)>>8,freq&0x00ff); - sprintf(chanbuf," %c%c",(freq&0xff00)>>8,freq&0x00ff); // extract the highest & lowest byte chanbuf[0]=0; chanbuf[1]=0; + chanbuf[2]=(freq&0xff00)>>8; + chanbuf[3]=freq&0x00ff; i2c_master_send(c,"\xa0\x00\x00\x00",4); i2c_master_send(c,"\x1e\x1f\x13\x87\x18\x02\x93\x91\x44\x86\x96\x8c",12); i2c_master_send(c,"\x00\x8c",2); |