2 * rockchip-pcm.h - ALSA PCM interface for the Rockchip rk28 SoC
4 * Driver for rockchip iis audio
5 * Copyright (C) 2009 lhh
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.
13 #ifndef _ROCKCHIP_PCM_H
14 #define _ROCKCHIP_PCM_H
16 #include <mach/hardware.h>
18 #define ST_RUNNING (1<<0)
19 #define ST_OPENED (1<<1)
22 struct rockchip_dma_client {
26 struct rockchip_pcm_dma_params {
27 struct rockchip_dma_client *client; /* stream identifier */
28 int channel; /* Channel ID */
30 int dma_size; /* Size of the DMA transfer */
33 extern struct snd_soc_platform rk29_soc_platform;
35 #endif /* _ROCKCHIP_PCM_H */