1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2005 by Linus Nielsen Feltzing
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
27 typedef void sound_set_type(int value
);
29 const char *sound_unit(int setting
);
30 int sound_numdecimals(int setting
);
31 int sound_steps(int setting
);
32 int sound_min(int setting
);
33 int sound_max(int setting
);
34 int sound_default(int setting
);
35 sound_set_type
* sound_get_fn(int setting
);
37 void sound_set_dsp_callback(int (*func
)(int, intptr_t));
38 void sound_set_volume(int value
);
39 void sound_set_balance(int value
);
40 void sound_set_bass(int value
);
41 void sound_set_treble(int value
);
42 void sound_set_channels(int value
);
43 void sound_set_stereo_width(int value
);
44 #if defined(HAVE_WM8758) || defined(HAVE_WM8985)
45 void sound_set_bass_cutoff(int value
);
46 void sound_set_treble_cutoff(int value
);
48 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
49 void sound_set_loudness(int value
);
50 void sound_set_avc(int value
);
51 void sound_set_mdb_strength(int value
);
52 void sound_set_mdb_harmonics(int value
);
53 void sound_set_mdb_center(int value
);
54 void sound_set_mdb_shape(int value
);
55 void sound_set_mdb_enable(int value
);
56 void sound_set_superbass(int value
);
57 #endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */
59 void sound_set(int setting
, int value
);
60 int sound_val2phys(int setting
, int value
);
62 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
63 void sound_set_pitch(int permille
);
64 int sound_get_pitch(void);