1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2005 by Linus Nielsen Feltzing
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
25 #elif defined(HAVE_WM8751)
27 #elif defined(HAVE_WM8975)
29 #elif defined(HAVE_WM8758)
31 #elif defined(HAVE_WM8731) || defined(HAVE_WM8721)
33 #elif defined(HAVE_TLV320)
35 #elif defined(HAVE_AS3514)
39 extern void audiohw_postinit(void);
48 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
58 #if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)\
59 || defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_WM8731)
67 SOUND_CHAN_STEREO
= 0,
71 SOUND_CHAN_MONO_RIGHT
,
76 typedef void sound_set_type(int value
);
78 const char *sound_unit(int setting
);
79 int sound_numdecimals(int setting
);
80 int sound_steps(int setting
);
81 int sound_min(int setting
);
82 int sound_max(int setting
);
83 int sound_default(int setting
);
84 sound_set_type
* sound_get_fn(int setting
);
86 void sound_set_dsp_callback(int (*func
)(int, intptr_t));
87 void sound_set_volume(int value
);
88 void sound_set_balance(int value
);
89 void sound_set_bass(int value
);
90 void sound_set_treble(int value
);
91 void sound_set_channels(int value
);
92 void sound_set_stereo_width(int value
);
93 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
94 void sound_set_loudness(int value
);
95 void sound_set_avc(int value
);
96 void sound_set_mdb_strength(int value
);
97 void sound_set_mdb_harmonics(int value
);
98 void sound_set_mdb_center(int value
);
99 void sound_set_mdb_shape(int value
);
100 void sound_set_mdb_enable(int value
);
101 void sound_set_superbass(int value
);
102 #endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */
104 void sound_set(int setting
, int value
);
105 int sound_val2phys(int setting
, int value
);
107 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
108 void sound_set_pitch(int permille
);
109 int sound_get_pitch(void);