tizen 2.4 release
[kernel/u-boot-tm1.git] / drivers / sound / sound_common.h
1 /*
2  * (C) Copyright 2000-2009
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23
24 /*
25  *  Definitions for Command Processor
26  */
27 #ifndef __SOUND_COMMON_H
28 #define __SOUND_COMMON_H
29
30 #ifdef CONFIG_SC8825
31 #include <asm/arch/regs_adi.h>
32 #include <asm/arch/regs_global.h>
33 #include <asm/arch/adi.h>
34 #endif
35
36 #if defined(CONFIG_SC8830) || (defined CONFIG_SC9630)
37 #include <asm/arch/sprd_reg.h>
38 #define ANA_REG_ADDR_START      (SPRD_ADI_PHYS + 0x40)
39 #define ANA_REG_ADDR_END        (SPRD_ADI_PHYS + 0xFFFF)
40 #endif
41
42 enum {
43         SNDRV_PCM_STREAM_PLAYBACK = 0,
44         SNDRV_PCM_STREAM_CAPTURE,
45         SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
46 };
47
48 int snd_reg_read(int reg);
49 int snd_reg_write(int reg, int value, int mask);
50 int snd_reg_wirte_f(int reg, int value);
51
52 #ifdef CONFIG_SOUND_CODEC_SPRD
53 #include "codec/sprd-codec.h"
54 #endif
55 #ifdef CONFIG_SOUND_CODEC_SPRD_V3
56 #include "codec/sprd-codec-v3.h"
57 #endif
58 #ifdef CONFIG_SOUND_DAI_VBC
59 #include "dai/vbc.h"
60 #endif
61 #ifdef CONFIG_SOUND_DAI_VBC_R2P0
62 #include "dai/vbc_r2p0.h"
63 #endif
64 #ifdef CONFIG_SOUND_DAI_I2S
65 #include "dai/i2s.h"
66 #endif
67
68 #endif /* __COMMAND_H */