1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Implementation of MAS35xx audiohw api driver.
12 * Copyright (C) 2007 by Christian Gmeiner
14 * All files in this archive are subject to the GNU General Public License.
15 * See the file COPYING in the source tree root for full license agreement.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
27 #if CONFIG_CODEC == MAS3507D
29 #define VOLUME_MIN -780
30 #define VOLUME_MAX 180
31 #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP)
33 #else /* CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F */
35 /* MAS3587F and MAS3539F handle clipping prevention internally so we do not need
36 * the prescaler -> CLIPPING_CAP
39 #define VOLUME_MIN -400
40 #define VOLUME_MAX 600
41 #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | BALANCE_CAP | CLIPPING_CAP)
46 #if CONFIG_CODEC == MAS3507D
48 static const unsigned int bass_table
[] =
83 static const unsigned int treble_table
[] =
118 static const unsigned int prescale_table
[] =
137 #endif /*CONFIG_CODEC == MAS3507D*/
139 #endif /* _MAS35XX_H */