diff options
Diffstat (limited to 'firmware/export/sound.h')
-rw-r--r-- | firmware/export/sound.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/firmware/export/sound.h b/firmware/export/sound.h new file mode 100644 index 0000000000..2fa00d88a9 --- /dev/null +++ b/firmware/export/sound.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2005 by Linus Nielsen Feltzing | ||
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 | #ifndef SOUND_H | ||
20 | #define SOUND_H | ||
21 | |||
22 | #define SOUND_VOLUME 0 | ||
23 | #define SOUND_BASS 1 | ||
24 | #define SOUND_TREBLE 2 | ||
25 | #define SOUND_BALANCE 3 | ||
26 | #define SOUND_LOUDNESS 4 | ||
27 | #define SOUND_AVC 5 | ||
28 | #define SOUND_CHANNELS 6 | ||
29 | #define SOUND_STEREO_WIDTH 7 | ||
30 | #define SOUND_LEFT_GAIN 8 | ||
31 | #define SOUND_RIGHT_GAIN 9 | ||
32 | #define SOUND_MIC_GAIN 10 | ||
33 | #define SOUND_MDB_STRENGTH 11 | ||
34 | #define SOUND_MDB_HARMONICS 12 | ||
35 | #define SOUND_MDB_CENTER 13 | ||
36 | #define SOUND_MDB_SHAPE 14 | ||
37 | #define SOUND_MDB_ENABLE 15 | ||
38 | #define SOUND_SUPERBASS 16 | ||
39 | #define SOUND_NUMSETTINGS 17 | ||
40 | |||
41 | #define SOUND_CHAN_STEREO 0 | ||
42 | #define SOUND_CHAN_MONO 1 | ||
43 | #define SOUND_CHAN_CUSTOM 2 | ||
44 | #define SOUND_CHAN_MONO_LEFT 3 | ||
45 | #define SOUND_CHAN_MONO_RIGHT 4 | ||
46 | #define SOUND_CHAN_KARAOKE 5 | ||
47 | |||
48 | void sound_set(int setting, int value); | ||
49 | int sound_min(int setting); | ||
50 | int sound_max(int setting); | ||
51 | int sound_default(int setting); | ||
52 | void sound_channel_config(int configuration); | ||
53 | int sound_val2phys(int setting, int value); | ||
54 | const char *sound_unit(int setting); | ||
55 | int sound_numdecimals(int setting); | ||
56 | int sound_steps(int setting); | ||
57 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) || defined(SIMULATOR) | ||
58 | void sound_set_pitch(int percent); | ||
59 | #endif | ||
60 | |||
61 | #endif | ||