diff options
Diffstat (limited to 'firmware/drivers/audio/mas35xx.c')
-rw-r--r-- | firmware/drivers/audio/mas35xx.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/firmware/drivers/audio/mas35xx.c b/firmware/drivers/audio/mas35xx.c new file mode 100644 index 0000000000..6a9d290049 --- /dev/null +++ b/firmware/drivers/audio/mas35xx.c | |||
@@ -0,0 +1,54 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: wm8975.c 13453 2007-05-20 23:10:15Z christian $ | ||
9 | * | ||
10 | * Driver for MAS35xx audio codec | ||
11 | * | ||
12 | * | ||
13 | * Copyright (c) 2007 by Christian Gmeiner | ||
14 | * | ||
15 | * All files in this archive are subject to the GNU General Public License. | ||
16 | * See the file COPYING in the source tree root for full license agreement. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | |||
23 | #include "config.h" | ||
24 | #include "mas35xx.h" | ||
25 | |||
26 | const struct sound_settings_info audiohw_settings[] = { | ||
27 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
28 | [SOUND_VOLUME] = {"dB", 0, 1,-100, 12, -25}, | ||
29 | [SOUND_BASS] = {"dB", 0, 1, -12, 12, 6}, | ||
30 | [SOUND_TREBLE] = {"dB", 0, 1, -12, 12, 6}, | ||
31 | #else /* MAS3507D */ | ||
32 | [SOUND_VOLUME] = {"dB", 0, 1, -78, 18, -18}, | ||
33 | [SOUND_BASS] = {"dB", 0, 1, -15, 15, 7}, | ||
34 | [SOUND_TREBLE] = {"dB", 0, 1, -15, 15, 7}, | ||
35 | #endif | ||
36 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | ||
37 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | ||
38 | [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100}, | ||
39 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
40 | [SOUND_LOUDNESS] = {"dB", 0, 1, 0, 17, 0}, | ||
41 | [SOUND_AVC] = {"", 0, 1, -1, 4, 0}, | ||
42 | [SOUND_MDB_STRENGTH] = {"dB", 0, 1, 0, 127, 48}, | ||
43 | [SOUND_MDB_HARMONICS] = {"%", 0, 1, 0, 100, 50}, | ||
44 | [SOUND_MDB_CENTER] = {"Hz", 0, 10, 20, 300, 60}, | ||
45 | [SOUND_MDB_SHAPE] = {"Hz", 0, 10, 50, 300, 90}, | ||
46 | [SOUND_MDB_ENABLE] = {"", 0, 1, 0, 1, 0}, | ||
47 | [SOUND_SUPERBASS] = {"", 0, 1, 0, 1, 0}, | ||
48 | #endif | ||
49 | #if CONFIG_CODEC == MAS3587F | ||
50 | [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 15, 8}, | ||
51 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 15, 8}, | ||
52 | [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 15, 2}, | ||
53 | #endif | ||
54 | }; | ||