From b676d86e23eec800e52a40be2803231c60b1e57f Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 9 Jan 2004 06:38:11 +0000 Subject: Sync with Creative's 8010.h rev 1.51. --- sys/dev/sound/pci/emu10k1.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/dev/sound') diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index 6ee1220..95ab424 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -1,4 +1,5 @@ /* + * Copyright (c) 2004 David O'Brien * Copyright (c) 1999 Cameron Grant * All rights reserved. * @@ -36,10 +37,16 @@ SND_DECLARE_FILE("$FreeBSD$"); /* -------------------------------------------------------------------- */ +#define NUM_G 64 /* use all channels */ +#define WAVEOUT_MAXBUFSIZE 32768 +#define EMUPAGESIZE 4096 /* don't change */ +#define MAXPAGES (WAVEOUT_MAXBUFSIZE * NUM_G / EMUPAGESIZE) #define EMU10K1_PCI_ID 0x00021102 #define EMU10K2_PCI_ID 0x00041102 #define EMU_DEFAULT_BUFSZ 4096 #define EMU_CHANS 4 +#define ENV_ON DCYSUSV_CHANNELENABLE_MASK +#define ENV_OFF 0x00 /* XXX: should this be 1? */ #undef EMUDEBUG struct emu_memblk { -- cgit v1.1