a bit of code cleanup.. use a single function to get the statusbar height (or lack...
[Rockbox.git] / firmware / drivers / dac.h
blobdc953c1420d11ad984fa9231c80e2788b6b91f34
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
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 ****************************************************************************/
19 #ifndef _DAC_H_
20 #define _DAC_H_
22 #include "config.h"
24 #ifdef HAVE_DAC3550A
27 DAC I2C defs
29 #define DAC_ADR 0x9a
30 #define DAC_DEV_WRITE (DAC_ADR | 0x00)
32 #define DAC_REG_WRITE 0xc0
34 /* registers..*/
35 #define DAC_SR_REG 1
36 #define DAC_AVOL 2
37 #define DAC_GCFG 3
39 extern int dac_volume(unsigned int left, unsigned int right, bool deemph);
40 extern void dac_enable(bool enable);
41 extern void dac_line_in(bool enable);
42 extern void dac_init(void);
44 #endif
46 #endif