Skip to contentSkip to conversation

Hauppauge WinTV USB Model 566 PAL-I

DISCUSSION Chris Grove 2 participants 14 messages Nov 28, 2008 – Dec 3, 2008 2 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

Any ideas please, and if someone has already asked this, sorry but I'm new to the list and haven't worked out how to search the archives yet.

Thanks in advance, Chris.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw

Sorry to bother you again, but has anybody had any luck with my tuner problems?? Thanks in advance, Chris.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Chris Grove
Sent: 28 November 2008 11:56
To: [email protected]
Subject: Hauppauge WinTV USB Model 566 PAL-I

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

Any ideas please, and if someone has already asked this, sorry but I'm new to the list and haven't worked out how to search the archives yet.

Thanks in advance, Chris.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#2 lore raw
In reply to Chris Grove

Hi Chris,

Quoted 68 lines · Chris Grove

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

Quoted 7 lines

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

please try a modprobe tda9887 debug=1 to see some debug messages where it fails. Proceed like this:
modprobe tda9887 debug=1
modprobe saa7115
modprobe usbvision
Then, plug-in your device.
Geeksbox is based on mplayer, I tested OK mplayer but with some tuning like this:
mplayer -tv driver=v4l2:width=320:height=240:norm=SECAM:outfmt=yuy2:channels=21-F2 tv://

Cheers,
Thierry

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#3 lore raw

Hi,
Ok I've tried it and it works, sort of. I've managed to get a picture that works, the problem now is that the old bug of white lines on the display and noise on the audio is back. Any ideas if there is a tweak or something I can use to fix it please??

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 29 November 2008 21:02
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Hi Chris,

Quoted 71 lines · Chris Grove

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

Quoted 7 lines

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

please try a modprobe tda9887 debug=1 to see some debug messages where it fails.
Proceed like this:
modprobe tda9887 debug=1
modprobe saa7115
modprobe usbvision
Then, plug-in your device.
Geeksbox is based on mplayer, I tested OK mplayer but with some tuning like this:
mplayer -tv driver=v4l2:width=320:height=240:norm=SECAM:outfmt=yuy2:channels=21-F2 tv://

Cheers,
Thierry

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#4 lore raw
Quoted 6 lines · Chris Grove

Hi,
Ok I've tried it and it works, sort of. I've managed to get a picture that works, the problem now is that the old bug of white lines on the display and noise on the audio is back. Any ideas if there is a tweak or something I can use to fix it please??

Do you use external audio or the audio via usb?
Please use the external audio, much better sound quality (44KHz whereas 16KHz via USB). What are the white lines on the display? Interferences, constant lines, other?

Quoted 104 lines

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 29 November 2008 21:02
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Hi Chris,

Quoted 71 lines · Chris Grove

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

Quoted 7 lines

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

please try a modprobe tda9887 debug=1 to see some debug messages where it fails.
Proceed like this:
modprobe tda9887 debug=1
modprobe saa7115
modprobe usbvision
Then, plug-in your device.
Geeksbox is based on mplayer, I tested OK mplayer but with some tuning like this:
mplayer -tv driver=v4l2:width=320:height=240:norm=SECAM:outfmt=yuy2:channels=21-F2 tv://

Cheers,
Thierry

