8c5932409e42d3b87b8296b56d8b9c073750bb64
[firefly-linux-kernel-4.4.55.git] / sound / soc / rk29 / rk29_pcm.h
1 /*
2  * rockchip-pcm.h - ALSA PCM interface for the Rockchip rk28 SoC
3  *
4  * Driver for rockchip iis audio
5  *  Copyright (C) 2009 lhh
6  *
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 #ifndef _ROCKCHIP_PCM_H
14 #define _ROCKCHIP_PCM_H
15
16 #include <mach/hardware.h>
17
18 #define ST_RUNNING              (1<<0)
19 #define ST_OPENED               (1<<1)
20
21 /* dma buffer */
22 struct rockchip_dma_client {
23         char                *name;
24 };
25
26 struct rockchip_pcm_dma_params {
27         struct rockchip_dma_client *client;     /* stream identifier */
28         int channel;                            /* Channel ID */
29         dma_addr_t dma_addr;
30         int dma_size;                   /* Size of the DMA transfer */
31 };
32
33 extern struct snd_soc_platform rk29_soc_platform;
34
35 #endif /* _ROCKCHIP_PCM_H */