mxc-pcm.h
来自「根据芯片WM8782在LINUX环境下实现的音频驱动」· C头文件 代码 · 共 42 行
H
42 行
/*
*
* mxc-pcm.h
*
*/
#ifndef __MXC_PCM_H__
#define __MXC_PCM_H__
typedef struct audio_stream{
char* id;
int stream_id;
int dma_channel;
//we are using this stream for transfer now
int active;
// are we recording - flag used to do DMA trans. for sync
int tx_spin;
//for locking in DMA operations
spinlock_t dma_lock;
//int mode;
int period; /* Index of current period */
int periods; /* Number of periods buffered to DMA */
// unsigned int old_offset;
snd_pcm_substream_t* substream;
}audio_stream_t;
typedef struct mx27_codec_t{
struct snd_card* card;
struct snd_pcm *pcm;
audio_stream_t s[2]; /* capture */
struct wm8782_platform_data * pdata;
}mx27_codec_t;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?