1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Implementation of MAS35xx audiohw api driver.
12 * Copyright (C) 2007 by Christian Gmeiner
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
29 #if CONFIG_CODEC == MAS3507D
31 #define VOLUME_MIN -780
32 #define VOLUME_MAX 180
33 #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP)
35 #else /* CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F */
37 /* MAS3587F and MAS3539F handle clipping prevention internally so we do not need
38 * the prescaler -> CLIPPING_CAP
41 #define VOLUME_MIN -400
42 #define VOLUME_MAX 600
43 #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | BALANCE_CAP | CLIPPING_CAP)
48 #if CONFIG_CODEC == MAS3507D
50 static const unsigned int bass_table
[] =
85 static const unsigned int treble_table
[] =
120 static const unsigned int prescale_table
[] =
139 #endif /*CONFIG_CODEC == MAS3507D*/
141 #endif /* _MAS35XX_H */