[linux-dvb] Pinnacle 300i (working!)

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

 



2006/2/4, tim0m1a <tim0m1a@xxxxxx>:
> Hi,
>
> how did you manage to get the card working. I tried to fix the problem
> inside the sourcecode myself, but the card still does not work.
>
> Which changes have to be made and how do I have to load the modules?
>
> MfG
> Tim
>

Hi Tim, the card works here with 2.6.16_rc1 setting if2 manually on
mt20xx.c, but mplayer only plays video for 1 or 2 seconds, which seems
to me the same bug that 2.6.12 has when the June snapshot is not used.

Some info:

1) load modules:

# modprobe tda9887 port2=1
# modprobe tuner debug=2
# modprobe saa7134
# modprobe saa7134-dvb
# dmesg
[4294765.859000] saa7130/34: v4l2 driver version 0.2.14 loaded
[4294765.859000] ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level,
low) -> IRQ 16
[4294765.859000] saa7134[0]: found at 0000:00:0a.0, rev: 1, irq: 16,
latency: 32, mmio: 0xe2008000
[4294765.859000] saa7134[0]: subsystem: 11bd:002d, board: Pinnacle
PCTV 300i DVB-T + PAL [card=50,autodetected]
[4294765.859000] saa7134[0]: board init: gpio is c806000
[4294765.963000] tda9887 0-0043: chip found @ 0x86 (saa7134[0])
[4294765.972000] tuner 0-0060: Chip ID is not zero. It is not a TEA5767
[4294765.972000] tuner 0-0060: Setting mode_mask to 0x0e
[4294765.972000] tuner 0-0060: chip found @ 0xc0 (saa7134[0])
[4294765.972000] tuner 0-0060: v4l2_int ioctl TUNER_SET_TYPE_ADDR,
dir=-w (0x4004645a)
[4294765.972000] tuner 0-0060: Calling set_type_addr for type=33,
addr=0xff, mode=0x04
[4294765.972000] tuner 0-0060: tuner 0x60: called during i2c_client
register by adapter's attach_inform
[4294765.972000] tuner 0-0060: v4l2_int ioctl TDA9887_SET_CONFIG,
dir=-w (0x4004645c)
[4294765.972000] tuner 0-0060: pinnacle pal
[4294765.979000] tuner 0-0060: MT20xx hexdump: 42 2c 29 e7 66 63 11 88
 29 07 85 99 e3 b7 f0 13  24 3c bf 42 2c
[4294765.979000] tuner 0-0060: microtune: companycode=3cbf part=42 rev=2c
[4294765.987000] tuner 0-0060: mt2050: sro is b7
[4294765.987000] tuner 0-0060: microtune MT2050 found, OK
[4294765.987000] tuner 0-0060: saa7134[0] tuner I2C addr 0xc0 with
type 33 used for 0x0e
[4294766.012000] saa7134[0]: i2c eeprom 00: bd 11 2d 00 f8 f8 1c 00 43
43 a9 1c 55 d2 b2 92
[4294766.012000] saa7134[0]: i2c eeprom 10: 00 f0 04 04 ff 20 ff ff ff
ff ff ff ff ff ff ff
[4294766.012000] saa7134[0]: i2c eeprom 20: 01 40 01 02 03 ff 03 01 08
ff 00 25 ff ff ff ff
[4294766.012000] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[4294766.012000] saa7134[0]: i2c eeprom 40: ff 16 00 c0 86 3c 01 01 ff
ff ff ff ff ff ff ff
[4294766.012000] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[4294766.012000] saa7134[0]: i2c eeprom 60: 0c 22 17 44 03 0d 57 7c ff
ff ff ff ff ff ff ff
[4294766.012000] saa7134[0]: i2c eeprom 70: 00 30 8d 17 ee cd ff ff 34
3c ff ff ff ff ff ff
[4294766.014000] tuner 0-0060: v4l2 ioctl VIDIOC_S_STD, dir=-w (0x40085618)
[4294766.014000] tuner 0-0060: Cmd VIDIOC_S_STD accepted for analog TV
[4294766.014000] tuner 0-0060: switching to v4l2
[4294766.014000] tuner 0-0060: tv freq set to 400.00
[4294766.014000] tuner 0-0060: mt2050_set_if_freq freq=400000000
if1=1218000000 if2=36150000
[4294766.014000] tuner 0-0060: lo1 lo2 = 404 295
[4294766.014000] tuner 0-0060: num1 num2 div1a div1b div2a div2b= 2
766 20 8 23 7
[4294766.014000] tuner 0-0060: bufs is: 1 22 20 e7 66 63
[4294766.019000] tuner 0-0060: mt2050: enabled antenna connector 1
[4294766.021000] tuner 0-0060: v4l2 ioctl VIDIOC_S_STD, dir=-w (0x40085618)
[4294766.021000] tuner 0-0060: tv freq set to 400.00
[4294766.021000] tuner 0-0060: mt2050_set_if_freq freq=400000000
if1=1218000000 if2=36150000
[4294766.021000] tuner 0-0060: lo1 lo2 = 404 295
[4294766.021000] tuner 0-0060: num1 num2 div1a div1b div2a div2b= 2
766 20 8 23 7
[4294766.021000] tuner 0-0060: bufs is: 1 22 20 e7 66 63
[4294766.026000] tuner 0-0060: mt2050: enabled antenna connector 1
[4294766.028000] saa7134[0]: registered device video0 [v4l2]
[4294766.028000] saa7134[0]: registered device vbi0
[4294767.904000] saa7134[0]: pinnacle 300i dvb setup
[4294767.907000] DVB: registering new adapter (saa7134[0]).
[4294767.907000] DVB: registering frontend 0 (Zarlink MT352 DVB-T)...

