[PATCH] 2.2/2.4 ESS Maestro 2E frequency fix(?)

From: Barry K. Nathan (barryn@cx518206-b.irvn1.occa.home.com)
Date: Tue Oct 24 2000 - 03:56:08 EST


I noticed that, on my new Dell Inspiron 5000e, music just didn't *sound*
right - it sounded like it was a little bit slow. This didn't happen under
Windows, and it didn't happen with CDs either.

So, after a few minutes of hacking, I ended up with the patch at the end of
this email, which seems to fix my problem. I don't really understand the
logic behind either number, but 49152000 sure sounds a *LOT* better on my
Dell. The patch is against Red Hat's 2.2.16-22, but it should apply to any
recent 2.2 or 2.4 kernel.

I'd appreciate it if a few other people with Maestro 2E's could try my
patch and see if it makes the sound play properly or if it breaks things
and makes sound play too fast. (For the sake of completeness, the sound
files that I tested with were 44100Hz.)

-Barry K. Nathan <barryn@pobox.com>

--- drivers/sound/maestro-old.c Tue Aug 22 12:24:08 2000
+++ drivers/sound/maestro.c Tue Oct 24 01:04:52 2000
@@ -368,7 +368,7 @@
 static int clock_freq[]={
         [TYPE_MAESTRO] = (49152000L / 1024L),
         [TYPE_MAESTRO2] = (50000000L / 1024L),
- [TYPE_MAESTRO2E] = (50000000L / 1024L)
+ [TYPE_MAESTRO2E] = (49152000L / 1024L)
 };
 
 static int maestro_notifier(struct notifier_block *nb, unsigned long event, void *buf);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 21:00:13 EST