[MPlayer-dev-eng] [PATCH] mga_vid.o: choose device with module parameter --> multihead video

Hans-Andreas Engel engel at node.ch
Mon Mar 17 09:32:04 CET 2003


Hello.

I would like to suggest adding the following patch to the 
cvs [requires the patch posted a few days ago, which adds 
the module parameter "major"]:

This patch adds the module parameter "mga_number". On a 
system with multiple matrox cards or a matrox card with 
multiple chips, this parameters selects which matrox 
card/chip is used (in the order of found devices).

Then, one can load the mga_vid module once for each card.
Say, on a system with two cards, the /etc/modules.conf can 
look like:
---
alias char-major-178 mga_vid
alias char-major-179 mga_vid
options char-major-179 -o mga_vid-1 major=179 mga_number=1
---
Note that the "-o" option loads a module under a different 
name. This allows loading the mga_vid module several times.

With a
   mknod /dev/mga_vid0 c 178 0
   mknod /dev/mga_vid1 c 179 0
one can then run mplayer on both cards at the same time:
   mplayer -slave -vo mga:/dev/mga_vid0 movie1.avi &
   mplayer -vo mga:/dev/mga_vid1 movie2.avi

Please comment [arpi, attila, eyck, ...] (and commit?) 
this patch.

Hansres

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mga_vid.c_multi.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030317/4c99bd35/attachment.asc>


More information about the MPlayer-dev-eng mailing list