2) trying with tzap:

# tzap "TVE 1"
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
reading channels from file '/root/.tzap/channels.conf'
tuning to 786000000 Hz
video pid 0x0065, audio pid 0x0067
status 00 | signal 3a2f | snr 0000 | ber 00000000 | unc 00000000 |
status 1e | signal 265f | snr 6464 | ber 00000000 | unc 00000500 | FE_HAS_LOCK
status 1e | signal 29ef | snr 6464 | ber 00000000 | unc 00000500 | FE_HAS_LOCK
status bfbc83a4 | signal 959f | snr 6b6b | ber 00000000 | unc 00000700 |
status bfbc83a4 | signal 97df | snr 9d9d | ber 00000000 | unc 00000400 |
status 0c | signal 26ff | snr 6060 | ber 00000000 | unc 00000800 |
status 1e | signal 28ff | snr 9393 | ber 00000000 | unc 00000400 | FE_HAS_LOCK
status 1e | signal 24ff | snr 9696 | ber 000074df | unc 00000400 | FE_HAS_LOCK
status 1e | signal 2a5f | snr 9393 | ber 000074df | unc 00000500 | FE_HAS_LOCK
status 1e | signal 254f | snr 9393 | ber 000074df | unc 00000500 | FE_HAS_LOCK
status bfbc83a4 | signal 999f | snr 8585 | ber 000074df | unc 00000600 |
status bfbc83a4 | signal 976f | snr 6b6b | ber 000074df | unc 00000600 |
status bfbc83a4 | signal 4fff | snr 8686 | ber 000074df | unc 00000900 |
status 1e | signal 263f | snr 6b6b | ber 00007a35 | unc 00000600 | FE_HAS_LOCK
status 1e | signal 299f | snr 8585 | ber 00007a35 | unc 00000600 | FE_HAS_LOCK
status 1e | signal 004f | snr 0000 | ber 00007a35 | unc 00000700 | FE_HAS_LOCK
status 1e | signal 253f | snr 9393 | ber 00007a35 | unc 00000500 | FE_HAS_LOCK
status 1e | signal 2a2f | snr 9797 | ber 00007a35 | unc 00000300 | FE_HAS_LOCK
status 1e | signal 284f | snr 5050 | ber 000083a4 | unc 00000700 | FE_HAS_LOCK
status 0c | signal 29ef | snr 9f9f | ber 000083a4 | unc 00000700 |
status 1e | signal 23ff | snr 9999 | ber 000083a4 | unc 00000500 | FE_HAS_LOCK
status 1e | signal 2b2f | snr 9292 | ber 000083a4 | unc 00000800 | FE_HAS_LOCK
status 1e | signal 268f | snr 8383 | ber 000083a4 | unc 00000300 | FE_HAS_LOCK
status bfbc83a4 | signal 9baf | snr 9292 | ber 000083a4 | unc 00000700 |
status 0c | signal 2b4f | snr 5c5c | ber 0000905a | unc 00000800 |
status 1e | signal 26ff | snr 8383 | ber fffffffb | unc 00000000 | FE_HAS_LOCK
status 0c | signal 29af | snr 6e6e | ber 0000905a | unc fffffffb |
status 1e | signal 280f | snr 9797 | ber 0000905a | unc 00000400 | FE_HAS_LOCK
status bfbc83a4 | signal 004f | snr e3e3 | ber 0000905a | unc 00000400 |
status bfbc83a4 | signal 004f | snr fbfb | ber 0000905a | unc 00000800 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber fffffffb | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0000905a | unc 00000000 |

