[pvrusb2] Terratec Grabster AV400

Sven Barth svenmauren at vr-web.de
Sat May 16 15:56:07 CDT 2009


Hello Mike!

> >/ Hi Mike!
> />/ 
> />/ I got it working!! But I didn't use the cs5345... I applied the "patch" that
> />/ Tobias Seiler reported in September:
> />/ http://www.isely.net/pipermail/pvrusb2/2008-September/001892.html8
> />/ 
> />/ I simply changed the default value of the cx25840 (in cx25840-core.c) from
> />/ AUDIO8 to SERIAL_AUDIO and after I compiled the module I get a normal sound.
> /
> Changing that default unfortunately is not appropriate because other 
> drivers use that module.
>
> If anything, the "default" should not matter since we should be 
> overriding it as part of the device set up.  So I'm really puzzled here.
>
> There's some debug code that I believe you can turn on in cx25840.ko.  
> Try explicitly loading the module with "debug=1" as an option.
>   
I know that it's not a solution, but it shows the source of the problem 
(I think).

I tested the cx25840 module with the debug option (I tested both, the 
modified and the original). The resulting debug output is attached. But 
it is as described: the original module does not set the audio to 0 
(SERIAL_AUDIO), but keeps its default value.

> >/ 
> />/ Did you use SERIAL_AUDIO anywhere else? Does it work there? Might following
> />/ dmesg entry be the root of the problem?
> />/ 
> />/ cx25840 2-0044: cx25837-23 found @ 0x88 (pvrusb2_a)
> />/ pvrusb2: Attached sub-driver cx25840
> />/ 
> />/ (It's similiar to the cs5345 message I posted earlier)
> /
> That message is fine.  That's just reporting that the cx25840 module has 
> successfully associated itself with the hardware and the pvrusb2 driver.
>   
Ok.
It's just the mismatch of the addresses that caught my eye (in both 
cases): on the one hand 0x44 and on the other 0x88 (with the cs5345 it 
was 0x11 and 0x22). But I think the solution for this problem is simple: 
I don't know enough about v4l and/or i2c. ;)

> >/ 
> />/ I also opened my device and I didn't found a trace of a cs5345 (on both sides
> />/ of the board). At least if it is marked as one ^^.
> /
> I was only propagating what others have told me in the past about this 
> device.  If anything, your last message suggested the presence of a 
> device at I2C address 0x22.  So there's still something there that we're 
> not understanding.
>   
I know. This device is really mysterious... I think I'll open it once 
again and write down every chip name I can find in a little graphic. ^^

> >/ 
> />/ Greetings,
> />/ Sven
> />/ 
> />/ PS: My system hanged some minutes ago, while I used mplayer to play from the
> />/ video device and in parallel played music in moc... I will check if it is an
> />/ issue with your driver or just the "parallel"...
> /
> Well anything is possible...
>   
I kept it running two times for around one hour and no crash occured. 
But I didn't start moc again this time... Either it's really the two 
apps using the sound card or just a non deterministic hiccup ^^ I'll 
check again tomorrow with both applications running.

