LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2005, 03:44 AM   #1
takisd
Member
 
Registered: Dec 2003
Posts: 39

Rep: Reputation: 15
tv card, bttv and cx88


hi all

just installed a tv card - winfast 2000xp. finally got it working with
the 2.6.11.7 kernel (has some updated drivers for the cx chipset on this
card). scanned ok and got all the local channels. picture and sound all
good (suprised i got it working at all).

couple of issues, perhaps someone has dealt with before.

i can't seem to get any colour out of it - all channels are b&w. tried
numerous module options as well as settings on tvtime to no avail.

second, dmesg is full of the cards output which just keeps going as
follows:

cx88[0]/0: AUD_STATUS: 0xfff2 [mono/no pilot] ctl=A2_AUTO_STEREO

...or similar
any way to turn this level of logging off for the card?? i tried
verbose=0 on the i2c module which i read may help - but didn't.

last issue with it is the radio function. it has fm radio output also
and works great. any application i use however (radio, gradio) can't
seem to turn it off. basically the only way to tun it off is to mute the
input sound setting which of course mutes the whole card, so if i go to
tv next i have no sound or amusingly both the radio and tv play at the
same time.

my bttv options are as follows:
pll=1 radio=1 card=34 tuner=5

i'm running debian testing/unstable.

any suggestions would be most appreciated.
thanks

Takis
 
Old 05-01-2005, 01:04 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: tv card, bttv and cx88

Quote:
Originally posted by takisd
hi all

just installed a tv card - winfast 2000xp. finally got it working with
the 2.6.11.7 kernel (has some updated drivers for the cx chipset on this
card). scanned ok and got all the local channels. picture and sound all
good (suprised i got it working at all).

couple of issues, perhaps someone has dealt with before.

i can't seem to get any colour out of it - all channels are b&w. tried
numerous module options as well as settings on tvtime to no avail.

second, dmesg is full of the cards output which just keeps going as
follows:

cx88[0]/0: AUD_STATUS: 0xfff2 [mono/no pilot] ctl=A2_AUTO_STEREO

...or similar
any way to turn this level of logging off for the card?? i tried
verbose=0 on the i2c module which i read may help - but didn't.

last issue with it is the radio function. it has fm radio output also
and works great. any application i use however (radio, gradio) can't
seem to turn it off. basically the only way to tun it off is to mute the
input sound setting which of course mutes the whole card, so if i go to
tv next i have no sound or amusingly both the radio and tv play at the
same time.

my bttv options are as follows:
pll=1 radio=1 card=34 tuner=5

i'm running debian testing/unstable.

any suggestions would be most appreciated.
thanks

Takis
Seems like you and I have the same card WinFast 2000 XP Deluxe?? and mine works perfectly. You do not need the CX88?? modules loaded at all for it. Try to rmmod all the modules related to the card both the CX88?? ones and the bttv plus tuner then modprobe bttv card=34 tuner=5 the tuner=5 being for a PAL TV signal I presume if you are in a country that uses NTSC then you want to use tuner=2 otherwise your tuner is being detected wrong and this could be causing the problem. Here is what it looks like in dmesg when loaded on my machine.