Signature · 12 lines
                   ,
                   }\      °
           _    .-`  `-.  o
           \`'./     (o)\
            ) >   )))    } O
           /_.'\     / \/
       jgs      `'---'=`     http://thierry.merle.free.fr/

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#5 lore raw

Hi,
Yes I am using the external audio, mainly because I haven't got a clue how to get the audio via USB to work. If you've got any pointers on that, that'll be really cool I'm not bothered about the 16KHz sound. The white lines on the picture are constant but move up and down the screen. It very much reminds me of an old TV fault called sound on vision where the video and audio carriers aren't separated properly.

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 15:11
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 6 lines · Chris Grove

Hi,
Ok I've tried it and it works, sort of. I've managed to get a picture that works, the problem now is that the old bug of white lines on the display and noise on the audio is back. Any ideas if there is a tweak or something I can use to fix it please??

Do you use external audio or the audio via usb?
Please use the external audio, much better sound quality (44KHz whereas 16KHz via USB).
What are the white lines on the display? Interferences, constant lines, other?

Quoted 106 lines

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 29 November 2008 21:02
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Hi Chris,

Quoted 71 lines · Chris Grove

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

Quoted 7 lines

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

please try a modprobe tda9887 debug=1 to see some debug messages where it fails.
Proceed like this:
modprobe tda9887 debug=1
modprobe saa7115
modprobe usbvision
Then, plug-in your device.
Geeksbox is based on mplayer, I tested OK mplayer but with some tuning like
this:
mplayer -tv driver=v4l2:width=320:height=240:norm=SECAM:outfmt=yuy2:channels=21-F2 tv://

Cheers,
Thierry

Signature · 13 lines
                   ,
                   }\      °
           _    .-`  `-.  o
           \`'./     (o)\
            ) >   )))    } O
           /_.'\     / \/
       jgs      `'---'=`     http://thierry.merle.free.fr/


--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#6 lore raw

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in windows. Just thought that might help with a solution.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Chris Grove
Sent: 30 November 2008 15:44
To: 'Thierry Merle'
Cc: [email protected]
Subject: RE: Hauppauge WinTV USB Model 566 PAL-I

Hi,
Yes I am using the external audio, mainly because I haven't got a clue how to get the audio via USB to work. If you've got any pointers on that, that'll be really cool I'm not bothered about the 16KHz sound. The white lines on the picture are constant but move up and down the screen. It very much reminds me of an old TV fault called sound on vision where the video and audio carriers aren't separated properly.

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 15:11
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 6 lines · Chris Grove

Hi,
Ok I've tried it and it works, sort of. I've managed to get a picture that works, the problem now is that the old bug of white lines on the display and noise on the audio is back. Any ideas if there is a tweak or something I can use to fix it please??

Do you use external audio or the audio via usb?
Please use the external audio, much better sound quality (44KHz whereas 16KHz via USB).
What are the white lines on the display? Interferences, constant lines, other?

Quoted 106 lines

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 29 November 2008 21:02
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Hi Chris,

Quoted 71 lines · Chris Grove

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

Quoted 7 lines

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

please try a modprobe tda9887 debug=1 to see some debug messages where it fails.
Proceed like this:
modprobe tda9887 debug=1
modprobe saa7115
modprobe usbvision
Then, plug-in your device.
Geeksbox is based on mplayer, I tested OK mplayer but with some tuning like
this:
mplayer -tv driver=v4l2:width=320:height=240:norm=SECAM:outfmt=yuy2:channels=21-F2 tv://

Cheers,
Thierry

Signature · 19 lines
                   ,
                   }\      °
           _    .-`  `-.  o
           \`'./     (o)\
            ) >   )))    } O
           /_.'\     / \/
       jgs      `'---'=`     http://thierry.merle.free.fr/


--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list


--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#7 lore raw
Quoted 4 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in windows. Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected. I suspect a tda9887/saa7113 interface problem but just my intuition.
As it works under windows, can you do an usbsnoop (http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Quoted 144 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Chris Grove
Sent: 30 November 2008 15:44
To: 'Thierry Merle'
Cc: [email protected]
Subject: RE: Hauppauge WinTV USB Model 566 PAL-I

Hi,
Yes I am using the external audio, mainly because I haven't got a clue how to get the audio via USB to work. If you've got any pointers on that, that'll be really cool I'm not bothered about the 16KHz sound. The white lines on the picture are constant but move up and down the screen. It very much reminds me of an old TV fault called sound on vision where the video and audio carriers aren't separated properly.

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 15:11
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 6 lines · Chris Grove

Hi,
Ok I've tried it and it works, sort of. I've managed to get a picture that works, the problem now is that the old bug of white lines on the display and noise on the audio is back. Any ideas if there is a tweak or something I can use to fix it please??

Do you use external audio or the audio via usb?
Please use the external audio, much better sound quality (44KHz whereas 16KHz via USB).
What are the white lines on the display? Interferences, constant lines, other?

Quoted 106 lines

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 29 November 2008 21:02
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Hi Chris,

Quoted 71 lines · Chris Grove

Hi there, I've got one of these cards but I'm having trouble getting it to work. The problem is that it loads ok, but when I try to use it, it turns out that the tuner module has loaded the wrong tuner type. Instead of using tuner type 1, a PAL-I tuner which mine is, it selects a PAL-BG tuner. Now I've tried using type=1 in the modprobe line but it turns out that, that is no longer supported.

System Info.

I'm using GeexBox which is built on linux-2.6.21.3 kernel.

The Init.d script is:

#!/bin/sh

#

# setup tv cards

#

# runlevels: geexbox, debug, install

echo "### Setting up TV card ###"

modprobe tuner pal=I

modprobe tveeprom

modprobe usbvision

modprobe saa7115

echo -n "" > /var/tvcard

exit 0

And the output from dmesg is:

<6>usbvision_probe: Hauppauge WinTv-USB II (PAL) MODEL 566 found

<6>USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]

<6>USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)

<6>usbcore: registered new interface driver usbvision

<6>USBVision USB Video Device Driver for Linux : 0.9.9

<6>eth0: Media Link On 100mbps full-duplex

<6>tuner 1-0042: chip found @ 0x84 (usbvision #0)

<6>tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner)

<6>tuner 1-0061: chip found @ 0xc2 (usbvision #0)

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

Quoted 7 lines

<6>tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))

<6>saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)

<6>tda9887 1-0042: i2c i/o error: rc == -121 (should be 4)

please try a modprobe tda9887 debug=1 to see some debug messages where it fails.
Proceed like this:
modprobe tda9887 debug=1
modprobe saa7115
modprobe usbvision
Then, plug-in your device.
Geeksbox is based on mplayer, I tested OK mplayer but with some tuning like
this:
mplayer -tv driver=v4l2:width=320:height=240:norm=SECAM:outfmt=yuy2:channels=21-F2 tv://

Cheers,
Thierry

Signature · 12 lines
                   ,
                   }\      °
           _    .-`  `-.  o
           \`'./     (o)\
            ) >   )))    } O
           /_.'\     / \/
       jgs      `'---'=`     http://thierry.merle.free.fr/

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#10 lore raw
In reply to a message not in the archive

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 01 December 2008 21:06
To: Chris Grove
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 28 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 21:13
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 3 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in

windows.

Quoted 2 lines

Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected.
I suspect a tda9887/saa7113 interface problem but just my intuition. As it works under windows, can you do an usbsnoop
(http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

Quoted 8 lines

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Hi, yea sorry about that, Outlook always starts at the top of the message. Anyway, I've used USB Snoop and ended up with a 45Mb file. Now I'm guessing you don't need all of it so there is a portion of it below my answer. As for the audio-over-usb, yes please, I wouldn't mind a look at the code if you can find it. Anyway here's that sample, Thanks for the

help.
I found the audio-over-usb code (see attached). The code may need some cleanups and can cause kernel oops.
The USB snoops need to be analyzed. Can you put it on a site so that I can download it?
Nevertheless you can read what I wrote when I was programming the audio-over-usb driver here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=82
The page was translated to English using google translate so there may be some problems of understanding :) For some more information about the usbvision chip, I wrote a page here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=68

As a first step, I will look at the register accesses. They begin with a line like this:
00000000: 00000000: 42 33 00 00
With the datasheet I can understand what the windows driver is setting.

[SNIP]

Quoted 11 lines

-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = 8ac23cfc [endpoint 0x00000001]
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = a1745938
TransferBufferMDL = 00000000

    00000000: 30
  UrbLink              = 00000000
  SetupPacket          =
    00000000: 42 33 00 00 07 00 01 00

For example here you have a register programming #07 (SER_MODE from the NT1004 datasheet).
Value is 0x30 (TransferBufferMDL line). Means MODE=3.
This is just for the example, this one is not interesting. There are other registers more interesting but I should have the complete log to find out.

You may have sent me the sufficient data to investigate but in doubt give me the complete logs.
Of course you can look at the problem if you are interested.

Thanks
Thierry

Hi Thierry, Thanks for the links to you code, I'll download it and have a look. Here's hoping I can work out what's going on in it. I've uploaded the whole of the log to my skydrive, the link is below.
http://cid-19380f9184511dde.skydrive.live.com/browse.aspx/Public
To be honest I'm only a learner when it comes to linux and c++ programming, I'm more of a basic programmer so I need all the help I can get my hands on. Thanks in advance for all your help. Chris.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#11 lore raw
Quoted 88 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 01 December 2008 21:06
To: Chris Grove
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 28 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 21:13
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 3 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in

windows.

Quoted 2 lines

Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected.
I suspect a tda9887/saa7113 interface problem but just my intuition. As it works under windows, can you do an usbsnoop
(http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

Quoted 8 lines

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Hi, yea sorry about that, Outlook always starts at the top of the message. Anyway, I've used USB Snoop and ended up with a 45Mb file. Now I'm guessing you don't need all of it so there is a portion of it below my answer. As for the audio-over-usb, yes please, I wouldn't mind a look at the code if you can find it. Anyway here's that sample, Thanks for the

help.
I found the audio-over-usb code (see attached). The code may need some cleanups and can cause kernel oops.
The USB snoops need to be analyzed. Can you put it on a site so that I can download it?
Nevertheless you can read what I wrote when I was programming the audio-over-usb driver here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=82
The page was translated to English using google translate so there may be some problems of understanding :) For some more information about the usbvision chip, I wrote a page here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=68

As a first step, I will look at the register accesses. They begin with a line like this:
00000000: 00000000: 42 33 00 00
With the datasheet I can understand what the windows driver is setting.

[SNIP]

Quoted 11 lines

-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = 8ac23cfc [endpoint 0x00000001]
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = a1745938
TransferBufferMDL = 00000000

    00000000: 30
  UrbLink              = 00000000
  SetupPacket          =
    00000000: 42 33 00 00 07 00 01 00

For example here you have a register programming #07 (SER_MODE from the NT1004 datasheet).
Value is 0x30 (TransferBufferMDL line). Means MODE=3.
This is just for the example, this one is not interesting. There are other registers more interesting but I should have the complete log to find out.

You may have sent me the sufficient data to investigate but in doubt give me the complete logs.
Of course you can look at the problem if you are interested.

Thanks
Thierry

Quoted 9 lines

Hi Thierry, Thanks for the links to you code, I'll download it and have a look. Here's hoping I can work out what's going on in it. I've uploaded the whole of the log to my skydrive, the link is below.
http://cid-19380f9184511dde.skydrive.live.com/browse.aspx/Public
To be honest I'm only a learner when it comes to linux and c++ programming, I'm more of a basic programmer so I need all the help I can get my hands on. Thanks in advance for all your help. Chris.

Sorry I forgot to attach the patch of audio-over-usb :)
It applies on the v4l-dvb tree and creates an optional module for audio. Thierry

# HG changeset patch
# User [email protected]
# Date 1187638538 -7200
# Node ID 543ee2df05e084be0142b9b290807a4d6c1eba59 # Parent b2e361a866a551424a7a71772347f2c1ca9990bd
usbvision: audio over USB

From: Thierry Merle <[email protected]>

This enables the audio over USB for usbvision that are capable to transmit the audio data over the USB cable, to get rid of the line-in audio cable. The quality is poor (16KHz stereo) compared to the line-in audio (44KHz stereo).

linux/drivers/media/video/usbvision/Kconfig +10 -0
diff -r b2e361a866a5 -r 543ee2df05e0 linux/drivers/media/video/usbvision/Kconfig
@@ -10,3 +10,13 @@ config VIDEO_USBVISION
 
 	  To compile this driver as a module, choose M here: the
 	  module will be called usbvision.
+
+config VIDEO_USBVISION_AUDIO
+	tristate "Audio support for USB video devices based on Nogatech NT1003/1004/1005"
+	depends on USB && I2C
+	select VIDEO_USBVISION
+	---help---
+	  This is an audio driver for usbvision based usb video devices.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called usbvision-audio.
linux/drivers/media/video/usbvision/Makefile +1 -0
diff -r b2e361a866a5 -r 543ee2df05e0 linux/drivers/media/video/usbvision/Makefile
@@ -1,5 +1,6 @@ usbvision-objs  := usbvision-core.o usbv
 usbvision-objs  := usbvision-core.o usbvision-video.o usbvision-i2c.o usbvision-cards.o
 
 obj-$(CONFIG_VIDEO_USBVISION) += usbvision.o
+obj-$(CONFIG_VIDEO_USBVISION_AUDIO) += usbvision-audio.o
 
 EXTRA_CFLAGS += -Idrivers/media/video
linux/drivers/media/video/usbvision/usbvision-audio.c new file +447 -0

447 lines not on this page · raw message

linux/drivers/media/video/usbvision/usbvision-core.c +3 -0
diff -r b2e361a866a5 -r 543ee2df05e0 linux/drivers/media/video/usbvision/usbvision-core.c
@@ -2706,6 +2706,9 @@ int usbvision_muxsel(struct usb_usbvisio
 	return 0;
 }
 
+
+EXPORT_SYMBOL(usbvision_write_reg);
+
 /*
  * Overrides for Emacs so that we follow Linus's tabbing style.
  * ---------------------------------------------------------------------------
linux/drivers/media/video/usbvision/usbvision-video.c +78 -1

151 lines not on this page · raw message

linux/drivers/media/video/usbvision/usbvision.h +71 -0

125 lines not on this page · raw message

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#12 lore raw
In reply to Chris Grove
Quoted 88 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 01 December 2008 21:06
To: Chris Grove
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 28 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 21:13
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 3 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in

windows.

Quoted 2 lines

Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected.
I suspect a tda9887/saa7113 interface problem but just my intuition. As it works under windows, can you do an usbsnoop
(http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

Quoted 8 lines

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Hi, yea sorry about that, Outlook always starts at the top of the message. Anyway, I've used USB Snoop and ended up with a 45Mb file. Now I'm guessing you don't need all of it so there is a portion of it below my answer. As for the audio-over-usb, yes please, I wouldn't mind a look at the code if you can find it. Anyway here's that sample, Thanks for the

help.
I found the audio-over-usb code (see attached). The code may need some cleanups and can cause kernel oops.
The USB snoops need to be analyzed. Can you put it on a site so that I can download it?
Nevertheless you can read what I wrote when I was programming the audio-over-usb driver here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=82
The page was translated to English using google translate so there may be some problems of understanding :) For some more information about the usbvision chip, I wrote a page here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=68

As a first step, I will look at the register accesses. They begin with a line like this:
00000000: 00000000: 42 33 00 00
With the datasheet I can understand what the windows driver is setting.

[SNIP]

Quoted 11 lines

-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = 8ac23cfc [endpoint 0x00000001]
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = a1745938
TransferBufferMDL = 00000000

    00000000: 30
  UrbLink              = 00000000
  SetupPacket          =
    00000000: 42 33 00 00 07 00 01 00

For example here you have a register programming #07 (SER_MODE from the NT1004 datasheet).
Value is 0x30 (TransferBufferMDL line). Means MODE=3.
This is just for the example, this one is not interesting. There are other registers more interesting but I should have the complete log to find out.

You may have sent me the sufficient data to investigate but in doubt give me the complete logs.
Of course you can look at the problem if you are interested.

Thanks
Thierry

Quoted 9 lines

Hi Thierry, Thanks for the links to you code, I'll download it and have a look. Here's hoping I can work out what's going on in it. I've uploaded the whole of the log to my skydrive, the link is below.
http://cid-19380f9184511dde.skydrive.live.com/browse.aspx/Public
To be honest I'm only a learner when it comes to linux and c++ programming, I'm more of a basic programmer so I need all the help I can get my hands on. Thanks in advance for all your help. Chris.

OK I have made a quick and dirty perl script that parses the usb snoop file and outputs register programming values.
Usage: usbvision_snoop_extract.pl <UsbSnoop.log

A line is interesting:
Command=USBVISION_LXSIZE_I[00 08 00] value=c0 02 20 01 06 00 01 00
Tells that you must set the X offset to 0x0006 and Y offset 0x0001 (data are swapped). Please try modprobe usbvision adjust_X_Offset=6 adjust_Y_Offset=1 Thierry

#!/usr/bin/perl -w
#

$register[0]= "USBVISION_PWR_REG";
$register[0x01]= "USBVISION_CONFIG_REG";
$register[0x02] = "USBVISION_ADRS_REG";
$register[0x03] = "USBVISION_ALTER_REG";
$register[0x04] = "USBVISION_FORCE_ALTER_REG";
$register[0x05] = "USBVISION_STATUS_REG";
$register[0x06] = "USBVISION_IOPIN_REG";
$register[0x07] = "USBVISION_SER_MODE";
$register[0x08] = "USBVISION_SER_ADRS";
$register[0x09] = "USBVISION_SER_CONT";
$register[0x0A] = "USBVISION_SER_DAT1";
$register[0x0B] = "USBVISION_SER_DAT2";
$register[0x0C] = "USBVISION_SER_DAT3";
$register[0x0D] = "USBVISION_SER_DAT4";
$register[0x0E] = "USBVISION_EE_DATA";
$register[0x0F] = "USBVISION_EE_LSBAD";
$register[0x10] = "USBVISION_EE_CONT";
$register[0x12] = "USBVISION_DRM_CONT";
$register[0x13] = "USBVISION_DRM_PRM1";
$register[0x14] = "USBVISION_DRM_PRM2";
$register[0x15] = "USBVISION_DRM_PRM3";
$register[0x16] = "USBVISION_DRM_PRM4";
$register[0x17] = "USBVISION_DRM_PRM5";
$register[0x18] = "USBVISION_DRM_PRM6";
$register[0x19] = "USBVISION_DRM_PRM7";
$register[0x1A] = "USBVISION_DRM_PRM8";
$register[0x1B] = "USBVISION_VIN_REG1";
$register[0x1C] = "USBVISION_VIN_REG2";
$register[0x1D] = "USBVISION_LXSIZE_I";
$register[0x1E] = "USBVISION_MXSIZE_I";
$register[0x1F] = "USBVISION_LYSIZE_I";
$register[0x20] = "USBVISION_MYSIZE_I";
$register[0x21] = "USBVISION_LX_OFFST";
$register[0x22] = "USBVISION_MX_OFFST";
$register[0x23] = "USBVISION_LY_OFFST";
$register[0x24] = "USBVISION_MY_OFFST";
$register[0x25] = "USBVISION_FRM_RATE";
$register[0x26] = "USBVISION_LXSIZE_O";
$register[0x27] = "USBVISION_MXSIZE_O";
$register[0x28] = "USBVISION_LYSIZE_O";
$register[0x29] = "USBVISION_MYSIZE_O";
$register[0x2A] = "USBVISION_FILT_CONT";
$register[0x2B] = "USBVISION_VO_MODE";
$register[0x2C] = "USBVISION_INTRA_CYC";
$register[0x2D] = "USBVISION_STRIP_SZ";
$register[0x2E] = "USBVISION_FORCE_INTRA";
$register[0x2F] = "USBVISION_FORCE_UP";
$register[0x30] = "USBVISION_BUF_THR";
$register[0x31] = "USBVISION_DVI_YUV";
$register[0x32] = "USBVISION_AUDIO_CONT";
$register[0x33] = "USBVISION_AUD_PK_LEN";
$register[0x34] = "USBVISION_BLK_PK_LEN";
$register[0x38] = "USBVISION_PCM_THR1";
$register[0x39] = "USBVISION_PCM_THR2";
$register[0x3A] = "USBVISION_DIST_THR_L";
$register[0x3B] = "USBVISION_DIST_THR_H";
$register[0x3C] = "USBVISION_MAX_DIST_L";
$register[0x3D] = "USBVISION_MAX_DIST_H";

while (<STDIN>) {
    if(/\s+TransferBufferMDL.*$/)
    {
	    $newTag=1;
    }
    if(/\s*00000000: 42 33 00 00\s+(\w+)\s+(.+)$/)
    {
	    printf("Command=%s[%s] value=%s\n",$register[hex($1)],$2,$value); $newTag=0;
    }
    else {
	if(/\s*00000000:\s*(.+)$/)
	{
	    $value=$1;
	}
    }
}

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#13 lore raw

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 02 December 2008 22:00
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 6 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 01 December 2008 21:06
To: Chris Grove
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 33 lines
Quoted 32 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 21:13
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 3 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in

windows.

Quoted 2 lines

Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected.
I suspect a tda9887/saa7113 interface problem but just my intuition. As it works under windows, can you do an usbsnoop
(http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Hi, yea sorry about that, Outlook always starts at the top of the

message.

Quoted 51 lines
Quoted 5 lines

Anyway, I've used USB Snoop and ended up with a 45Mb file. Now I'm guessing you don't need all of it so there is a portion of it below my answer. As for the audio-over-usb, yes please, I wouldn't mind a look at the code if you can find it. Anyway here's that sample, Thanks for the

help.
I found the audio-over-usb code (see attached). The code may need some cleanups and can cause kernel oops.
The USB snoops need to be analyzed. Can you put it on a site so that I can download it?
Nevertheless you can read what I wrote when I was programming the audio-over-usb driver here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=82
The page was translated to English using google translate so there may be some problems of understanding :) For some more information about the usbvision chip, I wrote a page here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=68

As a first step, I will look at the register accesses. They begin with a line like this:
00000000: 00000000: 42 33 00 00
With the datasheet I can understand what the windows driver is setting.

[SNIP]

Quoted 11 lines

-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = 8ac23cfc [endpoint 0x00000001]
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = a1745938
TransferBufferMDL = 00000000

    00000000: 30
  UrbLink              = 00000000
  SetupPacket          =
    00000000: 42 33 00 00 07 00 01 00

For example here you have a register programming #07 (SER_MODE from the
NT1004 datasheet).
Value is 0x30 (TransferBufferMDL line). Means MODE=3. This is just for the example, this one is not interesting. There are other registers more interesting but I should have the complete log to find out.

You may have sent me the sufficient data to investigate but in doubt give me the complete logs.
Of course you can look at the problem if you are interested.

Thanks
Thierry

Quoted 6 lines

Hi Thierry, Thanks for the links to you code, I'll download it and have a look. Here's hoping I can work out what's going on in it. I've uploaded the whole of the log to my skydrive, the link is below.
http://cid-19380f9184511dde.skydrive.live.com/browse.aspx/Public
To be honest I'm only a learner when it comes to linux and c++ programming, I'm more of a basic programmer so I need all the help I can

get my hands on.

Quoted 3 lines

Thanks in advance for all your help. Chris.

OK I have made a quick and dirty perl script that parses the usb snoop file and outputs register programming values.
Usage: usbvision_snoop_extract.pl <UsbSnoop.log

A line is interesting:
Command=USBVISION_LXSIZE_I[00 08 00] value=c0 02 20 01 06 00 01 00 Tells that you must set the X offset to 0x0006 and Y offset 0x0001 (data are swapped).
Please try modprobe usbvision adjust_X_Offset=6 adjust_Y_Offset=1 Thierry

Hi Thierry
I've tried that line, but it doesn't load usbvision. It doesn't seem to like the parameters. Is there some way using the CustomCard option?? Thanks Chris

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#14 lore raw
Quoted 119 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 02 December 2008 22:00
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 6 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 01 December 2008 21:06
To: Chris Grove
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 33 lines
Quoted 32 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 21:13
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 3 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in

windows.

Quoted 2 lines

Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected.
I suspect a tda9887/saa7113 interface problem but just my intuition. As it works under windows, can you do an usbsnoop
(http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Hi, yea sorry about that, Outlook always starts at the top of the

message.

Quoted 51 lines
Quoted 5 lines

Anyway, I've used USB Snoop and ended up with a 45Mb file. Now I'm guessing you don't need all of it so there is a portion of it below my answer. As for the audio-over-usb, yes please, I wouldn't mind a look at the code if you can find it. Anyway here's that sample, Thanks for the

help.
I found the audio-over-usb code (see attached). The code may need some cleanups and can cause kernel oops.
The USB snoops need to be analyzed. Can you put it on a site so that I can download it?
Nevertheless you can read what I wrote when I was programming the audio-over-usb driver here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=82
The page was translated to English using google translate so there may be some problems of understanding :) For some more information about the usbvision chip, I wrote a page here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=68

As a first step, I will look at the register accesses. They begin with a line like this:
00000000: 00000000: 42 33 00 00
With the datasheet I can understand what the windows driver is setting.

[SNIP]

Quoted 11 lines

-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = 8ac23cfc [endpoint 0x00000001]
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = a1745938
TransferBufferMDL = 00000000

    00000000: 30
  UrbLink              = 00000000
  SetupPacket          =
    00000000: 42 33 00 00 07 00 01 00

For example here you have a register programming #07 (SER_MODE from the
NT1004 datasheet).
Value is 0x30 (TransferBufferMDL line). Means MODE=3. This is just for the example, this one is not interesting. There are other registers more interesting but I should have the complete log to find out.

You may have sent me the sufficient data to investigate but in doubt give me the complete logs.
Of course you can look at the problem if you are interested.

Thanks
Thierry

Quoted 6 lines

Hi Thierry, Thanks for the links to you code, I'll download it and have a look. Here's hoping I can work out what's going on in it. I've uploaded the whole of the log to my skydrive, the link is below.
http://cid-19380f9184511dde.skydrive.live.com/browse.aspx/Public
To be honest I'm only a learner when it comes to linux and c++ programming, I'm more of a basic programmer so I need all the help I can

get my hands on.

Quoted 3 lines

Thanks in advance for all your help. Chris.

OK I have made a quick and dirty perl script that parses the usb snoop file and outputs register programming values.
Usage: usbvision_snoop_extract.pl <UsbSnoop.log

A line is interesting:
Command=USBVISION_LXSIZE_I[00 08 00] value=c0 02 20 01 06 00 01 00 Tells that you must set the X offset to 0x0006 and Y offset 0x0001 (data are swapped).
Please try modprobe usbvision adjust_X_Offset=6 adjust_Y_Offset=1 Thierry

Quoted 6 lines

Hi Thierry
I've tried that line, but it doesn't load usbvision. It doesn't seem to like the parameters. Is there some way using the CustomCard option?? Thanks Chris

Argh yes, linux-2.6.21.3 is a quite old kernel; these options were not yet implemented.
Can you run a more recent version of Geexbox? I saw on their site that the latest version includes 2.6.27.4 kernel. Otherwise you will need a recompilation of the driver.
Thierry

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#15 lore raw

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 03 December 2008 06:26
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 121 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 02 December 2008 22:00
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 6 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 01 December 2008 21:06
To: Chris Grove
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 33 lines
Quoted 32 lines · Chris Grove

-----Original Message-----
From: Thierry Merle [mailto:[email protected]]
Sent: 30 November 2008 21:13
To: Chris Grove
Cc: [email protected]
Subject: Re: Hauppauge WinTV USB Model 566 PAL-I

Quoted 3 lines · Chris Grove

A further, slightly interesting development is that the s-video input works fine with no interference at all, also the TV picture in fine in

windows.

Quoted 2 lines

Just thought that might help with a solution.

Right, this helps. We can deduce this does not come from the decompression algorithm since it is the same whether the TV input or the s-video input is selected.
I suspect a tda9887/saa7113 interface problem but just my intuition. As it works under windows, can you do an usbsnoop
(http://www.linuxtv.org/v4lwiki/index.php/Usbsnoop)
Just open the TV application, let it tune the channel and stop the application immediately in order to have a minimal capture file.

For the audio over USB, in the ancient times I developed a audio extension for usbvision. I don't even know what I did from it. I can look for it if you want. I will need to sweep the dust (compilation errors and so on) but should work.

P.S.: this thread is really hard to follow now... please reply under my answer so that we will be able to read that again :)

Hi, yea sorry about that, Outlook always starts at the top of the

message.

Quoted 51 lines
Quoted 5 lines

Anyway, I've used USB Snoop and ended up with a 45Mb file. Now I'm guessing you don't need all of it so there is a portion of it below my answer. As for the audio-over-usb, yes please, I wouldn't mind a look at the code if you can find it. Anyway here's that sample, Thanks for the

help.
I found the audio-over-usb code (see attached). The code may need some cleanups and can cause kernel oops.
The USB snoops need to be analyzed. Can you put it on a site so that I can download it?
Nevertheless you can read what I wrote when I was programming the audio-over-usb driver here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=82
The page was translated to English using google translate so there may be some problems of understanding :) For some more information about the usbvision chip, I wrote a page here:
http://thierry.merle.free.fr/articles.php?lng=en&pg=68

As a first step, I will look at the register accesses. They begin with a line like this:
00000000: 00000000: 42 33 00 00
With the datasheet I can understand what the windows driver is setting.

[SNIP]

Quoted 11 lines

-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = 8ac23cfc [endpoint 0x00000001]
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = a1745938
TransferBufferMDL = 00000000

    00000000: 30
  UrbLink              = 00000000
  SetupPacket          =
    00000000: 42 33 00 00 07 00 01 00

For example here you have a register programming #07 (SER_MODE from the
NT1004 datasheet).
Value is 0x30 (TransferBufferMDL line). Means MODE=3. This is just for the example, this one is not interesting. There are other registers more interesting but I should have the complete log to find out.

You may have sent me the sufficient data to investigate but in doubt give me the complete logs.
Of course you can look at the problem if you are interested.

Thanks
Thierry

Quoted 7 lines

Hi Thierry, Thanks for the links to you code, I'll download it and have a look. Here's hoping I can work out what's going on in it. I've uploaded the whole of the log to my skydrive, the link is below.
http://cid-19380f9184511dde.skydrive.live.com/browse.aspx/Public
To be honest I'm only a learner when it comes to linux and c++ programming, I'm more of a basic programmer so I need all the help I can

get my hands on.

Quoted 3 lines

Thanks in advance for all your help. Chris.

OK I have made a quick and dirty perl script that parses the usb snoop file and outputs register programming values.
Usage: usbvision_snoop_extract.pl <UsbSnoop.log

A line is interesting:
Command=USBVISION_LXSIZE_I[00 08 00] value=c0 02 20 01 06 00 01 00 Tells that you must set the X offset to 0x0006 and Y offset 0x0001 (data are swapped).
Please try modprobe usbvision adjust_X_Offset=6 adjust_Y_Offset=1 Thierry

Quoted 6 lines

Hi Thierry
I've tried that line, but it doesn't load usbvision. It doesn't seem to like the parameters. Is there some way using the CustomCard option?? Thanks Chris

Argh yes, linux-2.6.21.3 is a quite old kernel; these options were not yet implemented.
Can you run a more recent version of Geexbox? I saw on their site that the latest version includes 2.6.27.4 kernel.
Otherwise you will need a recompilation of the driver.
Thierry

Eeek, I was trying not to upgrade to the next version of Geexbox as it still has many bugs and I don't really want to add X.org as I'm trying to keep processor down to a minimum. Recompiling the drivers sounds better as I've already managed to recompile the kernel a few times. Is there any chance you could give me instructions on upgrading the driver please?? I'm guessing it's not as easy as just copying the sources into the Usbvision folder, although I might be wrong.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list