audio_abuf_ctrl.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 46 行
H
46 行
#ifndef _AUDIO_ABUF_CTRL_H_
#define _AUDIO_ABUF_CTRL_H_
#include "ioapi.h"
DECLARE_DEVICE_DRIVER_INIT(abuf);
DECLARE_DEVICE_DRIVER_OPEN(abuf);
DECLARE_DEVICE_DRIVER_CLOSE(abuf);
DECLARE_DEVICE_DRIVER_READ(abuf);
DECLARE_DEVICE_DRIVER_WRITE(abuf);
DECLARE_DEVICE_DRIVER_IOCTL(abuf);
#define DEVICE_TABLE_AUDIO_ABUF \
{ \
audio_device_abuf_init, \
audio_device_abuf_open, \
audio_device_abuf_close, \
audio_device_abuf_read, \
audio_device_abuf_write, \
audio_device_abuf_ioctl, \
}
#define ABUF_MODE_RECEIVE 0
#define ABUF_MODE_ECHO 1
#define ABUF_MODE_MIX 2
#define ABUF_FREQ_32 0x03
#define ABUF_FREQ_44 0x02
#define ABUF_FREQ_48 0x00
#define ECHO_PAUSE 0x01
#define ECHO_REPEAT 0x02
#define ECHO_FLUSH 0x04
#define ECHO_RESET 0x08
#define ECHO_PLAY_ONCE 0x10
typedef struct{
int mode; // receive, echo, mix
int start; // start addr, must 32*4 bytes align
int size; // total bytes, must 32*4 bytes align
int freq; // freq for ADC
}_audio_codec_config_abuf_t;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?