Correct beast manual install instructions in Windows.
[kugel-rb.git] / firmware / drivers / dac.h
blob0083fc5fac798d6b644f68021dd2cb120ce1fe3c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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 _DAC_H_
22 #define _DAC_H_
24 #include "config.h"
26 #ifdef HAVE_DAC3550A
29 DAC I2C defs
31 #define DAC_ADR 0x9a
32 #define DAC_DEV_WRITE (DAC_ADR | 0x00)
34 #define DAC_REG_WRITE 0xc0
36 /* registers..*/
37 #define DAC_SR_REG 1
38 #define DAC_AVOL 2
39 #define DAC_GCFG 3
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
48 #endif