]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - sound/arm/omap/omap-alsa-sx1-mixer.h
Merge current mainline tree into linux-omap tree
[linux-2.6-omap-h63xx.git] / sound / arm / omap / omap-alsa-sx1-mixer.h
1 /*
2  * sound/arm/omap/omap-alsa-sx1-mixer.h
3  *
4  * Alsa codec Driver for Siemens SX1 board.
5  * based on omap-alsa-tsc2101-mixer.c
6  *
7  *  Copyright (C) 2006 Vladimir Ananiev (vovan888 at gmail com)
8  *
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU General Public License as published by the
12  * Free Software Foundation; either version 2 of the License, or (at your
13  * option) any later version.
14  *
15  * You should have received a copy of the  GNU General Public License along
16  * with this program; if not, write  to the Free Software Foundation, Inc.,
17  * 675 Mass Ave, Cambridge, MA 02139, USA.
18  *
19  */
20
21 #ifndef OMAPALSASX1MIXER_H_
22 #define OMAPALSASX1MIXER_H_
23
24 #include "omap-alsa-dma.h"
25
26 #define PLAYBACK_TARGET_COUNT           0x03
27 #define PLAYBACK_TARGET_LOUDSPEAKER     0x00
28 #define PLAYBACK_TARGET_HEADPHONE       0x01
29 #define PLAYBACK_TARGET_CELLPHONE       0x02
30
31 /* following are used for register 03h Mixer PGA control bits
32    D7-D5 for selecting record source */
33 #define REC_SRC_TARGET_COUNT            0x08
34 /* OSS code referred to MIXER_LINE */
35 #define REC_SRC_SINGLE_ENDED_MICIN_HED  0x00
36 /* OSS code referred to MIXER_MIC */
37 #define REC_SRC_SINGLE_ENDED_MICIN_HND  0x01
38 #define REC_SRC_SINGLE_ENDED_AUX1       0x02
39 #define REC_SRC_SINGLE_ENDED_AUX2       0x03
40 #define REC_SRC_MICIN_HED_AND_AUX1      0x04
41 #define REC_SRC_MICIN_HED_AND_AUX2      0x05
42 #define REC_SRC_MICIN_HND_AND_AUX1      0x06
43 #define REC_SRC_MICIN_HND_AND_AUX2      0x07
44
45 #define DEFAULT_OUTPUT_VOLUME 5 /* default output volume to dac dgc */
46 #define DEFAULT_INPUT_VOLUME  2 /* default record volume */
47
48 #endif