[linux-dvb] using nxt200x in the flexcop driver

Michael Krufky mkrufky at gmail.com
Sun Jan 15 21:42:41 CET 2006


Kirk-

Attached is your original patch that makes the flexcop driver use 
nxt200x instead of nxt2002.

I've recently acquired this Air2PC card, and I've tested both nxt2002 
and nxt200x with it.  nxt200x works, but nxt200x doesn't.  When using 
nxt200x, the tuner cannot find a signal.  (and it oops'd during a 
frequency scan)

For the record, the nxt200x driver works *very* well, when used with the 
nxt2004 chip, in the AVerTV HD a180... and Im sure it works well in the 
ATi HDTV Wonder, since that is what Kirk used to write the driver.

Here is dmesg, first using nxt2002, then using nxt200x ... Azap'd to a 
local ATSC tv station in 8VSB... after that, I scanned for channels 
using nxt200x, and the oops output is below:

first with nxt2002:

mk at aftermath:~$ ./azap WPIX_Digital -r
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
tuning to 587000000 Hz
video pid 0x0031, audio pid 0x0034
status 00 | signal fff0 | snr ea60 | ber 00000000 | unc 00000000 |
status 1f | signal a110 | snr 5c42 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal adf0 | snr 5c06 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal a390 | snr 5cf6 | ber 00007ff8 | unc 00000004 | 
FE_HAS_LOCK
status 1f | signal b340 | snr 5d82 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal af30 | snr 5e48 | ber 00007ff8 | unc 00000000 | 
FE_HAS_LOCK
status 1f | signal a0d0 | snr 5c9c | ber 00007ff8 | unc 00000004 | 
FE_HAS_LOCK
status 1f | signal b490 | snr 5d66 | ber 00007ff8 | unc 00000004 | 
FE_HAS_LOCK
status 1f | signal a770 | snr 5cd4 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal bf40 | snr 5d82 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal a7f0 | snr 5cb2 | ber 00007ff8 | unc 00000004 | 
FE_HAS_LOCK
status 1f | signal afe0 | snr 5cc8 | ber 00007ff8 | unc 00000004 | 
FE_HAS_LOCK
status 1f | signal b270 | snr 5b82 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal aea0 | snr 5cf0 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal a110 | snr 5c66 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal a410 | snr 5c82 | ber 00005f00 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal bbc0 | snr 5ca4 | ber 00007ff8 | unc 00000006 | 
FE_HAS_LOCK
status 1f | signal a0b0 | snr 5d24 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal b6f0 | snr 5cec | ber 00007ff8 | unc 00000002 | 
FE_HAS_LOCK
status 1f | signal af90 | snr 5d08 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal b1e0 | snr 6eca | ber 00007ff8 | unc 00000004 | 
FE_HAS_LOCK
status 1f | signal ad30 | snr 5d42 | ber 00007ff8 | unc 00000005 | 
FE_HAS_LOCK
status 1f | signal ac20 | snr 5d3c | ber 00007ff8 | unc 00000006 | 
FE_HAS_LOCK

b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded 
successfully
flexcop-pci: will use the HW PID filter.
flexcop-pci: card revision 2
ACPI: PCI Interrupt 0000:02:07.0[A] -> GSI 19 (level, low) -> IRQ 19
DVB: registering new adapter (FlexCop Digital TV device).
b2c2-flexcop: MAC address = 00:d0:d7:02:54:5f
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
mt352_read_register: readreg error (reg=127, ret==-121)
b2c2-flexcop: found the nxt2002 at i2c address: 0x0a
DVB: registering frontend 0 (Nextwave nxt2002 VSB/QAM frontend)...
b2c2-flexcop: initialization of 'Air2PC/AirStar 2 ATSC 2nd generation' 
at the 'PCI' bus controlled by a 'FlexCopIIb' complete
nxt2002: Waiting for firmware upload (dvb-fe-nxt2002.fw)...
nxt2002: Waiting for firmware upload(2)...
done.
nxt2002: firmware upload complete
ACPI: PCI interrupt for device 0000:02:07.0 disabled
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip unloaded 
successfully

then, using nxt200x:

mk at aftermath:~$ ./azap WPIX_Digital -r
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
tuning to 587000000 Hz
video pid 0x0031, audio pid 0x0034
status 00 | signal 69f0 | snr 597c | ber 00000000 | unc 00000000 |
status 00 | signal db30 | snr 76ea | ber 00000000 | unc 00000000 |
status 00 | signal dd30 | snr 7a3e | ber 00000000 | unc 00000000 |
status 00 | signal 6da0 | snr 59cc | ber 00000000 | unc 00000000 |
status 00 | signal dab0 | snr 7ac6 | ber 00000000 | unc 00000000 |
status 00 | signal dc00 | snr 7be8 | ber 00000000 | unc 00000000 |
status 00 | signal 71d0 | snr 599a | ber 00000000 | unc 00000000 |
status 00 | signal db70 | snr 7a82 | ber 00000000 | unc 00000000 |
status 00 | signal ddf0 | snr 80f8 | ber 00000000 | unc 00000000 |
status 00 | signal 7110 | snr 5918 | ber 00000000 | unc 00000000 |
status 00 | signal b300 | snr 5d24 | ber 00000000 | unc 00000000 |
status 00 | signal a730 | snr 5c9e | ber 00000000 | unc 00000000 |
status 00 | signal bea0 | snr 5d92 | ber 00000000 | unc 00000000 |
status 00 | signal dda0 | snr 79ea | ber 00000000 | unc 00000000 |
status 00 | signal 95d0 | snr 5c04 | ber 00000000 | unc 00000000 |
status 00 | signal b4b0 | snr 5d0c | ber 00000000 | unc 00000000 |
status 00 | signal b950 | snr 5d46 | ber 00000000 | unc 00000000 |
status 00 | signal 7630 | snr 59f2 | ber 00000000 | unc 00000000 |
status 00 | signal d9e0 | snr 7c4e | ber 00000000 | unc 00000000 |

