📄 mxc-pcm.h
字号:
/*
*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -