Update German translation
[maemo-rb.git] / firmware / export / dac3550a.h
blob3744b221edc0a1109112a7b95c1eddd44f2a7893
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: dac.h 24158 2010-01-03 11:31:14Z Buschel $
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * 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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _DAC3550A_H_
22 #define _DAC3550A_H_
24 #include "config.h"
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 /* function prototypes */
40 extern int tenthdb2reg(int db);
41 extern int dac_volume(unsigned int left, unsigned int right, bool deemph);
42 extern void dac_enable(bool enable);
43 extern void dac_line_in(bool enable);
44 extern void dac_init(void);
46 #endif /* _DAC3550A_H_ */