[linux-dvb] My Twinhan DVB-T CI won't tune

Manu Abraham manu at kromtek.com
Sat Jun 11 11:35:44 CEST 2005


Einar Bjarni Halldórsson wrote:
> Hi,
> 
> I finally got my hands on a DVB card, and have started what is becoming
> a very interesting proccess of getting it to work. Had to jump through a
> couple of hoops to get the dst module to recognize it as a DVB-T and not
> a DVB-S (the default KnoppMyth R5A16 install wouldn't budge on this
> issue). Since then I've tried kernels 2.6.10 , 2.6.11.11 and 2.6.12-rc5
> with the CVS version of dvb-kernel, but with similar results. The card
> get's recognized as a DVB-T and the CI module is recognized, but when I
> try to get dvbscan to do it's thing, I get "tuning failed" and a bunch
> of error messages in dmesg. 
> 
> I've seen people have similar problems in the mailing list archives, but
> I was wondering if there is any progress in finding a solution.
> 
> Regards,
> 
> Einar
> 
> dmesg output (using kernel 2.6.10 I get an error when I try to modprobe
> dvb-bt8xx. Had to remove snd_bt8xx and bt878 before modprobe'ing it
> again):
> ====================================================
> bttv: driver version 0.9.15 loaded
> bttv: using 8 buffers with 2080k (520 pages) each for capture
> bttv: Bt8xx card found (0).
> bttv0: Bt878 (rev 17) at 0000:02:08.0, irq: 17, latency: 64, mmio:
> 0xfc001000
> bttv0: detected: Twinhan VisionPlus DVB-T [card=113], PCI subsystem ID
> is 1822:0001
> bttv0: using: Twinhan DST + clones [card=113,autodetected]
> bttv0: gpio: en=00000000, out=00000000 in=00f500fd [init]
> bttv0: using tuner=4
> bttv0: add subdevice "dvb0"
> bt878: AUDIO driver version 0.0.0 loaded
> dvb_bt8xx: unable to determine DMA core of card 0,
> dvb_bt8xx: if you have the ALSA bt87x audio driver installed, try
> removing it.
> dvb-bt8xx: probe of dvb0 failed with error -14
> dvb_bt8xx: unable to determine DMA core of card 0,
> dvb_bt8xx: if you have the ALSA bt87x audio driver installed, try
> removing it.
> dvb-bt8xx: probe of dvb0 failed with error -14
> bt878: AUDIO driver version 0.0.0 loaded
> bt878: Bt878 AUDIO function found (0).
> bt878(0): Bt878 (rev 17) at 02:08.1, irq: 17, latency: 64, memory:
> 0xfc000000
> DVB: registering new adapter (bttv0).
> dst_get_device_id: Recognise [DTT-CI]

Which card model do you have ?


> DST type : terrestrial
> DST type flags : 0x2 ts204 0x10 firmware version = 2
> DVB: registering frontend 0 (DST DVB-T)...
> .
> .
> .
> read_dst: read_dst error (err == -5, len == 0x01, b0 == 0xdc)
> dst_error_recovery: Trying to return from previous errors...
> read_dst: read_dst error (err == -5, len == 0x01, b0 == 0xdc)
> dst_error_recovery: Trying to return from previous errors...
> dst_error_bailout: Trying to bailout from previous error...
> dst_write_tuna: read verify not successful.

Your card has tuning problems due to i2c communication problems. This 
has bee fixed with the bttv patch i posted a while back.. Please do test 
it out whether it solves your communication problems..

This patch can be applied against the bttv in 2.6.11.x.


Changelog:

Attached is a patch to bttv which fixes the following problems.


Affected cards and problems:
~~~~~~~~~~~~~~~~~~~~~~~~
o VP-1020 (200103A) Tuning problems, device detection.
o VP-1020 (DST-MOT) Errors during tuning, device detection fails in a while.
o VP-1030 (DST-CI) Tuning sometimes fails after CI commands.
o VP-2031 (DCT-CI) Tuning problems


The timeout happens before the actual timeout occured in the MCU
on the board, and hence the problems.


Changes: (bttv-i2c.diff)
~~~~~~~~~~~~~~~~~~~~~~~~
o Changed the custom wait queue to wait_event_interruptible_timeout()
      - Suggestion by Johannes Stezenbach.

o Fixed the wait queue timeout problem
      - This fixes the timeout problem on various cards.
      - This problem was visible as many
          * Cannot tune to channels, when signal levels are very low.
          * app_info does not work in some conditions for CI based cards
      - Smaller values worked good for newer cards, but the older cards
suffered, settled down to the worst case values that could happen in any
eventuality.



Please do test it out and let know which card model you have also..


Manu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bttv-i2c.diff
Type: text/x-patch
Size: 939 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20050611/cd2b1b41/bttv-i2c.bin


More information about the linux-dvb mailing list