#ifndef __SND_SOC_SANECHIPS_I2S_H | |
#define __SND_SOC_SANECHIPS_I2S_H | |
#include <linux/printk.h> | |
#define ZX29_I2S_WCLK_SEL 0 | |
#define ZX29_I2S_WCLK_FREQ_26M (26*1000*1000) | |
#define ZX29_I2S_WCLK_FREQ_104M (104*1000*1000) | |
#define ZX29_I2S_WCLK_FREQ_122M88 (12288*10000) | |
#define ZX29_I2S_LOOP_CFG ((volatile unsigned int *)(ZX_SOC_SYS_BASE + 0x60)) | |
#define ZX29_TDM_MOD_CLK_SEL ((volatile unsigned int *)(ZX_MATRIX_CRM_BASE+0x50)) | |
#define ZX29_I2S_DMA_SEL_CFG ((volatile unsigned int *)(ZX_SOC_SYS_BASE+0x120)) | |
//#ifdef CONFIG_KERNEL_GLOBAL_DEBUG | |
#define print_audio(fmt, ...) \ | |
printk(fmt, ##__VA_ARGS__) | |
//#else | |
//#define print_audio(fmt, ...) \ | |
// no_printk(fmt, ##__VA_ARGS__) | |
//#endif | |
#endif /* __SND_SOC_SANECHIPS_I2S_H*/ |