audio_iocmd.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 45 行
H
45 行
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description:
*
* Author: Amlogic Software
* Created: 1/26/2006 7:52PM
*
*******************************************************************/
#ifndef AUDIO_IOCMD_H
#define AUDIO_IOCMD_H
#define DECLARE_DEVICE_DRIVER_INIT(name) \
avfs_device_driver audio_device_##name##_init(avfs_device_major_number major, avfs_device_minor_number minor, void *arg)
#define DECLARE_DEVICE_DRIVER_OPEN(name) \
avfs_device_driver audio_device_##name##_open(avfs_device_major_number major, avfs_device_minor_number minor, void *arg)
#define DECLARE_DEVICE_DRIVER_CLOSE(name) \
avfs_device_driver audio_device_##name##_close(avfs_device_major_number major, avfs_device_minor_number minor, void *arg)
#define DECLARE_DEVICE_DRIVER_IOCTL(name) \
avfs_device_driver audio_device_##name##_ioctl(avfs_device_major_number major, avfs_device_minor_number minor, void *arg)
#define DECLARE_DEVICE_DRIVER_READ(name) \
avfs_device_driver audio_device_##name##_read(avfs_device_major_number major, avfs_device_minor_number minor, void *arg)
#define DECLARE_DEVICE_DRIVER_WRITE(name) \
avfs_device_driver audio_device_##name##_write(avfs_device_major_number major, avfs_device_minor_number minor, void *arg)
/* audio device common IOCTL commands */
#define IOCMD_COMMON_GETNAME 0x00
#define IOCMD_COMMON_REGISTER_CHAIN 0x01
#define IOCMD_COMMON_UNREGISTER_CHAIN 0x02
#define IOCMD_COMMON_NOTIFY 0x03
#define IOCMD_COMMON_GET_USER_CONFIG 0x04
#define IOCMD_COMMON_SET_USER_CONFIG 0x05
#define IOCMD_COMMON_GET_WORKING_CONFIG 0x06
#define IOCMD_COMMON_SET_WORKING_CONFIG 0x07
#define IOCMD_CODEC_START 0x10
#define IOCMD_CODEC_PAUSE 0x11
#define IOCMD_CODEC_PLAY 0x12
#define IOCMD_CODEC_GET_STATUS_PLAY 0x13
#define IOCMD_CODEC_STOP 0x14
#define IOCMD_CODEC_GET_STREAM_INFO 0x15
#define IOCMD_CODEC_WRITE 0x16
#endif /* AUDIO_IOCMD_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?