sb.h (54832) | sb.h (70134) |
---|---|
1/* 2 * file: sbcard.h | 1/* 2 * file: sbcard.h |
3 * $FreeBSD: head/sys/dev/sound/isa/sb.h 54832 1999-12-19 18:18:55Z cg $ | 3 * $FreeBSD: head/sys/dev/sound/isa/sb.h 70134 2000-12-18 01:36:41Z cg $ |
4 */ 5 6/* 7 * sound blaster registers 8 */ 9 10#define SBDSP_RST 0x6 11#define DSP_READ 0xA --- 124 unchanged lines hidden (view full) --- 136#define BD_F_MIX_CT1745 0x0030 /* CT1745 */ 137 138#define BD_F_SB16 0x0100 /* this is a SB16 */ 139#define BD_F_SB16X 0x0200 /* this is a vibra16X or clone */ 140#if 0 141#define BD_F_MIDIBUSY 0x0400 /* midi busy */ 142#endif 143#define BD_F_ESS 0x0800 /* this is an ESS chip */ | 4 */ 5 6/* 7 * sound blaster registers 8 */ 9 10#define SBDSP_RST 0x6 11#define DSP_READ 0xA --- 124 unchanged lines hidden (view full) --- 136#define BD_F_MIX_CT1745 0x0030 /* CT1745 */ 137 138#define BD_F_SB16 0x0100 /* this is a SB16 */ 139#define BD_F_SB16X 0x0200 /* this is a vibra16X or clone */ 140#if 0 141#define BD_F_MIDIBUSY 0x0400 /* midi busy */ 142#endif 143#define BD_F_ESS 0x0800 /* this is an ESS chip */ |
144/* 145 * on some SB16 cards, at times I swap DMA channels. Remember this 146 * so that they can be restored later. 147 */ 148#if 0 149#define BD_F_SWAPPED 0x1000 /* have swapped DMA channels */ 150#endif | |
151#define BD_F_DMARUN 0x2000 152#define BD_F_DMARUN2 0x4000 153 154/* 155 * Mixer registers of SB Pro 156 */ 157#define VOC_VOL 0x04 158#define MIC_VOL 0x0A --- 26 unchanged lines hidden (view full) --- 185 186/* 187 * Mixer registers of SB16 188 */ 189#define SB16_IMASK_L 0x3d 190#define SB16_IMASK_R 0x3e 191#define SB16_OMASK 0x3c 192 | 144#define BD_F_DMARUN 0x2000 145#define BD_F_DMARUN2 0x4000 146 147/* 148 * Mixer registers of SB Pro 149 */ 150#define VOC_VOL 0x04 151#define MIC_VOL 0x0A --- 26 unchanged lines hidden (view full) --- 178 179/* 180 * Mixer registers of SB16 181 */ 182#define SB16_IMASK_L 0x3d 183#define SB16_IMASK_R 0x3e 184#define SB16_OMASK 0x3c 185 |
193/* 194 * sound/sb_mixer.h 195 * 196 * Definitions for the SB Pro and SB16 mixers 197 * 198 * Copyright by Hannu Savolainen 1993 199 * 200 * Redistribution and use in source and binary forms, with or without 201 * modification, are permitted provided that the following conditions are 202 * met: 1. Redistributions of source code must retain the above copyright 203 * notice, this list of conditions and the following disclaimer. 2. 204 * Redistributions in binary form must reproduce the above copyright notice, 205 * this list of conditions and the following disclaimer in the documentation 206 * and/or other materials provided with the distribution. 207 * 208 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY 209 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 210 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 211 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 212 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 213 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 214 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 215 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 216 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 217 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 218 * SUCH DAMAGE. 219 * 220 * Modified: Hunyue Yau Jan 6 1994 Added defines for the Sound Galaxy NX Pro 221 * mixer. 222 * 223 */ | |
224 | 186 |
225#define SBPRO_RECORDING_DEVICES \ 226 (SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD) | |
227 | 187 |
228#define SBPRO_MIXER_DEVICES \ 229 (SOUND_MASK_SYNTH | SOUND_MASK_PCM | SOUND_MASK_LINE | SOUND_MASK_MIC | \ 230 SOUND_MASK_CD | SOUND_MASK_VOLUME) 231 232#define SB16_RECORDING_DEVICES \ 233 (SOUND_MASK_SYNTH | SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD) 234 235#define SB16_MIXER_DEVICES \ 236 (SOUND_MASK_SYNTH | SOUND_MASK_PCM | SOUND_MASK_SPEAKER | \ 237 SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD | \ 238 SOUND_MASK_IGAIN | SOUND_MASK_OGAIN | \ 239 SOUND_MASK_VOLUME | SOUND_MASK_BASS | SOUND_MASK_TREBLE) 240 241#ifdef __SB_MIXER_C__ 242mixer_tab sbpro_mix = { 243 PMIX_ENT(SOUND_MIXER_VOLUME, 0x22, 4, 4, 0x22, 0, 4), 244 PMIX_ENT(SOUND_MIXER_SYNTH, 0x26, 4, 4, 0x26, 0, 4), 245 PMIX_ENT(SOUND_MIXER_PCM, 0x04, 4, 4, 0x04, 0, 4), 246 PMIX_ENT(SOUND_MIXER_LINE, 0x2e, 4, 4, 0x2e, 0, 4), 247 PMIX_ENT(SOUND_MIXER_MIC, 0x0a, 0, 3, 0x00, 0, 0), 248 PMIX_ENT(SOUND_MIXER_CD, 0x28, 4, 4, 0x28, 0, 4), 249}; 250 251mixer_tab ess_mix = { 252 PMIX_ENT(SOUND_MIXER_VOLUME, 0x32, 4, 4, 0x32, 0, 4), 253 PMIX_ENT(SOUND_MIXER_SYNTH, 0x36, 4, 4, 0x26, 0, 4), 254 PMIX_ENT(SOUND_MIXER_PCM, 0x14, 4, 4, 0x04, 0, 4), 255 PMIX_ENT(SOUND_MIXER_SPEAKER, 0x3c, 0, 3, 0x00, 0, 0), 256 PMIX_ENT(SOUND_MIXER_LINE, 0x3e, 4, 4, 0x2e, 0, 4), 257 PMIX_ENT(SOUND_MIXER_MIC, 0x1a, 4, 4, 0x1a, 0, 4), 258 PMIX_ENT(SOUND_MIXER_CD, 0x38, 4, 4, 0x28, 0, 4), 259}; 260 261mixer_tab sb16_mix = { 262 PMIX_ENT(SOUND_MIXER_VOLUME, 0x30, 3, 5, 0x31, 3, 5), 263 PMIX_ENT(SOUND_MIXER_BASS, 0x46, 4, 4, 0x47, 4, 4), 264 PMIX_ENT(SOUND_MIXER_TREBLE, 0x44, 4, 4, 0x45, 4, 4), 265 PMIX_ENT(SOUND_MIXER_SYNTH, 0x34, 3, 5, 0x35, 3, 5), 266 PMIX_ENT(SOUND_MIXER_PCM, 0x32, 3, 5, 0x33, 3, 5), 267 PMIX_ENT(SOUND_MIXER_SPEAKER, 0x3b, 6, 2, 0x00, 0, 0), 268 PMIX_ENT(SOUND_MIXER_LINE, 0x38, 3, 5, 0x39, 3, 5), 269 PMIX_ENT(SOUND_MIXER_MIC, 0x3a, 3, 5, 0x00, 0, 0), 270 PMIX_ENT(SOUND_MIXER_CD, 0x36, 3, 5, 0x37, 3, 5), 271 PMIX_ENT(SOUND_MIXER_IGAIN, 0x3f, 6, 2, 0x40, 6, 2), 272 PMIX_ENT(SOUND_MIXER_OGAIN, 0x41, 6, 2, 0x42, 6, 2) 273}; 274 275#endif /* __SB_MIXER_C__ */ 276 | |