2 * sound/arm/omap/omap-alsa-sx1-mixer.h
4 * Alsa codec Driver for Siemens SX1 board.
5 * based on omap-alsa-tsc2101-mixer.c
7 * Copyright (C) 2006 Vladimir Ananiev (vovan888 at gmail com)
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.
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.
21 #ifndef OMAPALSASX1MIXER_H_
22 #define OMAPALSASX1MIXER_H_
24 #include "omap-alsa-dma.h"
26 #define PLAYBACK_TARGET_COUNT 0x03
27 #define PLAYBACK_TARGET_LOUDSPEAKER 0x00
28 #define PLAYBACK_TARGET_HEADPHONE 0x01
29 #define PLAYBACK_TARGET_CELLPHONE 0x02
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 #define REC_SRC_SINGLE_ENDED_MICIN_HED 0x00 /* oss code referred to MIXER_LINE */
35 #define REC_SRC_SINGLE_ENDED_MICIN_HND 0x01 /* oss code referred to MIXER_MIC */
36 #define REC_SRC_SINGLE_ENDED_AUX1 0x02
37 #define REC_SRC_SINGLE_ENDED_AUX2 0x03
38 #define REC_SRC_MICIN_HED_AND_AUX1 0x04
39 #define REC_SRC_MICIN_HED_AND_AUX2 0x05
40 #define REC_SRC_MICIN_HND_AND_AUX1 0x06
41 #define REC_SRC_MICIN_HND_AND_AUX2 0x07
43 #define DEFAULT_OUTPUT_VOLUME 5 /* default output volume to dac dgc */
44 #define DEFAULT_INPUT_VOLUME 2 /* default record volume */