Greetings,
Sven
-------------- next part --------------
//
// dmesg without patched cx25840
//
usb 1-5: new high speed USB device using ehci_hcd and address 13
usb 1-5: configuration #1 chosen from 1 choice
usb 1-5: USB disconnect, address 13
pvrusb2: Failed to submit write-control URB status=-19
pvrusb2: Device being rendered inoperable
pvrusb2: ***WARNING*** pvrusb2 device hardware appears to be jammed and I can't clear it.
pvrusb2: You might need to power cycle the pvrusb2 device in order to recover.
usbcore: registered new interface driver pvrusb2
pvrusb2: 20090509 (from www.isely.net):Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
usb 1-5: new high speed USB device using ehci_hcd and address 14
usb 1-5: configuration #1 chosen from 1 choice
pvrusb2: Automatic binding of ir_video has been disabled.
cx25840 2-0044: detecting cx25840 client on address 0x88
cx25840 2-0044: device_id = 0x8373
cx25840 2-0044: cx25837-23 found @ 0x88 (pvrusb2_a)
pvrusb2: Attached sub-driver cx25840
cx25840 2-0044: PLL regs = int: 15, frac: 2876158, post: 4
cx25840 2-0044: PLL = 108.000011 MHz
cx25840 2-0044: PLL/8 = 13.500001 MHz
cx25840 2-0044: ADC Sampling freq = 14.317384 MHz
cx25840 2-0044: Chroma sub-carrier freq = 3.579545 MHz
cx25840 2-0044: hblank 122, hactive 720, vblank 26, vactive 487, vblank656 26, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
cs5345 2-0011: chip found @ 0x22 (pvrusb2_a)
pvrusb2: Attached sub-driver cs5345
pvrusb2: Supported video standard(s) reported available in hardware: PAL-B/B1/D/D1/G/H/I/K/M/N/Nc/60;NTSC-M/
pvrusb2: Mapping standards mask=0xffffff (PAL-B/B1/D/D1/G/H/I/K/M/N/Nc/60;NTSC-M/Mj/443/Mk;SECAM-B/D/G/H/K/K1/L/LC)
pvrusb2: Setting up 28 unique standard(s)
pvrusb2: Set up standard idx=0 name=PAL-B/G
pvrusb2: Set up standard idx=1 name=PAL-D/K
pvrusb2: Set up standard idx=2 name=SECAM-B/G
pvrusb2: Set up standard idx=3 name=SECAM-D/K
pvrusb2: Set up standard idx=4 name=NTSC-M
pvrusb2: Set up standard idx=5 name=NTSC-Mj
pvrusb2: Set up standard idx=6 name=NTSC-443
pvrusb2: Set up standard idx=7 name=NTSC-Mk
pvrusb2: Set up standard idx=8 name=PAL-B
pvrusb2: Set up standard idx=9 name=PAL-B1
pvrusb2: Set up standard idx=10 name=PAL-G
pvrusb2: Set up standard idx=11 name=PAL-H
pvrusb2: Set up standard idx=12 name=PAL-I
pvrusb2: Set up standard idx=13 name=PAL-D
pvrusb2: Set up standard idx=14 name=PAL-D1
pvrusb2: Set up standard idx=15 name=PAL-K
pvrusb2: Set up standard idx=16 name=PAL-M
pvrusb2: Set up standard idx=17 name=PAL-N
pvrusb2: Set up standard idx=18 name=PAL-Nc
pvrusb2: Set up standard idx=19 name=PAL-60
pvrusb2: Set up standard idx=20 name=SECAM-B
pvrusb2: Set up standard idx=21 name=SECAM-D
pvrusb2: Set up standard idx=22 name=SECAM-G
pvrusb2: Set up standard idx=23 name=SECAM-H
pvrusb2: Set up standard idx=24 name=SECAM-K
pvrusb2: Set up standard idx=25 name=SECAM-K1
pvrusb2: Set up standard idx=26 name=SECAM-L
pvrusb2: Set up standard idx=27 name=SECAM-LC
pvrusb2: Initial video standard auto-selected to PAL-B/G
pvrusb2: Device initialization completed successfully.
pvrusb2: registered device video0 [mpeg]
usb 1-5: firmware: requesting v4l-cx2341x-enc.fw
cx25840 2-0044: changing video std to fmt 4
cx25840 2-0044: PLL regs = int: 15, frac: 2876158, post: 4
cx25840 2-0044: PLL = 108.000011 MHz
cx25840 2-0044: PLL/8 = 13.500001 MHz
cx25840 2-0044: ADC Sampling freq = 14.317384 MHz
cx25840 2-0044: Chroma sub-carrier freq = 4.433621 MHz
cx25840 2-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x0a8263
cx25840 2-0044: decoder set size 720x576 -> scale  0x0
cx25840 2-0044: decoder set video input 0, audio input 8
cx25840 2-0044: 0x0000 is not a valid video input!

