Import 2.3.18pre1
[davej-history.git] / drivers / sound / sb_mixer.h
blobd53df66ffea8c5e5c9ba5e8077d4ebe36af814d2
1 /*
2 * sound/sb_mixer.h
3 *
4 * Definitions for the SB Pro and SB16 mixers
5 */
6 /*
7 * Copyright (C) by Hannu Savolainen 1993-1997
9 * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
10 * Version 2 (June 1991). See the "COPYING" file distributed with this software
11 * for more info.
15 * Modified:
16 * Hunyue Yau Jan 6 1994
17 * Added defines for the Sound Galaxy NX Pro mixer.
19 * Rolf Fokkens Dec 20 1998
20 * Added defines for some ES188x chips.
22 * Rolf Fokkens Dec 27 1998
23 * Moved static stuff to sb_mixer.c
26 #include <linux/config.h>
27 #include "legacy.h"
29 #ifdef CONFIG_SBDSP
32 * Mixer registers
34 * NOTE! RECORD_SRC == IN_FILTER
37 /*
38 * Mixer registers of SB Pro
40 #define VOC_VOL 0x04
41 #define MIC_VOL 0x0A
42 #define MIC_MIX 0x0A
43 #define RECORD_SRC 0x0C
44 #define IN_FILTER 0x0C
45 #define OUT_FILTER 0x0E
46 #define MASTER_VOL 0x22
47 #define FM_VOL 0x26
48 #define CD_VOL 0x28
49 #define LINE_VOL 0x2E
50 #define IRQ_NR 0x80
51 #define DMA_NR 0x81
52 #define IRQ_STAT 0x82
53 #define OPSW 0x3c
56 * Additional registers on the SG NX Pro
58 #define COVOX_VOL 0x42
59 #define TREBLE_LVL 0x44
60 #define BASS_LVL 0x46
62 #define FREQ_HI (1 << 3)/* Use High-frequency ANFI filters */
63 #define FREQ_LOW 0 /* Use Low-frequency ANFI filters */
64 #define FILT_ON 0 /* Yes, 0 to turn it on, 1 for off */
65 #define FILT_OFF (1 << 5)
67 #define MONO_DAC 0x00
68 #define STEREO_DAC 0x02
71 * Mixer registers of SB16
73 #define SB16_OMASK 0x3c
74 #define SB16_IMASK_L 0x3d
75 #define SB16_IMASK_R 0x3e
77 #define LEFT_CHN 0
78 #define RIGHT_CHN 1
81 * 3DSE register of AWE32/64
83 #define AWE_3DSE 0x90
86 * Mixer registers of ALS007
88 #define ALS007_RECORD_SRC 0x6c
89 #define ALS007_OUTPUT_CTRL1 0x3c
90 #define ALS007_OUTPUT_CTRL2 0x4c
92 #define MIX_ENT(name, reg_l, bit_l, len_l, reg_r, bit_r, len_r) \
93 {{reg_l, bit_l, len_l}, {reg_r, bit_r, len_r}}
96 * Recording sources (SB Pro)
99 #define SRC__MIC 1 /* Select Microphone recording source */
100 #define SRC__CD 3 /* Select CD recording source */
101 #define SRC__LINE 7 /* Use Line-in for recording source */
104 * Recording sources for ALS-007
107 #define ALS007_MIC 4
108 #define ALS007_LINE 6
109 #define ALS007_CD 2
110 #define ALS007_SYNTH 7
112 #endif