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)
32 #elif defined(HAVE_WM8758)
34 #elif defined(HAVE_WM8731) || defined(HAVE_WM8721)
36 #elif defined(HAVE_TLV320)
38 #elif defined(HAVE_AS3514)
40 #elif defined(HAVE_MAS35XX)
51 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
61 #if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)\
62 || defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_WM8731) \
63 || defined(HAVE_AS3514)
75 SOUND_CHAN_MONO_RIGHT
,
80 struct sound_settings_info
{
89 /* This struct is used by every driver to export its min/max/default values for
90 * its audio settings. Keep in mind that the order must be correct! */
91 extern const struct sound_settings_info audiohw_settings
[];
93 /* All usable functions implemented by a audio codec drivers. Most of
94 * the function in sound settings are only called, when in audio codecs
95 * .h file suitable defines are added.
99 * Initialize audio codec to a well defined state.
101 void audiohw_init(void);
106 void audiohw_close(void);
109 * Mute or enable sound.
110 * @param mute true or false
112 void audiohw_mute(bool mute
);
114 #endif /* _AUDIOHW_H_ */