//
// dmesg with patched cx25840
//
usb 1-5: new high speed USB device using ehci_hcd and address 16
usb 1-5: configuration #1 chosen from 1 choice
usb 1-5: USB disconnect, address 16
pvrusb2: Failed to submit write-control URB status=-19
pvrusb2: Device being rendered inoperable
pvrusb2: ***WARNING*** pvrusb2 device hardware appears to be jammed and I can't clear it.
pvrusb2: You might need to power cycle the pvrusb2 device in order to recover.
usbcore: registered new interface driver pvrusb2
pvrusb2: 20090509 (from www.isely.net):Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
usb 1-5: new high speed USB device using ehci_hcd and address 17
usb 1-5: configuration #1 chosen from 1 choice
pvrusb2: Automatic binding of ir_video has been disabled.
cx25840 2-0044: detecting cx25840 client on address 0x88
cx25840 2-0044: device_id = 0x8373
cx25840 2-0044: cx25837-23 found @ 0x88 (pvrusb2_a)
pvrusb2: Attached sub-driver cx25840
cx25840 2-0044: PLL regs = int: 15, frac: 2876158, post: 4
cx25840 2-0044: PLL = 108.000011 MHz
cx25840 2-0044: PLL/8 = 13.500001 MHz
cx25840 2-0044: ADC Sampling freq = 14.317384 MHz
cx25840 2-0044: Chroma sub-carrier freq = 3.579545 MHz
cx25840 2-0044: hblank 122, hactive 720, vblank 26, vactive 487, vblank656 26, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
cs5345 2-0011: chip found @ 0x22 (pvrusb2_a)
pvrusb2: Attached sub-driver cs5345
pvrusb2: Supported video standard(s) reported available in hardware: PAL-B/B1/D/D1/G/H/I/K/M/N/Nc/60;NTSC-M/
pvrusb2: Mapping standards mask=0xffffff (PAL-B/B1/D/D1/G/H/I/K/M/N/Nc/60;NTSC-M/Mj/443/Mk;SECAM-B/D/G/H/K/K1/L/LC)
pvrusb2: Setting up 28 unique standard(s)
pvrusb2: Set up standard idx=0 name=PAL-B/G
pvrusb2: Set up standard idx=1 name=PAL-D/K
pvrusb2: Set up standard idx=2 name=SECAM-B/G
pvrusb2: Set up standard idx=3 name=SECAM-D/K
pvrusb2: Set up standard idx=4 name=NTSC-M
pvrusb2: Set up standard idx=5 name=NTSC-Mj
pvrusb2: Set up standard idx=6 name=NTSC-443
pvrusb2: Set up standard idx=7 name=NTSC-Mk
pvrusb2: Set up standard idx=8 name=PAL-B
pvrusb2: Set up standard idx=9 name=PAL-B1
pvrusb2: Set up standard idx=10 name=PAL-G
pvrusb2: Set up standard idx=11 name=PAL-H
pvrusb2: Set up standard idx=12 name=PAL-I
pvrusb2: Set up standard idx=13 name=PAL-D
pvrusb2: Set up standard idx=14 name=PAL-D1
pvrusb2: Set up standard idx=15 name=PAL-K
pvrusb2: Set up standard idx=16 name=PAL-M
pvrusb2: Set up standard idx=17 name=PAL-N
pvrusb2: Set up standard idx=18 name=PAL-Nc
pvrusb2: Set up standard idx=19 name=PAL-60
pvrusb2: Set up standard idx=20 name=SECAM-B
pvrusb2: Set up standard idx=21 name=SECAM-D
pvrusb2: Set up standard idx=22 name=SECAM-G
pvrusb2: Set up standard idx=23 name=SECAM-H
pvrusb2: Set up standard idx=24 name=SECAM-K
pvrusb2: Set up standard idx=25 name=SECAM-K1
pvrusb2: Set up standard idx=26 name=SECAM-L
pvrusb2: Set up standard idx=27 name=SECAM-LC
pvrusb2: Initial video standard auto-selected to PAL-B/G
pvrusb2: Device initialization completed successfully.
pvrusb2: registered device video0 [mpeg]
usb 1-5: firmware: requesting v4l-cx2341x-enc.fw
cx25840 2-0044: changing video std to fmt 4
cx25840 2-0044: PLL regs = int: 15, frac: 2876158, post: 4
cx25840 2-0044: PLL = 108.000011 MHz
cx25840 2-0044: PLL/8 = 13.500001 MHz
cx25840 2-0044: ADC Sampling freq = 14.317384 MHz
cx25840 2-0044: Chroma sub-carrier freq = 4.433621 MHz
cx25840 2-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x0a8263
cx25840 2-0044: decoder set size 720x576 -> scale  0x0
cx25840 2-0044: decoder set video input 0, audio input 0
cx25840 2-0044: 0x0000 is not a valid video input!



More information about the pvrusb2 mailing list