b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded 
successfully
flexcop-pci: will use the HW PID filter.
flexcop-pci: card revision 2
ACPI: PCI Interrupt 0000:02:07.0[A] -> GSI 19 (level, low) -> IRQ 19
DVB: registering new adapter (FlexCop Digital TV device).
b2c2-flexcop: MAC address = 00:d0:d7:02:54:5f
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
mt352_read_register: readreg error (reg=127, ret==-121)
nxt200x: NXT2002 Detected
b2c2-flexcop: found the nxt2002 at i2c address: 0x0a
DVB: registering frontend 0 (Nextwave NXT200X VSB/QAM frontend)...
b2c2-flexcop: initialization of 'Air2PC/AirStar 2 ATSC 2nd generation' 
at the 'PCI' bus controlled by a 'FlexCopIIb' complete
nxt2002: Waiting for firmware upload (dvb-fe-nxt2002.fw)...
nxt2002: Waiting for firmware upload(2)...
nxt2002: Firmware upload complete
nxt200x: Timeout waiting for nxt200x to stop. This is ok after firmware 
upload.
------------[ cut here ]------------
kernel BUG at /home/mk/v4l-dvb/v4l/dvb-pll.c:389!
invalid operand: 0000 [#1]
SMP
Modules linked in: b2c2_flexcop_pci b2c2_flexcop mt352 bcm3510 stv0299 
dvb_core nxt200x firmware_class dvb_pll stv0297_cs2 lgdt330x mt312 
i2c_core sbp2 usb_storage snd_atiixp snd_atiixp_modem ehci_hcd 
snd_ac97_codec snd_ac97_bus ohci_hcd ohci1394 ieee1394 usbcore snd_pcm 
snd_timer snd snd_page_alloc ati_agp agpgart
CPU:    0
EIP:    0060:[<f8d2c1b5>]    Not tainted VLI
EFLAGS: 00010246   (2.6.14)
EIP is at dvb_pll_configure+0x151/0x160 [dvb_pll]
eax: 00000000   ebx: 00000004   ecx: 00000004   edx: f8d2e050
esi: d7ba3f24   edi: 2b369f40   ebp: f8d2e020   esp: d7ba3ee0
ds: 007b   es: 007b   ss: 0068
Process kdvb-fe-0 (pid: 5988, threadinfo=d7ba2000 task=f6cc5a30)
Stack: 31126b1a 0000000d f8d33621 d7730a00 00000031 d7ba3eff 00000001 
40aa27cd
       d7730a00 d7730b04 d7ba3f24 f72d8404 f8d34039 f8d2e020 d7ba3f24 
2b369f40
       00000000 00000286 f72d8400 00000001 00000000 2b369f40 f8d71515 
d7730b04
Call Trace:
 [<f8d33621>] nxt200x_microcontroller_stop+0x92/0xcf [nxt200x]
 [<f8d34039>] nxt200x_setup_frontend_parameters+0x4f/0x615 [nxt200x]
 [<f8d71515>] dvb_frontend_swzigzag_autotune+0x124/0x245 [dvb_core]
 [<c0125e6f>] del_timer_sync+0x21/0x2a
 [<f8d717c0>] dvb_frontend_swzigzag+0x18a/0x285 [dvb_core]
 [<f8d71bf6>] dvb_frontend_thread+0x29c/0x2c1 [dvb_core]
 [<c0131543>] autoremove_wake_function+0x0/0x4b
 [<f8d7195a>] dvb_frontend_thread+0x0/0x2c1 [dvb_core]
 [<c0101171>] kernel_thread_helper+0x5/0xb
Code: 0b ff ff ff 3b 7d 04 73 07 b8 ea ff ff ff eb 8e 3b 7d 08 8d 76 00 
0f 86 d9 fe ff ff b8 ea ff ff ff 90 8d 74 26 00 e9 73 ff ff ff <0f> 0b 
85 01 38 c5 d2 f8 e9 df fe ff ff 90 90 54 68 6f 6d 73 6f
 
-Michael Krufky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-flexcop-use-nxt200x.patch
Type: text/x-patch
Size: 1304 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20060115/6364b0dc/make-flexcop-use-nxt200x-0001.bin


More information about the linux-dvb mailing list