Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into...
[firefly-linux-kernel-4.4.55.git] / sound / soc / rockchip / rk_pcm.h
1 /*
2  * rockchip-pcm.h - ALSA PCM interface for the Rockchip rk28 SoC
3  *
4  * Driver for rockchip iis audio
5  *
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 #ifndef _ROCKCHIP_PCM_H
13 #define _ROCKCHIP_PCM_H
14
15 #include <mach/hardware.h>
16
17 #define ST_RUNNING              (1<<0)
18 #define ST_OPENED               (1<<1)
19
20 struct rockchip_pcm_dma_params {
21         struct rk29_dma_client *client; /* stream identifier */
22         int channel;                            /* Channel ID */
23         dma_addr_t dma_addr;
24         int dma_size;                           /* Size of the DMA transfer */
25         int flag;                               /*burst change flag*/
26 };
27
28 extern struct snd_soc_platform rk29_soc_platform;
29
30 #endif /* _ROCKCHIP_PCM_H */