uh... that's ugly...

3) dmesg after tzap:

[4294851.915000] saa7134[0]: mt352_pinnacle_init called
[4294854.965000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294855.991000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294857.011000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294862.159000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294863.185000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294864.205000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294864.205000] mt352_read_register: readreg error (reg=0, ret==-5)
[4294864.205000] mt352_read_register: readreg error (reg=20, ret==-5)
[4294867.294000] mt352_read_register: readreg error (reg=21, ret==-5)
[4294870.374000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294871.402000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294875.521000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294876.541000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294877.593000] mt352_read_register: readreg error (reg=15, ret==-5)
[4294878.601000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294878.622000] mt352_read_register: readreg error (reg=17, ret==-5)
[4294879.794000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294880.652000] mt352_read_register: readreg error (reg=0, ret==-5)
[4294880.652000] mt352_read_register: readreg error (reg=0, ret==-5)
[4294880.653000] mt352_read_register: readreg error (reg=20, ret==-5)
[4294880.653000] mt352_read_register: readreg error (reg=21, ret==-5)
[4294880.754000] mt352_read_register: readreg error (reg=1, ret==-5)
[4294881.592000] mt352_read_register: readreg error (reg=0, ret==-5)
[4294881.667000] mt352_read_register: readreg error (reg=0, ret==-5)
[4294881.667000] mt352_read_register: readreg error (reg=0, ret==-5)
[4294881.667000] mt352_read_register: readreg error (reg=20, ret==-5)
[4294881.668000] mt352_read_register: readreg error (reg=21, ret==-5)
[4294881.668000] mt352_read_register: readreg error (reg=9, ret==-5)
[4294884.759000] mt352_read_register: readreg error (reg=15, ret==-5)

4) with mplayer:

