Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Pinnacle pctv sat



Am Mon, 2003-04-21 um 18.56 schrieb Holger Waechtler:
> just update your CVS tree, it's there.
Yes I found it. I thought the latest version on the
experimental-pinnacle branch would be the right one.

> Can you please report if this one works for you?
The version from CVS didn't work. I found the reasons for it and fixed
it. Please find attached a patch. I think this patch will make you happy
because it's very little.

It would be nice if Volker Cordes, who was also interested in this
driver, could report if this one works for him too.

What's missing to make this a "out of the box solution", is the change
in the Makefile and a proper load script for the modules. Could you
change the makefile (add of cx24110.o) please Holger? What about the
load script. Would you like to add the "pinsmod.sh" or do you have a
better solution?

Mike
*** cx24110.c_vanilla	2002-11-18 23:00:27.000000000 +0100
--- cx24110.c	2003-04-21 20:28:47.000000000 +0200
***************
*** 213,219 ****
  #define XTAL 1011100 /* Hz, really 1.0111 MHz and a /10 prescaler */
          dprintk("cx24110 debug: cx24108_set_tv_freq, freq=%d\n",freq);
          
-         freq/=1000; /* change units to kHz */
          if(freq<950000) freq=950000; /* kHz */
          if(freq>2150000) freq=2150000; /* satellite IF is 950..2150MHz */
          /* decide which VCO to use for the input frequency */
--- 212,217 ----
***************
*** 242,248 ****
          cx24108_write(i2c,0x83f1f800);
          cx24108_write(i2c,pll);
          cx24110_writereg(i2c,0x56,0x7f);
! /* fixme (low): tuner pll lock can be monitored on GPIO pin 4 of cx24110 */
          return 0;
  
  }
--- 240,252 ----
          cx24108_write(i2c,0x83f1f800);
          cx24108_write(i2c,pll);
          cx24110_writereg(i2c,0x56,0x7f);
! 
! 	ddelay(HZ/10); /* wait a moment for the tuner pll to lock */
! 
! 	/* tuner pll lock can be monitored on GPIO pin 4 of cx24110 */
!         while(!(cx24110_readreg(i2c,0x66)&0x20)&&i<1000) i++;
!         dprintk("cx24110 debug: GPIO IN=%2.2x(loop=%d)\n",
!                 cx24110_readreg(i2c,0x66),i);
          return 0;
  
  }
***************
*** 564,569 ****
--- 568,574 ----
  		cx24110_set_inversion (i2c, p->inversion);
  		cx24110_set_fec (i2c, p->u.qpsk.fec_inner);
  		cx24110_set_symbolrate (i2c, p->u.qpsk.symbol_rate);
+ 		cx24110_writereg(i2c,0x04,0x05); /* start aquisition */
                  break;
          }
  
#!/bin/sh
# insmod modules from current directory without having to install them first

sync

case "$1" in
    load)
	echo -n -e "Inserting av7110 modules into kernel"
	insmod i2c-algo-bit
	insmod ./videodev.o
	insmod ./v4l1-compat.o
	insmod ./v4l2-common.o
	insmod ./video-buf.o
	insmod bttv
	insmod ./dvb-core.o
	insmod ./cx24110.o
	insmod ./bt878.o
	insmod ./dvb-bt8xx.o
	echo
	;;
    debug)
	echo -n -e "Inserting av7110 modules (debug) into kernel"
	insmod i2c-algo-bit
	insmod ./videodev.o
	insmod ./v4l1-compat.o
	insmod ./v4l2-common.o
	insmod ./video-buf.o
	insmod bttv
	insmod ./dvb-core.o
	insmod ./cx24110.o debug=1
	insmod ./bt878.o
	insmod ./dvb-bt8xx.o debug=1
	echo
	;;
    unload)
	echo -n -e "Deleting av7110 modules from kernel"
	rmmod  dvb-bt8xx bt878 cx24110 \
		bttv video-buf v4l2-common v4l1-compat dvb-core videodev
	echo
	;;
    reload)
	$0 stop && $0 debug
	;;
    *)
	echo "Usage$0 {load|unload|debug|reload}"
	exit 1
esac

sync

Home | Main Index | Thread Index