Code:
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
PCI: Found IRQ 9 for device 0000:00:09.0
PCI: Sharing IRQ 9 with 0000:00:09.1
PCI: Sharing IRQ 9 with 0000:00:0d.0
bttv0: Bt878 (rev 17) at 0000:00:09.0, irq: 9, latency: 64, mmio: 0xdcdfe000
bttv0: detected: Leadtek WinFast TV 2000 [card=34], PCI subsystem ID is 107d:6606
bttv0: using: Leadtek WinFast 2000/ WinFast 2000 XP [card=34,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00bf731f [init]
bttv0: using tuner=2
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
tuner: chip found at addr 0xc2 i2c-bus bt878 #0 [sw]
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by bt878 #0 [sw]
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: registered device radio0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: add subdevice "remote0"
lirc_dev: IR Remote Control driver registered, at major 61
lirc_gpio (-1): card type 0x22, id 0x6606107d
lirc_dev: lirc_register_plugin:sample_rate: 0
lirc_gpio (0): driver registered
For the cx88 problem in the boot messages you may want to add the module name to the hotplug blacklist to stop hotplug from even loading it to start with. If the modprobe suggestion works then you may want to consider adding something like this to the file /etc/init.d/bootmisc.sh to get it to load properly on boot.

Code:
## Leadtek WinFast TV2000 XP Deluxe for proper detection when loading
modprobe bttv card=34 tuner=2
 
Old 05-02-2005, 09:41 AM   #3
takisd
Member
 
Registered: Dec 2003
Posts: 39

Original Poster
Rep: Reputation: 15
hi

thanks for replying.

been fiddling with it some more.

i tried using the bttv driver alone and the device is just not available - no /dev/video created and tvtime (for example) complains at having no device (i'm using udev).

i then tinkered some more and found that loading the cx8800 module alone works - though it is still black and white (basically no change from my current predicament).

i loaded the bttv also after the cx8800 module with no change.

on the positive side, i did get rid of the debug messages with the following options in modules.conf:

options cx8800 vbi_debug=0
options cx88xx audio_debug=0 i2c_debug=0
options cx88-blackbird debug=0

the cx8800 and cx88xx were the main offenders and dmesg is clean again.
the cx88-blackbird is (i believe) a new addition to 2.6.11.7 and includes specific support for the cx2388x chip which this card has.

what kernel version are you running?? from what i've read, and indeed tried to date, its quite the spot of luck you got it working with bttv alone.

anyway... still digging...

thanks

Takis
 
Old 05-02-2005, 02:03 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by takisd
hi

thanks for replying.

been fiddling with it some more.

i tried using the bttv driver alone and the device is just not available - no /dev/video created and tvtime (for example) complains at having no device (i'm using udev).

i then tinkered some more and found that loading the cx8800 module alone works - though it is still black and white (basically no change from my current predicament).

i loaded the bttv also after the cx8800 module with no change.

on the positive side, i did get rid of the debug messages with the following options in modules.conf:

options cx8800 vbi_debug=0
options cx88xx audio_debug=0 i2c_debug=0
options cx88-blackbird debug=0

the cx8800 and cx88xx were the main offenders and dmesg is clean again.
the cx88-blackbird is (i believe) a new addition to 2.6.11.7 and includes specific support for which this card has.

what kernel version are you running?? from what i've read, and indeed tried to date, its quite the spot of luck you got it working with bttv alone.

anyway... still digging...

thanks

Takis
Well it is not luck the Deluxe version of the card is a Bt878 based chip so it works fine you must have the Expert version (Is this correct?) then that one is based on the cx2388x chip. I am running a custom kernel 2.6.10-ck5. Can you post the parts of the dmesg where the card gets detected? You may also email the maintainer of the driver if it is that new you may be able get him to help you debug it and make improvements to the driver.
 
Old 05-03-2005, 03:05 AM   #5
takisd
Member
 
Registered: Dec 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Hi

yep... you're quite right, i have the xp version wth the cx2388x chip.

i'm using a custom 2.6.11.7 kernel. (i hope i didn't miss anything there..)

my dmesg output is as follows:

Code:
Linux video capture interface: v1.00
cx2388x v4l2 driver version 0.0.4 loaded
ACPI: PCI interrupt 0000:03:02.0[A] -> GSI 22 (level, low) -> IRQ 22
cx88[0]: subsystem: 107d:6611, board: Leadtek Winfast 2000XP Expert [card=5,autodetected]
cx88[0]: Leadtek Winfast 2000 XP config: tuner=38, eeprom[0]=0x01
cx88[0]/0: found at 0000:03:02.0, rev: 5, irq: 22, latency: 32, mmio: 0xfa000000tuner: chip found at addr 0xc0 i2c-bus cx88[0]
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by cx88[0]
0tda9885/6/7: chip found @ 0x86
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
cx2388x blackbird driver version 0.0.4 loaded
though i am passing tuner and card type to the module, it is reporting type=38 instead of 34 - not sure if its significant or if 34 is being picked up at a later point not reported.

i do intend to email the maintainer with my experimenting. i'm happy to try/test anything they give me and post whatever results they would like.

thanks again for your help.

Takis
 
Old 05-03-2005, 12:24 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by takisd
[B]Hi

yep... you're quite right, i have the xp version wth the cx2388x chip.

i'm using a custom 2.6.11.7 kernel. (i hope i didn't miss anything there..)

my dmesg output is as follows:

Code:
Linux video capture interface: v1.00
cx2388x v4l2 driver version 0.0.4 loaded
ACPI: PCI interrupt 0000:03:02.0[A] -> GSI 22 (level, low) -> IRQ 22
cx88[0]: subsystem: 107d:6611, board: Leadtek Winfast 2000XP Expert [card=5,autodetected]
cx88[0]: Leadtek Winfast 2000 XP config: tuner=38, eeprom[0]=0x01
cx88[0]/0: found at 0000:03:02.0, rev: 5, irq: 22, latency: 32, mmio: 0xfa000000tuner: chip found at addr 0xc0 i2c-bus cx88[0]
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by cx88[0]
0tda9885/6/7: chip found @ 0x86
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
cx2388x blackbird driver version 0.0.4 loaded
though i am passing tuner and card type to the module, it is reporting type=38 instead of 34 - not sure if its significant or if 34 is being picked up at a later point not reported.
According to the /usr/src/linux-2.6.10/drivers/media/video/cx88/cx88-cards.c file on my install you should be using tuner=44 so you may want to removing all the modules with rmmod then use modprobe cx8800 card=5 tuner=44 and see if this helps.

Code:
[CX88_BOARD_WINFAST2000XP] = {
                .name           = "Leadtek Winfast 2000XP Expert",
                .tuner_type     = 44,
                .tda9887_conf   = TDA9887_PRESENT,
                .input          = {{
                        .type   = CX88_VMUX_TELEVISION,
                        .vmux   = 0,
                        .gpio0  = 0x00F5e700,
                        .gpio1  = 0x00003004,
                        .gpio2  = 0x00F5e700,
                        .gpio3  = 0x02000000,
                },{
                        .type   = CX88_VMUX_COMPOSITE1,
                        .vmux   = 1,
                        .gpio0  = 0x00F5c700,
                        .gpio1  = 0x00003004,
                        .gpio2  = 0x00F5c700,
                        .gpio3  = 0x02000000,
                },{
 
Old 05-03-2005, 06:33 PM   #7
takisd
Member
 
Registered: Dec 2003
Posts: 39

Original Poster
Rep: Reputation: 15
hello

you really are being very helpful. much appreciated.

i had tried tuner=5 from the bttv howto docs. anyway, looked over the source and 44 looked right, so i tried it and no change here unfortunately. dmesg still reports tuner=38 and i'm now thinking this may be a problem.

i will contact the maintainer (probably through the kernel mailing list first) and see what they think.

beyond that i'm stumped!!!

the /dev/video device is still only created after loading the cx88xx module.

if i load the cx8800 module, the cx88xx is loaded also (dependency) but i can't get a picture at all.
loading the cx88xx module, then the 8800 module works (albeit b&w).

perhaps its a bug. shall contact maintainers to see if we can fix it.

thanks heaps for your assistance with all this. you've been very patient.

Takis
 
Old 05-03-2005, 07:02 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by takisd
hello

you really are being very helpful. much appreciated.

i had tried tuner=5 from the bttv howto docs. anyway, looked over the source and 44 looked right, so i tried it and no change here unfortunately. dmesg still reports tuner=38 and i'm now thinking this may be a problem.

i will contact the maintainer (probably through the kernel mailing list first) and see what they think.

beyond that i'm stumped!!!

the /dev/video device is still only created after loading the cx88xx module.

if i load the cx8800 module, the cx88xx is loaded also (dependency) but i can't get a picture at all.
loading the cx88xx module, then the 8800 module works (albeit b&w).

perhaps its a bug. shall contact maintainers to see if we can fix it.

thanks heaps for your assistance with all this. you've been very patient.

Takis
Sure looks like a bug in there somewhere then, just for the hell of it try modprobe cx88xx card=5 tuner=44 and see if that loads it right maybe even use cx2388x as well. Just looking through the cards file again I think that the module is detecting your card as another Leadtek both of which have a tuner=38.

Code:
[CX88_BOARD_WINFAST_DV2000] = {
                .name           = "Leadtek Winfast DV2000",
                .tuner_type     = 38,
                .tda9887_conf   = TDA9887_PRESENT,
                .input          = {{
                        .type   = CX88_VMUX_TELEVISION,
                        .vmux   = 0,
                }},
                .radio = {
                        .type   = CX88_RADIO,
                },
        },
        [CX88_BOARD_LEADTEK_PVR2000] = {
                .name           = "Leadtek PVR 2000",
                .tuner_type     = 38,
                .input          = {{
                        .type   = CX88_VMUX_TELEVISION,
                        .vmux   = 0,
                },{
 
Old 05-31-2005, 10:20 PM   #9
madar
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Hello Takisd,

I'm curious if you have had any success with this card yet. I am in basically the same situation with this card on Debian unstable running a custom 2.6.10 at this point (and not to keen on updating it). Anyway, the posts seem to have dried up in this thread so I wonder if you have found a solution.

Thanks,

madar

Last edited by madar; 05-31-2005 at 10:24 PM.
 
Old 06-09-2005, 10:32 PM   #10
axelmasok
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by madar
Hello Takisd,

I'm curious if you have had any success with this card yet. I am in basically the same situation with this card on Debian unstable running a custom 2.6.10 at this point (and not to keen on updating it). Anyway, the posts seem to have dried up in this thread so I wonder if you have found a solution.

Thanks,

madar

I have this card Madar and have reasonable success on Gentoo_x86_64 by "modprobe cx8800". :

----
0000:00:05.0 Multimedia video controller: Conexant Winfast TV2000 XP (rev 05)
Subsystem: LeadTek Research Inc.: Unknown device 6611
Flags: medium devsel, IRQ 16
Memory at f6000000 (32-bit, non-prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
-------------
Linux video capture interface: v1.00
cx2388x v4l2 driver version 0.0.4 loaded
cx88[0]: subsystem: 107d:6611, board: Leadtek Winfast 2000XP Expert [card=5,autodetected]
cx88[0]: Leadtek Winfast 2000 XP config: tuner=38, eeprom[0]=0x01
cx88[0]/0: found at 0000:00:05.0, rev: 5, irq: 16, latency: 32, mmio: 0xf6000000
tuner: chip found at addr 0xc0 i2c-bus cx88[0]
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by cx88[0]
tda9885/6/7: chip found @ 0x86
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
------------

Colour problems I have a re related to choosing the correct colour system in xawtv. I Use PAL-BG in Australia. I have also found sometimes the displayed colour looks wrong but when I do a cature the colour comes out OK:

-------
streamer -b 64 -p 2 -n pal-bg -t 1:00 -s 640x480 -r 25 -o stream.mov -F stereo -c /dev/video0 -f jpeg -i Composite1
-------

My problem is unstable display of the video. Sometimes it just goes black in xawtv/kdetv.
I can't view and capture at the same time either - might by limitation.
Modprobe removing and adding cx8800 can be trouble. remove tuner and tda9887 as well then modprobe again.
Axel
 
Old 06-10-2005, 07:58 AM   #11
SusiAti
LQ Newbie
 
Registered: Jun 2005
Posts: 4

Rep: Reputation: 0
Hello!
My ~/.tvtime/tvtime.xml file:

<tvtime>
<option name="FullScreen" value="1"/>
<option name="DefaultBrightness" value="52"/>
<option name="DefaultContrast" value="37"/>
<option name="DefaultColour" value="100"/>
<option name="DefaultHue" value="99"/>
<option name="PrevChannel" value="140"/>
<option name="Channel" value="6"/>
<option name="FramerateMode" value="0"/>
<option name="OverScan" value="0.0"/>
<option name="CheckForSignal" value="1"/>
<option name="Frequencies" value="europe"/>
<option name="V4LInput" value="0"/>
<option name="AudioMode" value="stereo"/>
<option name="Norm" value="PAL"/>
<option name="ColourInvert" value="0"/>
<option name="MirrorInput" value="0"/>
<option name="DefaultSaturation" value="97"/>
<option name="AudioBoost" value="100"/>
<option name="AlwaysOnTop" value="1"/>
<option name="QuietScreenshots" value="1"/>
<option name="UnmuteVolume" value="12850"/>
<option name="Muted" value="0"/>
<option name="PalDKMode" value="0"/>
<option name="DeinterlaceMethod" value="TelevisionFull"/>
<option name="WideScreen" value="0"/>
<option name="InputWidth" value="768"/>
<option name="FullscreenPosition" value="top"/>
</tvtime>


!!!!!!!!!!!!!!
<option name="DefaultColour" value="100"/>
<option name="DefaultHue" value="99"/>
!!!!!!!!!!!!!!

And okay the colours.

But a recording (with mencoder) doesn't work (((((((
 
Old 06-10-2005, 08:40 AM   #12
takisd
Member
 
Registered: Dec 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Hi folks

wow... ok... this is getting somewhere.

using the module loaded as suggested by axel (and not with all the other ones i was) i noticed i had exactly the same output as posted by axel. so, so far so good.

i did start to paly with the hue setting on tvtime using tvtime-command HUE_UP.

here i noticed something - though tvtime was not saving the settings, and every time i changed channel it was lost.

adding the options to tvtime.xml as suggested by SusiAti worked!!! i now have colour tv on all channels. perfect!!!!

i haven't tried recording yet - thats next.

the only outstanding issue with the card is now only the radio not being able to be switched off after i start it (have to reboot). muting the input works, but of course i can't then play the tv. so i'm still working on that one.

anyway, this is all good.
thanks very very much to all that replied and have helped with this issue.
i'll post how i go with the still outstanding ones, as well as recording when i give that a shot.

thanks again.
Takis
 
Old 06-11-2005, 02:00 AM   #13
SusiAti
LQ Newbie
 
Registered: Jun 2005
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by takisd
here i noticed something - though tvtime was not saving the settings, and every time i changed channel it was lost.
Hmmm... Write right to the ~/.tvtime directory?

Quote:
adding the options to tvtime.xml as suggested by SusiAti worked!!! i now have colour tv on all channels. perfect!!!!
I'm very happy

Quote:
i haven't tried recording yet - thats next.
- tvtime: can't record
- xawtv: can, but raw file (audio is 44,1k, 16b, stereo, very big size. Video too, only very-very big
- mencoder (from mplayer): don't play, don't record
This is my mplayer script for tv:
mplayer tv://1 -vo xv -tv \ driver=v4l2:normid=3:width=640:height=480:chanlist=europe-east:alsa:channels=E7utfmt=bgr24

#outfmt=help, variable:
#444p 422p 411p yuy2 uyvy yvu9 if09
#yv12 i420 iyuv clpl hm12 y800 y8 nv12 nv21
#bgr24 bgr32 bgr16 bgr15 bgr8 bgr4 bg4b bgr1
#rgb24 rgb32 rgb16 rgb15 rgb8 rgb4 rg4b rgb1 rgba argb bgra abgr

Nothing, but red or green display

Quote:

the only outstanding issue with the card is now only the radio not being able to be switched off after i start it (have to reboot). muting the input works, but of course i can't then play the tv. so i'm still working on that one.

Takis [/B]
Radio in my system not turn-off. I run tvtime, quit, and radio off

Sorry, I'm very bad in English, but now learn
 
Old 06-17-2005, 01:16 PM   #14
tslh
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian etch
Posts: 1

Rep: Reputation: 0
Hi there!

I just found this topic and I saw that at least SusiAti seems has sound with this card. Somebody could tell me which driver I should use?

A this time I have only garbage noise with my TV...

Many thanks to you.
 
Old 08-07-2005, 12:45 PM   #15
SusiAti
LQ Newbie
 
Registered: Jun 2005
Posts: 4

Rep: Reputation: 0
Hey, it works )) play with mplayer :
-tv driver=v4l2:device=/dev/video0: \
fps=25:width=768:height=576:norm=palutfmt=yuy2: \
normid=2:brightness=50:contrast=25:saturation=100

I hope, it works with mencoder too.

PS: it's a Hungarian norm and normid, original post from hg5opx:
http://hup.hu/modules.php?name=Forum...&p=74021#74021

Yeahh ))))

Last edited by SusiAti; 08-07-2005 at 12:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lirc with bttv TV card tyzenhaus Fedora 1 07-18-2005 12:47 PM
CX88 chipset TV Card freezes the computer completely ObsidianX Linux - Hardware 2 06-01-2005 09:16 PM
ATi TV Wonder Pro CX88 TV card: sound works, but uses wrong frequency Electrode Linux - Hardware 3 04-13-2005 12:55 AM
TV Card, BT878, bttv: no sound breakerfall Linux - Hardware 5 03-20-2004 07:31 AM
TV card bttv+v4l problem X_Ray_Cat Linux - Hardware 0 10-24-2003 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration