Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2000 19:04:42 -0400
From:      Josh Tiefenbach <josh@zipperup.org>
To:        current@freebsd.org
Subject:   kernel build busted in /sys/dev/sound/pci/emu10k1.c (fix included)
Message-ID:  <20000402190441.A70904@snickers.org>

next in thread | raw e-mail | index | archive | help

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii

In attempting to test out Cameron's emu10k1 support, one quickly notices that
the build dies in $SUBJECT due to unresolved constants.

The attached patch fixes the problem. I'm happy to report that mpg123 is
playing mp3's quite fine. There's a little burst of static when it first
starts up, but other than that, things look fine for me.

josh

-- 
Give me rampant intellectualism as a coping strategy!
                                   -- Chuck Palahniuk in Invisible Monsters

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="emu.patch"

--- emu10k1.h	Sun Apr  2 03:41:17 2000
+++ /tmp/emu10k1.h	Sun Apr  2 19:01:32 2000
@@ -663,4 +663,12 @@
 #define HIWORD_RESULT_MASK	0x000ffc00	/* Instruction result				*/
 #define HIWORD_OPA_MASK		0x000003ff	/* Instruction operand A			*/
 
+/* Following constants lifted from Creative's hwaccess.h file */
+/* Needed to get emu10k1.c rev 1.1 to compile */
+#define ENABLE	0xffffffff
+#define DISABLE 0x00000000
+
+#define ENV_ON 0x80
+#define ENV_OFF 0x00
+
 #endif /* _8010_H */

--AhhlLboLdkugWU4S--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000402190441.A70904>