/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2021. All rights reserved. * Description: video/audio interface head. * Author: Hisilicon * Create: 2019-11-01 */ #ifndef __ADP_UAPI_EXT_H__ #define __ADP_UAPI_EXT_H__ #include "td_type.h" #include "uapi_audio.h" #include "uapi_stream.h" #include "uapi_system.h" #include "uapi_avplay.h" #include "adp_common_ext.h" #include "uapi_ai.h" #include "ha_codec.h" #include "uapi_acodec.h" #define TSPLAY_SUPPORT_VID_CHAN #define TSPLAY_SUPPORT_AUD_CHAN #define DOLBYPLUS_HACODEC_SUPPORT #define SLIC_AUDIO_DEVICE_ENABLE #define G711_FRAME_LEN 320 /* sound common interface */ td_s32 adp_uapi_snd_init(td_void); td_s32 adp_uapi_snd_deinit(td_void); #ifdef EXT_AUDIO_AI_SUPPORT /* only support single AI chn */ td_s32 adp_uapi_ai_init(uapi_ai_port ai_src, td_handle *ai_handle, td_handle *track_slave, td_handle *a_track_vir); td_s32 adp_uapi_ai_deinit(td_handle h_ai, td_handle h_ai_slave, td_handle h_ai_vir); #endif /* avplay common interface */ td_s32 adp_uapi_avplay_init(td_void); td_s32 adp_uapi_avplay_set_adec_attr(td_handle avplay, td_u32 acodec_id); td_s32 trans_dec_param_mpi_to_uapi(uapi_acodec_dec_param *uapi_param, const ha_codec_dec_param *param); td_s32 trans_dec_param_uapi_to_mpi(const uapi_acodec_dec_param *uapi_param, ha_codec_dec_param *param); td_s32 trans_enc_param_mpi_to_uapi(uapi_acodec_enc_param *uapi_param, const ha_codec_enc_param *param); td_s32 trans_enc_param_uapi_to_mpi(const uapi_acodec_enc_param *uapi_param, ha_codec_enc_param *param); #endif