[linux-dvb] Pinnacle makes sound when load module bttv

Nando Romano darkside_moon83 at yahoo.it
Mon Sep 12 11:17:17 CEST 2005


Hi
I have some problems 
when I load bttv module for my pinnacle card I hear a
sound from the pci card and also the card isn't seen
as a dvb-s card.
I hope that you can help

I report all my step
I download bttv (from bytesex)
nando at eclipse:~/bttv-0.9.15> ls
audiochip.h    bttv.h        ir-common.c    msp3400.h 
    v4l2-common.c
bt832.c        bttv-i2c.c    ir-common.h    tda9887.c 
    video-buf.c
bt832.h        bttv-if.c     ir-kbd-gpio.c  tda9887.h 
    video-buf.h
bt848.h        bttvp.h       ir-kbd-i2c.c   tuner.c   
    videodev2.h
btcx-risc.c    bttv-risc.c   linux          tuner.h   
    videodev.h
btcx-risc.h    bttv-vbi.c    Make.config    tvaudio.c
bttv-cards.c   doc           Makefile       tvaudio.h
bttv-driver.c  i2c-compat.h  media          tvmixer.c
bttv-gpio.c    id.h          msp3400.c     
v4l1-compat.c



nando at eclipse:~/bttv-0.9.15> make
make -C /lib/modules/2.6.8-24-smp/build
SUBDIRS=/home/nando/bttv-0.9.15 modules
make[1]: Entering directory
`/usr/src/linux-2.6.8-24-obj/i386/smp'
make -C ../../../linux-2.6.8-24
O=../linux-2.6.8-24-obj/i386/smp modules
  CC [M]  /home/nando/bttv-0.9.15/video-buf.o
  CC [M]  /home/nando/bttv-0.9.15/v4l1-compat.o
  CC [M]  /home/nando/bttv-0.9.15/v4l2-common.o
  CC [M]  /home/nando/bttv-0.9.15/btcx-risc.o
  CC [M]  /home/nando/bttv-0.9.15/ir-common.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-driver.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-cards.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-risc.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-if.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-vbi.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-i2c.o
  CC [M]  /home/nando/bttv-0.9.15/bttv-gpio.o
  LD [M]  /home/nando/bttv-0.9.15/bttv.o
  CC [M]  /home/nando/bttv-0.9.15/tuner.o
  CC [M]  /home/nando/bttv-0.9.15/tda9887.o
/home/nando/bttv-0.9.15/tda9887.c: In function
`tda9887_set_insmod':
/home/nando/bttv-0.9.15/tda9887.c:390: warning:
control reaches end of non-void 
function
/home/nando/bttv-0.9.15/tda9887.c: In function
`tda9887_status':
/home/nando/bttv-0.9.15/tda9887.c:503: warning:
control reaches end of non-void 
function
 CC [M]  /home/nando/bttv-0.9.15/msp3400.o
  CC [M]  /home/nando/bttv-0.9.15/tvaudio.o
  CC [M]  /home/nando/bttv-0.9.15/tvmixer.o
  CC [M]  /home/nando/bttv-0.9.15/ir-kbd-gpio.o
  CC [M]  /home/nando/bttv-0.9.15/ir-kbd-i2c.o
  Building modules, stage 2.
  MODPOST
  CC      /home/nando/bttv-0.9.15/btcx-risc.mod.o
  LD [M]  /home/nando/bttv-0.9.15/btcx-risc.ko
  CC      /home/nando/bttv-0.9.15/bttv.mod.o
  LD [M]  /home/nando/bttv-0.9.15/bttv.ko
  CC      /home/nando/bttv-0.9.15/ir-common.mod.o
  LD [M]  /home/nando/bttv-0.9.15/ir-common.ko
  CC      /home/nando/bttv-0.9.15/ir-kbd-gpio.mod.o
  LD [M]  /home/nando/bttv-0.9.15/ir-kbd-gpio.ko
  CC      /home/nando/bttv-0.9.15/ir-kbd-i2c.mod.o
  LD [M]  /home/nando/bttv-0.9.15/ir-kbd-i2c.ko
  CC      /home/nando/bttv-0.9.15/msp3400.mod.o
  LD [M]  /home/nando/bttv-0.9.15/msp3400.ko
  CC      /home/nando/bttv-0.9.15/tda9887.mod.o
  LD [M]  /home/nando/bttv-0.9.15/tda9887.ko
  CC      /home/nando/bttv-0.9.15/tuner.mod.o
  LD [M]  /home/nando/bttv-0.9.15/tuner.ko
  CC      /home/nando/bttv-0.9.15/tvaudio.mod.o
  LD [M]  /home/nando/bttv-0.9.15/tvaudio.ko
  CC      /home/nando/bttv-0.9.15/tvmixer.mod.o
  LD [M]  /home/nando/bttv-0.9.15/tvmixer.ko
  CC      /home/nando/bttv-0.9.15/v4l1-compat.mod.o
  LD [M]  /home/nando/bttv-0.9.15/v4l1-compat.ko
  CC      /home/nando/bttv-0.9.15/v4l2-common.mod.o
  LD [M]  /home/nando/bttv-0.9.15/v4l2-common.ko
  CC      /home/nando/bttv-0.9.15/video-buf.mod.o
  LD [M]  /home/nando/bttv-0.9.15/video-buf.ko
make[1]: Leaving directory
`/usr/src/linux-2.6.8-24-obj/i386/smp'


