[linux-dvb] Tevion DVBT-220RF

Hartmut Hackmann hartmut.hackmann at t-online.de
Thu Jan 19 23:32:40 CET 2006


Hi, Peter

Peter Hartshorn wrote:
> Hello,
> 
> Hartmut Hackmann wrote:
> 
>> Hi, Peter
>>
>> Peter Hartshorn wrote:
>>
>>> I set it to 5 seconds. I also put an inline 20dB antenna amp which 
>>> helped with detection also.
>>>
>>> BTW, I set the card value to 82 because it has radio support. This 
>>> required a small hack in
>>> saa7134_dvb.c to include the MSI card.
>>>
>>> Nico Sabbi wrote:
>>>
>>>> Peter Hartshorn wrote:
>>>>
>>>>> Prepare yourself for the victory dance :)
>>>>>
>>>>> with the changes to the driver I get the following:
>>>>>
>>>>> dmesg
>>>>>
>>>>>
>>>> [...]
>>>>
>>>>>
>>>>> ./tzap -c channels.conf-dvbt-australia "7 Digital"
>>>>> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
>>>>> tuning to 177500000 Hz
>>>>> video pid 0x0301, audio pid 0x0302
>>>>> status 00 | signal 7a7a | snr ffff | ber 0001fffe | unc 00000000 |
>>>>> status 00 | signal 8282 | snr 9898 | ber 0001fffe | unc 00000000 |
>>>>> status 00 | signal 8383 | snr 8888 | ber 0001fffe | unc 00000000 |
>>>>> status 1f | signal 8383 | snr fafa | ber 0000813c | unc ffffffff | 
>>>>> FE_HAS_LOCK
>>>>> status 1f | signal 8282 | snr fbfb | ber 000082e2 | unc 00000000 | 
>>>>> FE_HAS_LOCK
>>>>> status 1f | signal 8383 | snr fbfb | ber 00007f7c | unc 00000000 | 
>>>>> FE_HAS_LOCK
>>>>> status 1f | signal 8282 | snr fbfb | ber 00008964 | unc 00000000 | 
>>>>> FE_HAS_LOCK
>>>>>
>>>>>
>>>>> mplayer dvb://7\ Digital
>>>>>
>>>>> this displays both the SD and HD channels. Sometimes mplayer 
>>>>> displays the following:
>>>>>
>>>>> Getting frontend status
>>>>> Not able to lock to the signal on the given frequency
>>>>> dvb_tune, TUNING FAILED
>>>>> ERROR, COULDN'T SET CHANNEL  0: DVBIN_CLOSE, close(2), fd=7, COUNT=2
>>>>> DVBIN_CLOSE, close(1), fd=6, COUNT=1
>>>>> DVBIN_CLOSE, close(0), fd=5, COUNT=0
>>>>> Failed to open dvb://7 Digital
>>>>>
>>>>> I think it is a timeout in mplayer being too short.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> yes, IIRC I set it to 3 seconds. You can increase it in 
>>>> libmpdemux/dvb_tune.c
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>>
>>>> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>>>>
>>>>
>>>>
>>>> Sponsor:
>>>>
>>>> I bambini fanno "Oh", Gasolina, Angelo e tutte le migliori suonerie.
>>>>
>>>> * La prima suoneria è GRATIS!
>>>>
>>>> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3540&d=17-1
>>>>
>> Tunig with the TDA10046 can be slow if the crystal is bit off and the
>> signal quality is not perfect. If you use an application that keeps
>> the DVB interface open (i.e. xine), this should only occur for the
>> first attempt.
>>
>> So it is time to add official support for this card. I write some
>> instructions (AverTV 777) few days ago. Should i resend them to you?
>>
>> Hartmut
>>
>>
>>
> 
> Yes, it would be best to resend them to me thanks. WRT the crystal being 
> off, is this a hardware
> thing, or a software thing?
> 
The crystal is a hardware thing. Maybe a firmware update will help later.

Here the instructions:
analog section:
- add a card ID macro to saa7134.h
   Please take care that the macro name is descriptive.
- add an entry at the end of the saa7134_boards array in saa7134-cards.c
   most entries are pretty self descriptive.
   - you get the tuner type from tuner.h
     In your case, it is TUNER_PHILIPS_TDA8290
   - audio_clock reflects the crystal for the saa7134 on the board. ( the
     small metal component.
     use 0x00200000 for a 24.576 MHz crystal and 0x00187de7 for 32.11 MHz
   - for your tuner, you dont need the TDA9887_PRESENT flag.
   - you need an inputs entry for each input of the card.
     .vmux values are valid from 0 to 3, add 8 for s-video
     .amux can be LINE1, LINE2 or TV
     you can find the values by try and error.
- add an entry in the saa7134_pci_tbl in saa7134-cards.c. You should insert
   it right before the entries for cards without eeprom. You need to enter
   the .subvendor and .subdevice entries that are reported by lspci for your
   card.
You might need to add code in this file for remote control and initialization
to analog mode. We don't know yet, but you might have a look at the
SAA7134_BOARD_PHILIPS_TIGER label in saa7134_board_init2(). You might need
something similar.
Now your card is autodetected and analog should work. Test!

digital section:
- first you need an entry in the dvb_init function and a data structure
   for the tda10046_attach() function.
- You will need a new xxx_pll_set function. You already have it from
   our experiments.
- Your card has 2 tuners, right? In this case, you don't need _pll_init
   code. Just create a function that returns 0. There already are examples.
- the _pll_sleep function should do something. You should just call
   philips_tda827xa_pll_sleep( 0x60, fe);
- For the config data structure, you can copy most of the entries from
   tda1004x_config philips_tiger_config struct. Just modify the pointers to
   your new functions.

That should do it: test!

Afterwards, you should create patches to the recent CVS and publish them.
If others confirm thy work, i will commit them to the CVS.

Good luck
    Hartmut



More information about the linux-dvb mailing list