PATCH: AcerNotebook-ESS1688 support

Kurt Huwig (kurt@huwig.de)
Tue, 29 Jul 1997 03:07:35 +0200 (CEST)


Hello!

My AcerNotebook has an ESS1688-soundchip, but the linux driver doesn't
recognize it. The reason for this is that the chips needs to be
initialized by some 'magic' reads. I discovered this by looking at the
DOS-driver, so I don't know WHY it works.

This patch was available as C-source for a module and was tested
successfully on several different Acer-notebooks. This is now the
kernel-patch version.

I eMailed the patch to the guy who did the sound system and he said
that it is already in the commercial driver and that it will be in the
free one next year (1998).

Kurt

--- linux/drivers/sound/sb_common.c.korig Wed Sep 11 16:57:14 1996
+++ linux/drivers/sound/sb_common.c Tue Jul 29 02:45:59 1997
@@ -583,6 +583,20 @@
* Detect the device
*/

+ cli(); /* Some ESS1688 cards need this */
+ inb (devc->base + 0x9);
+ inb (devc->base + 0x9);
+ inb (devc->base + 0x9);
+ inb (devc->base + 0xb);
+ inb (devc->base + 0x9);
+ inb (devc->base + 0xb);
+ inb (devc->base + 0x9);
+ inb (devc->base + 0x9);
+ inb (devc->base + 0xb);
+ inb (devc->base + 0x9);
+ inb (devc->base);
+ sti();
+
if (sb_dsp_reset (devc))
dsp_get_vers (devc);
else
--- /dev/null Fri Jul 18 16:57:07 1997
+++ linux/init/patches/acer-ess1688-support Tue Jul 29 01:21:41 1997
@@ -0,0 +1 @@
+ESS1688 support for Acer-notebooks (Kurt Huwig <kurt@huwig.de>)

-------------------------------------------------------------
"Try to remove the color-problem by restarting your computer
several times." (Microsoft-Internet Explorer README.TXT)