nando at eclipse:~/bttv-0.9.15> sux
Password: 
eclipse:/home/nando/bttv-0.9.15 # make install
strip --strip-debug btcx-risc.ko bttv.ko ir-common.ko
ir-kbd-gpio.ko ir-kbd-i2c.
ko msp3400.ko tda9887.ko tuner.ko tvaudio.ko
tvmixer.ko v4l1-compat.ko v4l2-comm
on.ko video-buf.ko
su -c "mkdir -p /lib/modules/2.6.8-24-smp/v4l2; cp -v
btcx-risc.ko bttv.ko ir-co
mmon.ko ir-kbd-gpio.ko ir-kbd-i2c.ko msp3400.ko
tda9887.ko tuner.ko tvaudio.ko t
vmixer.ko v4l1-compat.ko v4l2-common.ko video-buf.ko
/lib/modules/2.6.8-24-smp/v
4l2; depmod -a"
`btcx-risc.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/btcx-risc.ko'
`bttv.ko' -> `/lib/modules/2.6.8-24-smp/v4l2/bttv.ko'
`ir-common.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/ir-common.ko'
`ir-kbd-gpio.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/ir-kbd-gpio.ko'
`ir-kbd-i2c.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/ir-kbd-i2c.ko'
`msp3400.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/msp3400.ko'
`tda9887.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/tda9887.ko'
`tuner.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/tuner.ko'
`tvaudio.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/tvaudio.ko'
`tvmixer.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/tvmixer.ko'
`v4l1-compat.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/v4l1-compat.ko'
`v4l2-common.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/v4l2-common.ko'
`video-buf.ko' ->
`/lib/modules/2.6.8-24-smp/v4l2/video-buf.ko'


AND NOW IF I load bttv module
eclipse:/home/nando/bttv-0.9.15 # modprobe bttv
while my system is loading bttv 
I hear from my dvb-s card a sound like an interruct is
turned. 
I think it's a relay which is excited from a magnetic
field 

as you say in a last email.
eclipse:/home/nando/bttv-0.9.15 # dmesg
and dmesg unfortunately  show me

.
.
.

bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for
capture
bttv: Bt8xx card found (0).
ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 19 (level,
low) -> IRQ 177
bttv0: Bt878 (rev 17) at 0000:02:07.0, irq: 177,
latency: 64, mmio: 0xf7c00000
bttv0: detected: Pinnacle PCTV Sat [card=94], PCI
subsystem ID is 11bd:001c
bttv0: using: Pinnacle PCTV Sat [card=94,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=001f00fc
[init]
i2c-algo-bit.o: (0) scl=1, sda=1
i2c-algo-bit.o: (1) scl=1, sda=0
i2c-algo-bit.o: (2) scl=1, sda=1
i2c-algo-bit.o: (3) scl=0, sda=1
i2c-algo-bit.o: (4) scl=1, sda=1
i2c-algo-bit.o: bt878 #0 [sw] passed test.
bttv0: using tuner=-1
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 . ok
and so I type
eclipse:/home/nando/bttv-0.9.15 # rmmod 

while if I execute modprobe with these arguments
eclipse:/home/nando/bttv-0.9.15 # modprobe bttv
i2c_hw=1 card=0x68
I don't hear any sounds but 
dmesg show me

bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for
capture
bttv: Bt8xx card found (0).
ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 19 (level,
low) -> IRQ 177
bttv0: Bt878 (rev 17) at 0000:02:07.0, irq: 177,
latency: 64, mmio: 0xf7c00000
bttv0: detected: Pinnacle PCTV Sat [card=94], PCI
subsystem ID is 11bd:001c
bttv0: using: Nebula Electronics DigiTV
[card=104,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=009f00fc
[init]
bttv0: using tuner=-1
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: add subdevice "dvb0"
bttv0: unloading
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for
capture
bttv: Bt8xx card found (0).
ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 19 (level,
low) -> IRQ 177
bttv0: Bt878 (rev 17) at 0000:02:07.0, irq: 177,
latency: 64, mmio: 0xf7c00000
bttv0: detected: Pinnacle PCTV Sat [card=94], PCI
subsystem ID is 11bd:001c
bttv0: using: Nebula Electronics DigiTV
[card=104,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=009f00fc
[init]
bttv0: using tuner=-1
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: add subdevice "dvb0" 

but the device dvb adapter0 it'll be unusable because 
(after modprobe dvb_bt8xx and modprobe cx24110 
dmesg:
DVB: registering new adapter (bttv0).
xxx attach
DVB: registering frontend 0 (Conexant CX24110 with
CX24108 tuner, aka HM1221/HM1811)...
)

as you can see I have these errors
eclipse:/home/nando/tmp/linuxtv-dvb-apps-1.1.0/util/szap
# ./szap -c channels.conf-dvbs-astra n24
reading channels from file 'channels.conf-dvbs-astra'
zapping to 34 'N24':
sat 0, frequency = 12480 MHz V, symbolrate 27500000,
vpid = 0x07ff, apid = 0x0800
using '/dev/dvb/adapter0/frontend0' and
'/dev/dvb/adapter0/demux0'
opening frontend failed: No such device or address


I also try to update the dvb driver without saa7134 
( because I have fear that this driver saa7134 can
conflict with my typhoon pci tuner with chipset
philips saa7134
so I modify in this way the makefile
***************

#EXTRA_CFLAGS = -Idrivers/media/video


#saa7146-objs    := saa7146_i2c.o saa7146_core.o 
#saa7146_vv-objs := saa7146_vv_ksyms.o saa7146_fops.o
saa7146_video.o saa7146_hlp.o saa7146_vbi.o
#obj-m += saa7146.o
#obj-m += saa7146_vv.o

dvb-core-objs = dvbdev.o dmxdev.o dvb_demux.o
dvb_filter.o \
                dvb_functions.o dvb_frontend.o
dvb_i2c.o dvb_net.o dvb_ksyms.o dvb_ringbuffer.o

*********************
)


In this way my system can compile and load the module
 eclipse:/home/nando/linuxtv-dvb-1.1.1 # ls
.          build-2.6  MAKEDEV-DVB.sh  NEWS       
README.bt8xx  TROUBLESHOOTING
..         doc        Makefile        README     
scripts
build-2.4  linux      makelinks       README-2.6  TODO
eclipse:/home/nando/linuxtv-dvb-1.1.1 # vi
TROUBLESHOOTING 
eclipse:/home/nando/linuxtv-dvb-1.1.1 # make
cat: CVS/Root: No such file or directory
make -C /home/nando/linuxtv-dvb-1.1.1/build-2.6 
make[1]: Entering directory
`/home/nando/linuxtv-dvb-1.1.1/build-2.6'
[ -L saa7146_video.c ] || ./getlinks
make -C /lib/modules/2.6.8-24-smp/build
SUBDIRS=/home/nando/linuxtv-dvb-1.1.1/bu
ild-2.6
make[2]: Entering directory
`/usr/src/linux-2.6.8-24-obj/i386/smp'
make -C ../../../linux-2.6.8-24
O=../linux-2.6.8-24-obj/i386/smp
  Building modules, stage 2.
  MODPOST
*** Warning: "read"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/tda1004x.ko]
undefi
ned!
*** Warning: "lseek"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/tda1004x.ko]
undef
ined!
*** Warning: "open"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/tda1004x.ko]
undefi
ned!
*** Warning: "read"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/sp887x.ko]
undefine
d!
*** Warning: "lseek"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/sp887x.ko]
undefin
ed!
*** Warning: "open"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/sp887x.ko]
undefine
d!
*** Warning: "usb_set_configuration"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/dv
b-ttusb-budget.ko] undefined!
*** Warning: "bt878_find_by_dvb_adap"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/d
st.ko] undefined!
*** Warning: "read"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/alps_tdlb7.ko]
unde
fined!
*** Warning: "lseek"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/alps_tdlb7.ko]
und
efined!
*** Warning: "open"
[/home/nando/linuxtv-dvb-1.1.1/build-2.6/alps_tdlb7.ko]
unde
fined!
make[2]: Leaving directory
`/usr/src/linux-2.6.8-24-obj/i386/smp'
make[1]: Leaving directory
`/home/nando/linuxtv-dvb-1.1.1/build-2.6'

--------------------------------------------------------------------------------
------

The driver was built in
/home/nando/linuxtv-dvb-1.1.1/build-2.6. Please use

/home/nando/linuxtv-dvb-1.1.1/build-2.6/insmod.sh or
/home/nando/linuxtv-dvb-1.1.1/build-2.6/insmod-bt8xx.sh
# I don't have insmod-bt8xx.sh

to load and unload the modules for testing. (see
README for details)


eclipse:/home/nando/linuxtv-dvb-1.1.1/build-2.6 #
./insmod.sh load
Inserting DVB modules into kernel
insmod: error inserting './alps_tdlb7.ko': -1 Unknown
symbol in module
insmod: error inserting './tda1004x.ko': -1 Unknown
symbol in module
insmod: error inserting './dvb-ttpci.ko': -1 Unknown
symbol in module
insmod: error inserting './budget-core.ko': -1 Unknown
symbol in module
insmod: error inserting './budget.ko': -1 Unknown
symbol in module
insmod: error inserting './budget-ci.ko': -1 Unknown
symbol in module
insmod: error inserting './budget-av.ko': -1 Unknown
symbol in module
insmod: error inserting './dvb-ttusb-budget.ko': -1
Unknown symbol in module

eclipse:/home/nando/linuxtv-dvb-1.1.1/build-2.6 #

but I have the same results


Do you have any suggestion?
What do you think about the bit when I load the
module?
What do I have to do ?
I read some messages about a patch for bt878

I have suse 9.2 kernel 2.6.8 smp 
I have to apply this patch.
Where can I obtian?


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



More information about the linux-dvb mailing list