mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 07:31:54 +02:00
34 lines
737 B
C
34 lines
737 B
C
|
/*
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*/
|
||
|
|
||
|
#ifndef _JZ4740_PCM_H
|
||
|
#define _JZ4740_PCM_H
|
||
|
|
||
|
#include <asm/jzsoc.h>
|
||
|
|
||
|
#define ST_RUNNING (1<<0)
|
||
|
#define ST_OPENED (1<<1)
|
||
|
|
||
|
#define AIC_START_DMA (1<<0)
|
||
|
#define AIC_END_DMA (1<<1)
|
||
|
|
||
|
struct jz4740_dma_client {
|
||
|
char *name;
|
||
|
};
|
||
|
|
||
|
struct jz4740_pcm_dma_params {
|
||
|
struct jz4740_dma_client *client; /* stream identifier */
|
||
|
int channel; /* Channel ID */
|
||
|
dma_addr_t dma_addr;
|
||
|
int dma_size; /* Size of the DMA transfer */
|
||
|
};
|
||
|
|
||
|
/* platform data */
|
||
|
extern struct snd_soc_platform jz4740_soc_platform;
|
||
|
|
||
|
#endif
|