[MPlayer-dev-eng] Re: [PATCH] fix mach64 vidix

Jonas Jensen jbj at knef.dk
Tue Jul 15 22:34:49 CEST 2003


On Tue, 2003-07-15 at 21:24, Jon Burgess wrote:
> > I'm not sure why exactly the patch made mplayer unable to use my mach64,
> > but this makes it work again until a correct fix appears. Please apply.
> 
> Do you have multiple graphics cards in your machine?
> Is it something other than a PC?

It's an IBM A21e laptop, only one graphics card.

> The patch only allows the use of vidix if the graphics card has its IO 
> space enabled which is fairly fundamental for most VGA access on a 
> typical PC.
> 
> XFree86 does a similar check before using a chip as the primary display 
> adapter.
> 
> What does the output of "lspci -v -v"  say for the Mach64 PCI device?

00:04.0 VGA compatible controller: ATI Technologies Inc Rage Mobility
P/M (rev 64) (prog-if 00 [VGA])
        Subsystem: IBM: Unknown device 01c7
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 66 (2000ns min), cache line size 08
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: I/O ports at 2800 [size=256]
        Region 2: Memory at fc000000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [5c] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

> The patch will refuse to use the chip unless the output includes 
> "Control: I/O+ ..." ( not I/O- )

I guess the problem isn't caused by that rule in your code, but perhaps
by some bug created as a side effect of the patch. As you can see from
the attached output of mplayer -v, your printf("[mach64] Device is
disabled, ignoring\n") statement is not even triggered.

-- 
Jonas Jensen <jbj at knef.dk>
-------------- next part --------------
MPlayer dev-CVS-030715-10:19-3.3.1 (C) 2000-2003 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/jbj/.mplayer/config
Reading /home/jbj/.mplayer/codecs.conf: can't open '/home/jbj/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 60 audio & 147 video codecs
CommandLine: '-v' '/disk/Burn/The.Lord.of.the.Rings.The.Two.Towers.AC3.DVDScr.XViD.INTERNAL-ViTE/CD1/tttac3-cd1.avi'
get_path('font/font.desc') -> '/home/jbj/.mplayer/font/font.desc'
Font /home/jbj/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/jbj/.mplayer/input.conf'
Can't open input config file /home/jbj/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('tttac3-cd1.avi.conf') -> '/home/jbj/.mplayer/tttac3-cd1.avi.conf'

Playing /disk/Burn/The.Lord.of.the.Rings.The.Two.Towers.AC3.DVDScr.XViD.INTERNAL-ViTE/CD1/tttac3-cd1.avi
Not an URL!
[file] File size is 727126016 bytes
STREAM: [file] /disk/Burn/The.Lord.of.the.Rings.The.Two.Towers.AC3.DVDScr.XViD.INTERNAL-ViTE/CD1/tttac3-cd1.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x22CA
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 83902   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 272
list_end=0x1138
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: xvid (64697678)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976/1000 = 23.976
Start: 0   Len: 83902
Suggested BufferSize: 54530
Quality 10000
Sample size: 0
found 'bih', 108 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 272
  biPlanes 1
  biBitCount 24
  biCompression 1145656920='XVID'
  biSizeImage 522240
===========================
list_end=0x21BE
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 56000/1 = 56000.000
Start: 0   Len: 195951538
Suggested BufferSize: 5376
Quality -1
Sample size: 1
found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 5
Samplerate: 48000
avg byte/sec: 56000
Block align: 1
bits/sample: 0
cbSize: 18
Unknown extra header dump: [0] [0] [c1] [6] [0] [0] [7c] [24] [81] [40] [7c] [24] [81] [40] [31] [34] [5f] [34] 
list_end=0x22CA
list_end=0x22EE
hdr=Software  size=15
Software  : Nandub v1.0rc2
Broken chunk?  chunksize=1290  (id=JUNK)
list_end=0x2B39AA08
Found movie at 0x280C - 0x2B39AA08
Reading INDEX block, 120352 chunks for 83902 frames (fpos=0x2b39aa10)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x150C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=528232776 (83902) audio size=195951538 (195951538)
VIDEO:  [XVID]  640x272  24bpp  23.98 fps  1207.6 kbps (147.4 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:640x272  fps:23.98  ftime:=0.0417
Clip info:
 Software: Nandub v1.0rc2
get_path('sub/') -> '/home/jbj/.mplayer/sub/'
get_path('default.sub') -> '/home/jbj/.mplayer/default.sub'
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
No vidix driver name provided, probing available ones!
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports STAYS_ON_TOP state.
Error opening/initializing the selected video_out (-vo) device.
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/rage128_vid.so
[rage128] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/pm3_vid.so
[pm3] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_crtc2_vid.so
[mga] probe
[mga] found 10 pci devices
[mga] No supported cards found
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/radeon_vid.so
[radeon] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mach64_vid.so
[mach64] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_vid.so
[mga] probe
[mga] found 10 pci devices
[mga] No supported cards found
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/cyberblade_vid.so
[cyberblade] Can't find chip
vosub_vidix: Couldn't find working VIDIX driver

uninit audio: liba52
DEMUXER: freeing demuxer at 0x85aace8  
vo: uninit ...

Exiting... (End of file)


More information about the MPlayer-dev-eng mailing list