diff options
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h new file mode 100644 index 0000000000..38e68138c9 --- /dev/null +++ b/firmware/export/audiohw.h | |||
@@ -0,0 +1,73 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Christian Gmeiner | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef _AUDIOHW_H_ | ||
21 | #define _AUDIOHW_H_ | ||
22 | |||
23 | #include "config.h" | ||
24 | |||
25 | enum { | ||
26 | SOUND_VOLUME = 0, | ||
27 | SOUND_BASS, | ||
28 | SOUND_TREBLE, | ||
29 | SOUND_BALANCE, | ||
30 | SOUND_CHANNELS, | ||
31 | SOUND_STEREO_WIDTH, | ||
32 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
33 | SOUND_LOUDNESS, | ||
34 | SOUND_AVC, | ||
35 | SOUND_MDB_STRENGTH, | ||
36 | SOUND_MDB_HARMONICS, | ||
37 | SOUND_MDB_CENTER, | ||
38 | SOUND_MDB_SHAPE, | ||
39 | SOUND_MDB_ENABLE, | ||
40 | SOUND_SUPERBASS, | ||
41 | #endif | ||
42 | #if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)\ | ||
43 | || defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_WM8731) | ||
44 | SOUND_LEFT_GAIN, | ||
45 | SOUND_RIGHT_GAIN, | ||
46 | SOUND_MIC_GAIN, | ||
47 | #endif | ||
48 | }; | ||
49 | |||
50 | enum Channel { | ||
51 | SOUND_CHAN_STEREO, | ||
52 | SOUND_CHAN_MONO, | ||
53 | SOUND_CHAN_CUSTOM, | ||
54 | SOUND_CHAN_MONO_LEFT, | ||
55 | SOUND_CHAN_MONO_RIGHT, | ||
56 | SOUND_CHAN_KARAOKE, | ||
57 | SOUND_CHAN_NUM_MODES, | ||
58 | }; | ||
59 | |||
60 | struct sound_settings_info { | ||
61 | const char *unit; | ||
62 | int numdecimals; | ||
63 | int steps; | ||
64 | int minval; | ||
65 | int maxval; | ||
66 | int defaultval; | ||
67 | }; | ||
68 | |||
69 | /* This struct is used by every driver to export its min/max/default values for | ||
70 | * its audio settings. Keep in mind that the order must be correct! */ | ||
71 | extern const struct sound_settings_info audiohw_settings[]; | ||
72 | |||
73 | #endif /* _AUDIOHW_H_ */ | ||