1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 by Christian Gmeiner
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 ****************************************************************************/
28 #elif defined(HAVE_WM8751)
30 #elif defined(HAVE_WM8975) || defined(HAVE_WM8978)
32 #elif defined(HAVE_WM8758)
34 #elif defined(HAVE_WM8721)
36 #elif defined(HAVE_WM8731)
38 #elif defined(HAVE_TLV320)
40 #elif defined(HAVE_AS3514)
42 #elif defined(HAVE_MAS35XX)
53 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
63 #if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)\
64 || defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_WM8731) \
65 || defined(HAVE_AS3514) || defined(HAVE_WM8978)
77 SOUND_CHAN_MONO_RIGHT
,
82 struct sound_settings_info
{
91 /* This struct is used by every driver to export its min/max/default values for
92 * its audio settings. Keep in mind that the order must be correct! */
93 extern const struct sound_settings_info audiohw_settings
[];
95 /* All usable functions implemented by a audio codec drivers. Most of
96 * the function in sound settings are only called, when in audio codecs
97 * .h file suitable defines are added.
101 * Initialize audio codec to a well defined state.
103 void audiohw_init(void);
108 void audiohw_close(void);
111 * Mute or enable sound.
112 * @param mute true or false
114 void audiohw_mute(bool mute
);
116 #endif /* _AUDIOHW_H_ */