audio_output.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 72 行
H
72 行
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description:
*
* Author: Amlogic Software
* Created: Thu Nov 10 23:53:52 2005
*
*******************************************************************/
#ifndef _AUDIO_OUTPUT_H
#define _AUDIO_OUTPUT_H
#include "ioapi.h"
DECLARE_DEVICE_DRIVER_INIT(audio_output);
DECLARE_DEVICE_DRIVER_OPEN(audio_output);
DECLARE_DEVICE_DRIVER_CLOSE(audio_output);
DECLARE_DEVICE_DRIVER_READ(audio_output);
DECLARE_DEVICE_DRIVER_WRITE(audio_output);
DECLARE_DEVICE_DRIVER_IOCTL(audio_output);
#define DEVICE_TABLE_AUDIO_OUTPUT \
{ \
audio_device_audio_output_init, \
audio_device_audio_output_open, \
audio_device_audio_output_close, \
audio_device_audio_output_read, \
audio_device_audio_output_write, \
audio_device_audio_output_ioctl, \
}
/* audio device private IOCTL commands */
#define IOCMD_OUTPUT_MUTE 0x0100
#define IOCMD_OUTPUT_UNMUTE 0x0101
#define IOCMD_OUTPUT_INSTALL_MUTEHOOK_BEFORE 0x0102
#define IOCMD_OUTPUT_INSTALL_MUTEHOOK_AFTER 0x0103
#define IOCMD_OUTPUT_GET_CHANNELSWAP 0x0104
#define IOCMD_OUTPUT_SET_CHANNELSWAP 0x0105
typedef enum {
CHANNEL_SWAP_LR = 0,
CHANNEL_SWAP_LL,
CHANNEL_SWAP_RR,
CHANNEL_SWAP_MIX
} audio_output_swap_e;
typedef struct {
/* audio clock */
unsigned short clock;
/* analog output */
unsigned short i2s_mode;
unsigned short i2s_dac_mode;
unsigned short i2s_preemphsis;
/* digital output */
unsigned short i958_buf_start_addr;
unsigned short i958_buf_blksize;
unsigned short i958_int_flag;
unsigned short i958_mode;
unsigned short i958_sync_mode;
unsigned short i958_preemphsis;
unsigned short i958_copyright;
unsigned short bpf;
unsigned short brst;
unsigned short length;
unsigned short paddsize;
_aiu_958_sync_search_t sync_search;
_aiu_958_channel_status_t chan_status;
} _audio_output_config_t;
#endif /* _AUDIO_OUTPUT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?