blob: 0827d4388f307d9076825559cf8efb2228d728a6 [file] [log] [blame]
Rob Purchase47ea0302008-01-14 22:04:48 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Dave Chapman
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Rob Purchase47ea0302008-01-14 22:04:48 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef _WM8985_H
23#define _WM8985_H
24
25/* volume/balance/treble/bass interdependency */
Rob Purchase159f8ee2008-04-09 22:20:04 +000026#define VOLUME_MIN -570
Rob Purchase47ea0302008-01-14 22:04:48 +000027#define VOLUME_MAX 60
28
Christian Gmeiner59357d42008-05-16 19:28:45 +000029#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | BASS_CUTOFF_CAP | TREBLE_CUTOFF_CAP)
Christian Gmeiner83915262008-04-28 08:37:18 +000030
Rob Purchase47ea0302008-01-14 22:04:48 +000031extern int tenthdb2master(int db);
32
Rob Purchased6159ea2008-06-22 18:48:22 +000033extern void audiohw_set_headphone_vol(int vol_l, int vol_r);
Christian Gmeiner06971be2008-02-13 11:19:23 +000034extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
Rob Purchase47ea0302008-01-14 22:04:48 +000035
Rob Purchase47ea0302008-01-14 22:04:48 +000036#endif /* _WM8985_H */