2 * (C) Copyright 2000-2009
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * See file CREDITS for list of people who contributed to this
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.
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.
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,
25 * Definitions for Command Processor
27 #ifndef __SOUND_COMMON_H
28 #define __SOUND_COMMON_H
31 #include <asm/arch/regs_adi.h>
32 #include <asm/arch/regs_global.h>
33 #include <asm/arch/adi.h>
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)
43 SNDRV_PCM_STREAM_PLAYBACK = 0,
44 SNDRV_PCM_STREAM_CAPTURE,
45 SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
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);
52 #ifdef CONFIG_SOUND_CODEC_SPRD
53 #include "codec/sprd-codec.h"
55 #ifdef CONFIG_SOUND_CODEC_SPRD_V3
56 #include "codec/sprd-codec-v3.h"
58 #ifdef CONFIG_SOUND_DAI_VBC
61 #ifdef CONFIG_SOUND_DAI_VBC_R2P0
62 #include "dai/vbc_r2p0.h"
64 #ifdef CONFIG_SOUND_DAI_I2S
68 #endif /* __COMMAND_H */