# mplayer -cache 512 "dvb://TVE 1"
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compilado para CPU x86 con extensiones: MMX MMX2 3DNow 3DNowEx SSE
85 audio & 196 video codecs
Configurando soporte para LIRC...
mplayer: could not open config files /root/.lircrc and /etc/lircrc
mplayer: No such file or directory
Fallo al leer archivo de configuraci? de LIRC ~/.lircrc.
No podr? usar el control remoto.
Reproduciendo dvb://TVE 1.
code taken from dvbstream for mplayer v0.4pre1 - (C) Dave Chapman 2001
Released under the GPL.
Latest version available from http://www.linuxstb.org/
dvb_tune Freq: 786000000
Cache fill: 32.81% (172032 bytes)    Win32 LoadLibrary failed to load:
avisynth.dll, /usr/lib/win32/avisynth.dll,
/usr/local/lib/win32/avisynth.dll
Detectado formato de archivo TS.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=101)AUDIO MPA(pid=103) NO SUBS (yet)!  PROGRAM N. 0
Opened TS demuxer, audio: 50(pid 103), video: 10000002(pid 101)...POS=15228
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
==========================================================================
Abriendo descodificador de audio: [mp3lib] MPEG layer-2, layer-3.
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Abriendo descodificador de v?eo: [mpegpes] MPEG 1/2 Video passthrough.
VDec: vo solicitud de config - 720 x 576 (csp preferida: Mpeg PES).
No se pudo encontrar colorspace concordante - reintentando escalado -vf...
Abriendo filtro de v?eo: [scale]
Disculpe, el dispositivo de salida de v?eo es incompatible con este codec.
Inicializaci? del VDecoder ha fallado.
Abriendo descodificador de v?eo: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b.
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
AF_pre: 48000Hz/2ch/s16le
alsa-init: 1 soundcard found, using: default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bps)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Empezando reproducci?...
VDec: vo solicitud de config - 720 x 576 (csp preferida: Planar YV12).
VDec: using Planar YV12 as output csp (no 0)
Aspecto es 1.33:1 - prescalando a aspecto correcto.
VO: [xv] 720x576 => 768x576 Planar YV12
alsa-play: xrun of at least 34.096 msecs. resetting stream ??,?% 4 0 0%
alsa-play: xrun of at least 13.772 msecs. resetting stream 249.8% 5 0 1%
alsa-play: xrun of at least 300.020 msecs. resetting stream269.2% 6 0 0%
alsa-play: xrun of at least 43.665 msecs. resetting stream 336.8% 8 0 1%
alsa-play: xrun of at least 331.600 msecs. resetting stream347.7% 9 0 0%
alsa-play: xrun of at least 59.934 msecs. resetting stream 401.6% 10 0 0%
alsa-play: xrun of at least 23.927 msecs. resetting stream 410.9% 11 0 0%
alsa-play: xrun of at least 68.562 msecs. resetting stream 417.8% 12 0 0%
alsa-play: xrun of at least 339.167 msecs. resetting stream426.6% 13 0 1%
alsa-play: xrun of at least 388.101 msecs. resetting stream467.2% 14 0 0%
alsa-play: xrun of at least 300.718 msecs. resetting stream507.8% 15 0 0%
alsa-play: xrun of at least 60.139 msecs. resetting stream 538.0% 16 0 1%
alsa-play: xrun of at least 332.001 msecs. resetting stream539.5% 17 0 0%
alsa-play: xrun of at least 353.269 msecs. resetting stream569.5% 18 0 0%
alsa-play: xrun of at least 10.610 msecs. resetting stream 589.6% 20 0 0%
alsa-play: xrun of at least 82.711 msecs. resetting stream 586.3% 21 0 0%
alsa-play: xrun of at least 8.240 msecs. resetting stream% 586.0% 22 0 0%
alsa-play: xrun of at least 200.231 msecs. resetting stream583.0% 23 0 0%
alsa-play: xrun of at least 115.430 msecs. resetting stream572.9% 27 0 0%
alsa-play: xrun of at least 211.791 msecs. resetting stream578.3% 28 0 1%
alsa-play: xrun of at least 312.393 msecs. resetting stream587.2% 29 0 0%
alsa-play: xrun of at least 159.368 msecs. resetting stream605.0% 30 0 1%
alsa-play: xrun of at least 743.858 msecs. resetting stream603.4% 32 0 1%
alsa-play: xrun of at least 122.919 msecs. resetting stream645.5% 33 0 0%
alsa-play: xrun of at least 22.919 msecs. resetting stream 646.5% 34 0 0%
alsa-play: xrun of at least 317.844 msecs. resetting stream644.2% 35 0 0%
alsa-play: xrun of at least 80.810 msecs. resetting stream 656.3% 36 0 0%
alsa-play: xrun of at least 158.145 msecs. resetting stream657.0% 37 0 0%
dvb_streaming_read, attempt N. 6 failed with errno 0 when reading 1320 bytes
dvb_streaming_read, attempt N. 5 failed with errno 0 when reading 1320 bytes
dvb_streaming_read, attempt N. 4 failed with errno 0 when reading 1320 bytes
dvb_streaming_read, attempt N. 3 failed with errno 0 when reading 1320 bytes
dvb_streaming_read, attempt N. 2 failed with errno 0 when reading 1320 bytes
dvb_streaming_read, attempt N. 1 failed with errno 0 when reading 1320 bytes
dvb_streaming_read, attempt N. 6 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 5 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
TS_PARSE: COULDN'T SYNC
alsa-play: xrun of at least 5874.945 msecs. resetting stream
alsa-space: xrun of at least 0.353 msecs. resetting stream 511.3% 38 0 0%
A:34895.2 V:34895.3 A-V: -0.164 ct:  0.951 269/269  4%  0% 169.8% 38 0 0%
alsa-uninit: pcm closed

Saliendo... (Fin del archivo.)
-----

Grfx... so... two things:

1) Anyone has this card running flawlessly? with what changes to the code?

2) Anyone knows how the bug from the 2.6.12 era in which the video
only played a couple seconds was solved? could it be that the solution
was lost in the v4l-dvb merge?

It's great to see that the card is (sort of) running, I hope that we
can get it running definitively soon.

Cheers,

Jose Luis.

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux