[MPlayer-dev-eng] G200MMS
Nicolas DEVERGE
ndeverge at zen.fr
Wed Dec 12 09:48:59 CET 2001
I send you my hack, but maybe you will be a bit disapointed because it is
very badly written because I don't have any experiences for programming
modules or graphic drivers.
I explain how I hack the driver :
- first, I modified the mga_vid.c file in order to detect my four graphical
chip. I pass a parameter which indicates which chip to use (mga_number=x).
- then I create four different devices named /dev/mga_vid1 ... /dev/mga_vid4
with the following major numbers : 178 ... 175 (I don't know if it is a good
idea, I have no experience with modules, but it works...)
- I compile the mga_vid.c file 4 times in order to have four different
modules named mga_vid1.o ... mga_vid4.o
- Finally, I modified the vo_mga.c (from libvo/ directory) in order to open
the right device with mplayer -vo mga:x
I also modified the configure script in order to detect the /dev/mga_vid1
device (named /dev/mga_vid before).
I know it is a proper way, but it works on my computer, and I have surprised
myself for my hack.
You can send me comments, and I will answer to your question.
Nicolas
Note : it ONLY works with my G200 MMS graphic card.
Le Mardi 11 Décembre 2001 21:36, vous avez écrit :
> Hi,
>
> > Hi,
> > I have modified the provided matrox driver in order to be able to use all
> > G200 chip of my graphic card (in order to play video on 4 screens using
> > directly the mga chip).
> > As I'm not very confident with the modules programmation, it works on my
> > computer but it is not very "portable".
> > So, if someone is interested, I could send him my modified files and how
> > to use them in order to make it clean (because my modification is quite
> > simple...).
> > Regards,
> > Nico
>
> send me (or here, to the list).
> i'm interested in the method you used...
>
>
> A'rpi / Astral & ESP-team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vo_mga.c
Type: text/x-c
Size: 4426 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20011212/f555db20/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mga_vid.c
Type: text/x-c++
Size: 44292 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20011212/f555db20/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure
Type: application/x-shellscript
Size: 77044 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20011212/f555db20/attachment-0002.bin>
More information about the MPlayer-dev-eng
mailing list