View previous topic :: View next topic |
Author |
Message |
innocentbeats Tux's lil' helper
Joined: 15 Jul 2003 Posts: 76
|
Posted: Fri Jan 02, 2004 11:11 am Post subject: SAA7134 and tvtime in kernel 2.6 [ SOLVED ] |
|
|
The compilation error is now solved, but my SAA7134 card is still not working. See next post.
tvtime does not compile.
This error occurs:
Code: | gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/SDL -D_REENTRANT `/usr/bin/freetype-config --cflags` -Wall -I. -pedantic -DDATADIR="\"/usr/share/tvtime\"" -DCONFDIR="\"/etc/tvtime\"" -DFIFODIR="\"/tmp\"" -D_LARGEFILE64_SOURCE -DLOCALEDIR="\"/usr/share/locale\"" -I../plugins -I/usr/X11R6/include -I/usr/include/libxml2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -O3 -fomit-frame-pointer -std=gnu99 -mcpu=pentiumpro -c -o tvtime-videotools.o `test -f 'videotools.c' || echo './'`videotools.c
{standard input}: Assembler messages:
{standard input}:10241: Error: suffix or operands invalid for `movd'
make[3]: *** [tvtime-speedy.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/tvtime-0.9.12/work/tvtime-0.9.12/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/tvtime-0.9.12/work/tvtime-0.9.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/tvtime-0.9.12/work/tvtime-0.9.12'
make: *** [all] Error 2
!!! ERROR: media-tv/tvtime-0.9.12 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! compile problem
bash-2.05b# |
Any ideas?
CU
Chris
Last edited by innocentbeats on Thu Jan 08, 2004 5:35 pm; edited 3 times in total |
|
Back to top |
|
|
innocentbeats Tux's lil' helper
Joined: 15 Jul 2003 Posts: 76
|
Posted: Fri Jan 02, 2004 4:39 pm Post subject: |
|
|
Now I could emerge tvtime and also open the application, but when I do a channel scan nothing happens. It seems that my video card is not working with the 2.6 kernel. The same problem with xawtv, nothing happens!
I have a SAA7134 card.
CU
Chris |
|
Back to top |
|
|
vers_iq Apprentice
Joined: 18 May 2002 Posts: 264
|
Posted: Fri Jan 02, 2004 5:10 pm Post subject: |
|
|
Are u sure u have saa7134 compiled in kernel or as module? because at this moment im watching my tv with tvtime and saa7134 chipset tv card. it is better if u compile all the required V4L drivers in modules. Code: | tuner 15884 0
saa7134 84872 0
video_buf 20100 1 saa7134
v4l1_compat 12484 1 saa7134
|
and dmesg should show you this: Code: | Linux video capture interface: v1.00
saa7130/34: v4l2 driver version 0.2.9 loaded
saa7130[0]: found at 0000:01:07.0, rev: 1, irq: 19, latency: 64, mmio: 0xfc9fe800
saa7130[0]: subsystem: 5168:0138, board: LifeView FlyVIDEO2000 [card=3,autodetected]
saa7130[0]: board init: gpio is 39000
saa7130[0]: i2c eeprom 00: 68 51 38 01 10 28 ff ff ff ff ff ff ff ff ff ff
saa7130[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7130[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7130[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
tuner: chip found @ 0xc2
tuner: type set to 37 (LG PAL (newer TAPC series))
registering 0-0061
saa7130[0]: registered device video0 [v4l2]
saa7130[0]: registered device vbi0
saa7130[0]: registered device radio0
| If it works on my x86_64 arch, it should on normal x86 arch. _________________ "You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the Swiss hold the America's cup, France accusing the US of arrogance and Germany doesn't want to go to war." |
|
Back to top |
|
|
innocentbeats Tux's lil' helper
Joined: 15 Jul 2003 Posts: 76
|
Posted: Sun Jan 04, 2004 11:26 am Post subject: |
|
|
Now I compiled the SAA7134 thing a a module, and dmesg shows this:
Code: | Linux video capture interface: v1.00
saa7130/34: v4l2 driver version 0.2.9 loaded
saa7134[0]: found at 0000:00:08.0, rev: 1, irq: 19, latency: 32, mmio: 0xe2425000
saa7134[0]: subsystem: 16be:0003, board: Medion 7134 [card=12,autodetected]
saa7134[0]: board init: gpio is 0
saa7134[0]: i2c eeprom 00: be 16 03 00 08 20 1c 55 43 43 a9 1c 55 43 43 a9
saa7134[0]: i2c eeprom 10: ff ff ff ff 15 00 0e 01 03 c0 08 00 00 00 00 00
saa7134[0]: i2c eeprom 20: 00 00 00 da ff ff ff ff ff ff ff ff ff ff ff ff
saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
tuner: chip found @ 0xc0
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
registering 0-0060
saa7134[0]: registered device video0 [v4l2]
saa7134[0]: registered device vbi0
saa7134[0]: registered device radio0 |
and lsmod this:
Code: | tda9887 7424 0
tuner 15236 0
saa7134 82700 0
video_buf 18944 1 saa7134
v4l1_compat 14208 1 saa7134
v4l2_common 4864 1 saa7134
videodev 8832 1 saa7134
snd_seq_midi 7712 0
snd_emu10k1_synth 7936 0
snd_emux_synth 36224 1 snd_emu10k1_synth
snd_seq_virmidi 7040 1 snd_emux_synth
snd_seq_midi_emul 7936 1 snd_emux_synth
snd_emu10k1 94212 2 snd_emu10k1_synth
snd_util_mem 4480 2 snd_emux_synth,snd_emu10k1
snd_hwdep 8704 1 snd_emu10k1
snd_intel8x0 29124 0
snd_ac97_codec 60420 2 snd_emu10k1,snd_intel8x0
snd_mpu401_uart 7424 1 snd_intel8x0
snd_rawmidi 22016 4 snd_seq_midi,snd_seq_virmidi,snd_emu10k1,snd_mpu401_uart
nvidia 2070376 12
|
But neither tvtime nor xawtv works... I just get a "blue screen" there...
CU
Chris |
|
Back to top |
|
|
roger55 Retired Dev
Joined: 20 Dec 2002 Posts: 23 Location: Graz/Austria
|
Posted: Sun Jan 04, 2004 2:06 pm Post subject: |
|
|
I think tvtime uses xv for display. try switching in xawtv from grabdisplay to overlay. see if that helps.
Might well be the gfxcard driver that screws you here.
xvinfo should tell you if xv is supported by your driver. |
|
Back to top |
|
|
innocentbeats Tux's lil' helper
Joined: 15 Jul 2003 Posts: 76
|
Posted: Sun Jan 04, 2004 2:18 pm Post subject: |
|
|
This is the output of xv info.
Code: | X-Video Extension version 2.2
screen #0
Adaptor #0: "NV17 Video Overlay"
number of ports: 1
port base: 139
operations supported: PutImage
supported visuals:
depth 24, visualID 0x21
depth 24, visualID 0x23
depth 24, visualID 0x24
depth 24, visualID 0x25
depth 24, visualID 0x26
depth 24, visualID 0x27
depth 24, visualID 0x28
depth 24, visualID 0x29
depth 24, visualID 0x2a
depth 24, visualID 0x2b
depth 24, visualID 0x2c
depth 24, visualID 0x2d
depth 24, visualID 0x2e
depth 24, visualID 0x2f
depth 24, visualID 0x30
depth 24, visualID 0x31
depth 24, visualID 0x32
depth 24, visualID 0x33
depth 24, visualID 0x34
depth 24, visualID 0x35
depth 24, visualID 0x22
depth 24, visualID 0x36
depth 24, visualID 0x37
depth 24, visualID 0x38
depth 24, visualID 0x39
depth 24, visualID 0x3a
depth 24, visualID 0x3b
depth 24, visualID 0x3c
depth 24, visualID 0x3d
depth 24, visualID 0x3e
depth 24, visualID 0x3f
depth 24, visualID 0x40
depth 24, visualID 0x41
depth 24, visualID 0x42
depth 24, visualID 0x43
depth 24, visualID 0x44
depth 24, visualID 0x45
depth 24, visualID 0x46
depth 24, visualID 0x47
depth 24, visualID 0x48
number of attributes: 9
"XV_DOUBLE_BUFFER" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 1)
"XV_COLORKEY" (range 0 to 16777215)
client settable attribute
client gettable attribute (current value is 66046)
"XV_AUTOPAINT_COLORKEY" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 1)
"XV_SET_DEFAULTS" (range 0 to 0)
client settable attribute
"XV_BRIGHTNESS" (range -512 to 511)
client settable attribute
client gettable attribute (current value is 0)
"XV_CONTRAST" (range 0 to 8191)
client settable attribute
client gettable attribute (current value is 4096)
"XV_SATURATION" (range 0 to 8191)
client settable attribute
client gettable attribute (current value is 4096)
"XV_HUE" (range 0 to 360)
client settable attribute
client gettable attribute (current value is 0)
"XV_ITURBT_709" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 0)
maximum XvImage size: 2046 x 2046
Number of image formats: 4
id: 0x32595559 (YUY2)
guid: 59555932-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x32315659 (YV12)
guid: 59563132-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x59565955 (UYVY)
guid: 55595659-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x30323449 (I420)
guid: 49343230-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
Adaptor #1: "NV05 Video Blitter"
number of ports: 32
port base: 140
operations supported: PutImage
supported visuals:
depth 24, visualID 0x21
depth 24, visualID 0x23
depth 24, visualID 0x24
depth 24, visualID 0x25
depth 24, visualID 0x26
depth 24, visualID 0x27
depth 24, visualID 0x28
depth 24, visualID 0x29
depth 24, visualID 0x2a
depth 24, visualID 0x2b
depth 24, visualID 0x2c
depth 24, visualID 0x2d
depth 24, visualID 0x2e
depth 24, visualID 0x2f
depth 24, visualID 0x30
depth 24, visualID 0x31
depth 24, visualID 0x32
depth 24, visualID 0x33
depth 24, visualID 0x34
depth 24, visualID 0x35
depth 24, visualID 0x22
depth 24, visualID 0x36
depth 24, visualID 0x37
depth 24, visualID 0x38
depth 24, visualID 0x39
depth 24, visualID 0x3a
depth 24, visualID 0x3b
depth 24, visualID 0x3c
depth 24, visualID 0x3d
depth 24, visualID 0x3e
depth 24, visualID 0x3f
depth 24, visualID 0x40
depth 24, visualID 0x41
depth 24, visualID 0x42
depth 24, visualID 0x43
depth 24, visualID 0x44
depth 24, visualID 0x45
depth 24, visualID 0x46
depth 24, visualID 0x47
depth 24, visualID 0x48
no port attributes defined
maximum XvImage size: 2046 x 2046
Number of image formats: 5
id: 0x32595559 (YUY2)
guid: 59555932-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x32315659 (YV12)
guid: 59563132-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x59565955 (UYVY)
guid: 55595659-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x30323449 (I420)
guid: 49343230-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x3
guid: 03000000-0000-0010-8000-00aa00389b71
bits per pixel: 32
number of planes: 1
type: RGB (packed)
depth: 24
red, green, blue masks: 0xff0000, 0xff00, 0xff
Adaptor #2: "NVIDIA Video Interface Port"
number of ports: 1
port base: 172
operations supported: PutVideo
supported visuals:
depth 24, visualID 0x21
depth 24, visualID 0x23
depth 24, visualID 0x24
depth 24, visualID 0x25
depth 24, visualID 0x26
depth 24, visualID 0x27
depth 24, visualID 0x28
depth 24, visualID 0x29
depth 24, visualID 0x2a
depth 24, visualID 0x2b
depth 24, visualID 0x2c
depth 24, visualID 0x2d
depth 24, visualID 0x2e
depth 24, visualID 0x2f
depth 24, visualID 0x30
depth 24, visualID 0x31
depth 24, visualID 0x32
depth 24, visualID 0x33
depth 24, visualID 0x34
depth 24, visualID 0x35
depth 24, visualID 0x22
depth 24, visualID 0x36
depth 24, visualID 0x37
depth 24, visualID 0x38
depth 24, visualID 0x39
depth 24, visualID 0x3a
depth 24, visualID 0x3b
depth 24, visualID 0x3c
depth 24, visualID 0x3d
depth 24, visualID 0x3e
depth 24, visualID 0x3f
depth 24, visualID 0x40
depth 24, visualID 0x41
depth 24, visualID 0x42
depth 24, visualID 0x43
depth 24, visualID 0x44
depth 24, visualID 0x45
depth 24, visualID 0x46
depth 24, visualID 0x47
depth 24, visualID 0x48
number of attributes: 9
"XV_ENCODING" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 0)
"XV_COLORKEY" (range 0 to 16777215)
client settable attribute
client gettable attribute (current value is 66046)
"XV_AUTOPAINT_COLORKEY" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 1)
"XV_SET_DEFAULTS" (range 0 to 0)
client settable attribute
"XV_BRIGHTNESS" (range -512 to 511)
client settable attribute
client gettable attribute (current value is 0)
"XV_CONTRAST" (range 0 to 8191)
client settable attribute
client gettable attribute (current value is 4096)
"XV_SATURATION" (range 0 to 8191)
client settable attribute
client gettable attribute (current value is 4096)
"XV_HUE" (range 0 to 360)
client settable attribute
client gettable attribute (current value is 0)
"XV_ITURBT_709" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 0)
number of encodings: 2
encoding ID #0: "ntsc"
size: 720 x 480
rate: 59.940060
encoding ID #1: "pal"
size: 720 x 576
rate: 50.000000
|
Although I don't understand very much of it, I think it looks quite good... When I switch xawtv from overlay to grab nothing happens, the screen
Code: | ash-2.05b# xawtv -c /dev/video0
This is xawtv-3.90, running on Linux/i686 (2.6.0-gentoo)
WARNING: Your X-Server has no DGA support.
WARNING: couldn't find framebuffer base address, try manual
configuration ("v4l-conf -a <addr>")
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_TRY_FMT(type=VIDEO_OVERLAY;fmt.win.w.left=636;
fmt.win.w.top=446;fmt.win.w.width=384;fmt.win.w.height=288;fmt.
win.field=ANY;fmt.win.chromakey=0;fmt.win.clips=(nil);
fmt.win.clipcount=0;fmt.win.bitmap=(nil)): Invalid argument
ioctl: VIDIOC_S_FMT(type=VIDEO_OVERLAY;fmt.win.w.left=636;fmt.win.w
.top=446;fmt.win.w.width=384;fmt.win.w.height=288;fmt.win.field=
ANY;fmt.win.chromakey=0;fmt.win.clips=0x80bcd14;fmt.win.clipcount=
0;fmt.win.bitmap=(nil)): Invalid argument
ioctl: VIDIOC_OVERLAY(int=0): Invalid argument
ioctl: VIDIOC_TRY_FMT(type=VIDEO_OVERLAY;fmt.win.w.left=636;fmt.win
.w.top=446;fmt.win.w.width=384;fmt.win.w.height=288;fmt.win.field=
ANY;fmt.win.chromakey=0;fmt.win.clips=(nil);fmt.win.clipcount=0;fmt
.win.bitmap=(nil)): Invalid argument
ioctl: VIDIOC_S_FMT(type=VIDEO_OVERLAY;fmt.win.w.left=636;fmt.win.w.t
op=446;fmt.win.w.width=384;fmt.win.w.height=288;fmt.win.field=A
NY;fmt.win.chromakey=0;fmt.win.clips=0x80bcd14;fmt.win.clipcount
=1;fmt.win.bitmap=(nil)): Invalid argument
ioctl: VIDIOC_OVERLAY(int=0): Invalid argument
ioctl: VIDIOC_TRY_FMT(type=VIDEO_OVERLAY;fmt.win.w.left=636;fmt.win
.w.top=446;fmt.win.w.width=384;fmt.win.w.height=288;fmt.win.field
=ANY;fmt.win.chromakey=0;fmt.win.clips=(nil);fmt.win.clipcount=0;f
mt.win.bitmap=(nil)): Invalid argument
ioctl: VIDIOC_S_FMT(type=VIDEO_OVERLAY;fmt.win.w.left=636;fmt.win.w.to
p=446;fmt.win.w.width=384;fmt.win.w.height=288;fmt.win.field=ANY
;fmt.win.chromakey=0;fmt.win.clips=0x80bcd14;fmt.win.clipcount=0;f
mt.win.bitmap=(nil)): Invalid argument
ioctl: VIDIOC_OVERLAY(int=0): Invalid argument
|
I am using an NVidia graphics card with nvidia kernel and glx... I think it works very well. It could be that I emerged xawtv when I still had this built-in nv driver, could that have influenced xawtv?
This is the output from v4l-config
CU
Chris Code: | bash-2.05b# v4l-conf
v4l-conf: using X11 display :0.0
WARNING: Your X-Server has no DGA support.
mode: 1024x768, depth=24, bpp=32, bpl=4096, base=unknown
WARNING: couldn't find framebuffer base address, try manual
configuration ("v4l-conf -a <addr>")
/dev/video0 [v4l2]: configuration done
|
|
|
Back to top |
|
|
innocentbeats Tux's lil' helper
Joined: 15 Jul 2003 Posts: 76
|
Posted: Mon Jan 05, 2004 7:04 pm Post subject: |
|
|
I now enabled this dga support in the xf86config, and now xawtv shows on some channels this "snow" known from old tv sets, but I cannot tune or even see a picture. Xawtv has to be started with the -c /dev/v4l/video0 option. In tvtime, it is still the same, no signal or snow at all...
CU
Chris |
|
Back to top |
|
|
innocentbeats Tux's lil' helper
Joined: 15 Jul 2003 Posts: 76
|
Posted: Wed Jan 07, 2004 1:06 pm Post subject: |
|
|
I try various settings, now v4l-conf tells me this:
Code: | bash-2.05b# v4l-conf
v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1024x768, depth=24, bpp=32, bpl=4096, base=0xd8000000
/dev/video0 [v4l2]: configuration done
bash-2.05b# |
But tvtime is still telling me this:
Code: | tvbash-2.05b# tvtime
tvtime: Running tvtime 0.9.10.
config: Reading configuration from /etc/tvtime/tvtime.xml
config: Reading configuration from /root/.tvtime/tvtime.xml
station: Reading stationlist from /root/.tvtime/stationlist.xml
videoinput: Can't read frame. Error was: Input/output error (0).
videoinput: Can't read frame. Error was: Input/output error (0).
tvtime: Thank you for using tvtime.
|
I think I relly got stuck here...
CU
Chris
I got it solved, the autodetected tuner type was wrong. I had to modprobe tuner type=1 and then it worked!
CU |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|