Mailing List archive

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

[linux-dvb] Re: WinTV DVB-c - tuning issues PART 1



Hi again,

I was off for a couple of days, sorry, but: switching channels works now. 
Holger Waechtler asked me to try out the current NEWSTRUCT cvs code. 
And that is almost all to do. 

I did the usual 
pauli4:/usr/src/ # cd DVB/driver
pauli4:/usr/src/DVB/driver # make 

followed by a (output appended):

pauli4:/usr/src/DVB/driver # make insmod
/usr/src/linux/scripts/pathdown.sh: TOPDIR: parameter null or not set
DIR=`pwd`; (cd /usr/src/linux; make SUBDIRS=$DIR modules)
make[1]: Entering directory `/usr/src/linux-2.4.18'
make -C  /usr/src/DVB/driver CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.18/includ
e -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-
aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE
-DM
ODVERSIONS -include /usr/src/linux-2.4.18/include/linux/modversions.h"
MAKING_MO
DULES=1 modules
make[2]: Entering directory `/usr/src/DVB/driver'
ld -m elf_i386 -r -o dvb-core.o dmxdev.o dvb_net.o dvb_i2c.o dvb_filter.o
dvb_fr
ontend.o dvbdev.o
make -C av7110 modules
make[3]: Entering directory `/usr/src/DVB/driver/av7110'
ld -m elf_i386 -r -o dvb-ttpci.o saa7146_core.o saa7146_v4l.o av7110.o
av7110_ir
.o
make[3]: Leaving directory `/usr/src/DVB/driver/av7110'
make -C frontends modules
make[3]: Entering directory `/usr/src/DVB/driver/frontends'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/DVB/driver/frontends'
make[2]: Leaving directory `/usr/src/DVB/driver'
make[1]: Leaving directory `/usr/src/linux-2.4.18'

(                       \
insmod videodev;        \
insmod dvb-core.o;      \
insmod dvb_demux.o;     \
make -C frontends insmod; \
 make -C av7110 insmod; \
)
Using /lib/modules/2.4.18/kernel/drivers/media/video/videodev.o
Warning: loading dvb_demux.o will taint the kernel: no license
make[1]: Entering directory `/usr/src/DVB/driver/frontends'
insmod alps_bsru6.o;   insmod alps_bsrv2.o;   insmod grundig_29504-401.o;
insm
od grundig_29504-491.o;   insmod ves1820.o; 
make[1]: Leaving directory `/usr/src/DVB/driver/frontends'
make[1]: Entering directory `/usr/src/DVB/driver/av7110'
insmod input; \
insmod evdev; \
insmod dvb-ttpci.o init_vpid=0x00a2 init_apid=0x0060;
Using /lib/modules/2.4.18/kernel/drivers/input/input.o
Using /lib/modules/2.4.18/kernel/drivers/input/evdev.o
make[1]: Leaving directory `/usr/src/DVB/driver/av7110'
sync

And the syslog for insmod (tail -f /var/log/messages) goes:

Aug  1 21:40:55 pauli4 kernel: Linux video capture interface: v1.00
Aug  1 21:40:55 pauli4 kernel: dvb_register_adapter: registering new adapter
(Technotrend/Hauppauge PCI rev2.1).
Aug  1 21:40:55 pauli4 kernel: PCI: Found IRQ 11 for device 01:07.0
Aug  1 21:40:55 pauli4 kernel: saa7146_core.o: : bus:1, rev:1,
mem:0xc8913000.
Aug  1 21:40:56 pauli4 kernel: tda8083_readregs: readreg error (reg 00, ret
== -121)
Aug  1 21:40:56 pauli4 kernel: dvb_register_device: register
adapter0/frontend0 @ minor: 3 (0x03) - dvbdev: c6274220
Aug  1 21:40:58 pauli4 kernel: av71100: AV7111 - firm f0240009, rtsl
b0250018, vid 71010068, app 00012503
Aug  1 21:40:58 pauli4 kernel: dvb_frontend_init: initialising frontend 0:0
(VES1820/Grundig tuner as used on the Siemens DVB-C card)...
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/demux0
@ minor: 4 (0x04) - dvbdev: c62742a0
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/dvr0 @
minor: 5 (0x05) - dvbdev: c62742e0
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/video0
@ minor: 0 (0x00) - dvbdev: c6274260
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/audio0
@ minor: 1 (0x01) - dvbdev: c6274320
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/osd0 @
minor: 8 (0x08) - dvbdev: c6274360
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/ca0 @
minor: 6 (0x06) - dvbdev: c62743a0
Aug  1 21:40:58 pauli4 kernel: dvb_register_device: register adapter0/net0 @
minor: 7 (0x07) - dvbdev: c62743e0
Aug  1 21:40:59 pauli4 kernel: ves1820.c: setup for tuner sp5659c

Nice. So the frontend and all stuff are recognized. 
I created some device files, as Holger told me to do in case I don't use
devfs:

pauli4:/usr/src/DVB/driver # ./makedev.napi
Creating DVB devices in /dev/dvb/adapter0
Creating DVB devices in /dev/dvb/adapter1
Creating DVB devices in /dev/dvb/adapter2
Creating DVB devices in /dev/dvb/adapter3

Then I made szap in DVB/apps/szap to check switching channels etc. :
pauli4:/usr/src/DVB/driver # cd ../apps/szap
pauli4:/usr/src/DVB/apps/szap # make
gcc -Wall -g -O2 -I../../include  -o szap szap.c
gcc -Wall -g -O2 -I../../include  -o tzap tzap.c
gcc -Wall -g -O2 -I../../include  -o czap czap.c
gcc -Wall -g -O2 -I../../include  -o ttusb_record ttusb_record.c

pauli4:/usr/src/DVB/apps/szap # ls -l czap
-rwxr-xr-x    1 root     root        46724 Aug  1 21:52 czap

pauli4 > /usr/src/DVB/apps/szap/czap ARD
status 00 | signal 9090 | snr b6b6 | ber 0000ab53 | unc 0000007f | 
status 1f | signal ffff | snr d7d7 | ber 0000ab53 | unc 0000007f |
FE_HAS_LOCK
status 1f | signal ffff | snr d6d6 | ber 0000ab53 | unc 00000005 |
FE_HAS_LOCK
status 1f | signal ffff | snr d8d8 | ber 000309c6 | unc 00000007 |
FE_HAS_LOCK
etc. 

And it zapped!  :-)
Very nice.
First time in a week that I can see and hear something. 

What remains to be done now is to adapt the other software that came with
the code 
and also VDR to the new driver.
So far, building the libdvb still fails:
pauli4:/usr/src/DVB/driver # cd ../libdvb/
pauli4:/usr/src/DVB/libdvb # make
g++ -I./include -I./src -I. -I../driver -I../include -O2 -Wall -g -c DVB.cc
DVB.cc: In method `void DVB::scan_sdt(Channel *)':
DVB.cc:526: `class Channel' has no member named `has_eit'
DVB.cc:527: `class Channel' has no member named `pres_follow'
DVB.cc:528: `class Channel' has no member named `has_eit'
DVB.cc:529: `class Channel' has no member named `pres_follow'
DVB.cc: In method `void DVB::scan_pf_eit(Channel *)':
DVB.cc:568: `class Channel' has no member named `eit_ver_n'
DVB.cc:572: `class Channel' has no member named `eit_ver_c'
make: *** [DVB.o] Error 1

As a consequence, I'm unable to rebuild tuxzap to see if it works now 
(the "old" version does not). 

VDR does rebuild (from a directory parallel to that of the DVB-source), 
but reports:

Aug  1 22:20:12 pauli4 vdr[1261]: ERROR: no video device found, giving up!

and returns. 
I've been told a port of VDR to the NEWSTRUCT branch is on the way. 

Regarding tuxzap and libdvb, Holger has pointed me to Markus Metzler, who is

supposedly on this list, too. 
Markus, if you happen to not read these lines, 
I'd be rude and contact you directly ;-) 

Even given the failures of tuxzap and VDR, the outcome is ok for me, 
as long as I can switch channels somehow, even with czap, 
for that's what the box is built for:
Switch channels remotely to feed the composite signal into another signal 
on our corporate TV-cable. 

BTW, thanks to Holger for helping me out on this!

(Hmm, I might even reconsider purchasing a DVB card privately
 - if I ever get I over this "Linux+drivers"-blues...)

Ciao, Amir

     Amir Akhavan

     Norddeutscher Rundfunk
     Abt. Kommunikationssysteme
     Hugh-Greene-Weg 1
     22529 Hamburg
     e-mail:  a.akhavan@ndr.de





-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index