/* * s3c-idma.h -- I2S0's Internal Dma driver * * Copyright (c) 2010 Samsung Electronics Co. Ltd * Jaswinder Singh * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * */ #ifndef __S3C_IDMA_H_ #define __S3C_IDMA_H_ #ifdef CONFIG_ARCH_S5PC1XX /* S5PC100 */ #define MAX_LP_BUFF (128 * 1024) #define LP_DMA_PERIOD (105 * 1024) #else #define MAX_LP_BUFF (160 * 1024) #define LP_DMA_PERIOD (128 * 1024) #endif #define LP_TXBUFF_ADDR (0xC0000000) #define S5P_IISLVLINTMASK (0xf<<20) /* dma_state */ #define LPAM_DMA_STOP 0 #define LPAM_DMA_START 1 extern struct snd_soc_platform_driver idma_soc_platform; extern int i2s_trigger_stop; extern bool audio_clk_gated ; void s5p_idma_init(void *regs); #endif /* __S3C_IDMA_H_ */