[MPlayer-matrox] mga_vid with udev on Debian 3.1r3 sarge
Attila Kinali
attila at kinali.ch
Tue Oct 17 19:43:21 CEST 2006
On Tue, 17 Oct 2006 19:26:19 +0200
Lurkos <lurkos at gmail.com> wrote:
> I've installed mga_vid with the debian repository and then I compiled
> the kernel module (debian sarge uses linux 2.6.8).
Here lies your problem. Do not use debian packages for
anything concerning MPlayer. It's not worth the trouble.
> In the package mga-vid-common there is a script for devfs to
> automatically create /dev/mga_vid and load mga_vid module.
> AFAIK Debian 3.1 with linux2.6 uses by default udev instead of devfs.
Go to http://attila.kinali.ch/mga/ get the latest tar ball
for 2.6.18. Apply the following patch:
---
--- mga-vid-2.6.18/mga_vid.c 2005-01-11 10:17:52.000000000 +0100
+++ mga-vid-2.6.9/mga_vid.c 2005-01-11 10:19:18.000000000 +0100
@@ -302,10 +302,10 @@
static int mga_contrast[MGA_MAX_CARDS] = MGA_MAX_CARDS_INIT_ARRAY;
static int mga_top_reserved[MGA_MAX_CARDS] = MGA_MAX_CARDS_INIT_ARRAY;
-module_param_array(mga_ram_size, int, NULL, 0);
-module_param_array(mga_top_reserved, int, NULL, 0);
-module_param_array(mga_brightness, int, NULL, 0);
-module_param_array(mga_contrast, int, NULL, 0);
+module_param_array(mga_ram_size, int, mga_max_cards, 0);
+module_param_array(mga_top_reserved, int, mga_max_cards, 0);
+module_param_array(mga_brightness, int, mga_max_cards, 0);
+module_param_array(mga_contrast, int, mga_max_cards, 0);
module_param(major, int, 0);
static void mga_vid_frame_sel(mga_card_t * card, int frame)
---
and compile it. If it compiles, then type "make install",
do what's written in the README.udev and you are done.
Attila Kinali
--
egp ist vergleichbar mit einem ikea bausatz fuer flugzeugtraeger
-- reeler in +kaosu
More information about the MPlayer-matrox
mailing list