AW: [MPlayer-users] ati radeon 8500

Brian J. Murrell 1067cf937b15739f9cf0ed083ac36aaf at interlinx.bc.ca
Sat Mar 9 04:33:02 CET 2002


On Sat, Mar 09, 2002 at 01:13:23AM +0100, Arpi wrote:
> 
> I don't know.
> Alex hacked it together from mga_vid kernel module, but it didn't worked (he
> did it blindly - he has no matrox card :))

Well it seems to work here.  I have been using it with seemingly no
problems.

> anyway it was in the past, vidix interface changed a lot, and i like it a
> bit better, so one day i will may help finish vidix version of mga_vid...

Would be nice.

> while i like the base idea of it, and accepted the way of accessing hw from
> user space (i prefer kernel modules, but the vidix way is much more
> portable) i still don't like the design and silly structures it uses.

Indeed, it is much more portable and one does not have to worry about
matching a kernel.  When I need to upgrade kernels, I also need to
recompile mga_vid.o (in addition to other things I need to compile :-).

> mga_vid kernel module has much more features implemented than vidix one,
> including 'equalizer' (it's Nick's terminology, i think this is silly name to
> the function).

Hmmmm.  I have been looking, and trying to get the equalizer working.
It does not seem to be bound to any of the userspace Mplayser at all.
Meaning, for instance, the input controls I have in my input.conf:

1			contrast -1
2			contrast 1
3			brightness -1
4			brightness 1
5			hue -1
6			hue 1
7			saturation -1
8			saturation 1
d			frame_drop

do not seem to adjust the picture in any way.

It also seems like there was an intention for the kernel module to
take a parameter "mga_brightness <i>" when you insmod it, but that
does not seem to actually affect the brightness either.  The only way
I could change the brightness here was with:

Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/mga_vid.c,v
retrieving revision 1.38
diff -u -r1.38 mga_vid.c
--- mga_vid.c	16 Feb 2002 19:58:39 -0000	1.38
+++ mga_vid.c	9 Mar 2002 03:29:49 -0000
@@ -746,6 +751,8 @@
 	//Enable contrast and brightness control
 	regs.besglobctl |= (1<<5) + (1<<7);
 	
+mga_brightness = 50;
+printk(KERN_INFO "mga_vid: setting brightness to %d\n", mga_brightness);
 	// brightness ; default is 0x7f;
 	regs.beslumactl = (mga_brightness << 16);
 	// contrast:
 
Yes, it's a hack for the moment.  If I am barking up the right tree
with my supposition that there is no link between the kernel module
and userspace, I will see if I can hack one in.

b.

-- 
Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020309/d9f3baed/attachment.pgp>


More information about the MPlayer-users mailing list