1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef AUDIO_CODEC_BASE_H 10 #define AUDIO_CODEC_BASE_H 11 12 #include "audio_codec_if.h" 13 #include "audio_core.h" 14 #include "osal_io.h" 15 16 #ifdef __cplusplus 17 #if __cplusplus 18 extern "C" { 19 #endif 20 #endif /* __cplusplus */ 21 22 int32_t CodecGetServiceName(const struct HdfDeviceObject *device, const char **drvCodecName); 23 int32_t CodecGetDaiName(const struct HdfDeviceObject *device, const char **drvDaiName); 24 int32_t CodecGetConfigInfo(const struct HdfDeviceObject *device, struct CodecData *codecData); 25 int32_t CodecSetConfigInfo(struct CodecData *codeData, struct DaiData *daiData); 26 int32_t CodecSetCtlFunc(struct CodecData *codeData, const void *aiaoGetCtrl, const void *aiaoSetCtrl); 27 28 #ifdef __cplusplus 29 #if __cplusplus 30 } 31 #endif 32 #endif /* __cplusplus */ 33 34 #endif 35