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 HI3516_CODEC_OPS_H 10 #define HI3516_CODEC_OPS_H 11 12 #include "audio_core.h" 13 14 #ifdef __cplusplus 15 #if __cplusplus 16 extern "C" { 17 #endif 18 #endif /* __cplusplus */ 19 20 int32_t CodecDeviceInit(struct AudioCard *audioCard, const struct CodecDevice *codec); 21 int32_t CodecDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 22 int32_t CodecDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 23 int32_t CodecDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 24 25 #ifdef __cplusplus 26 #if __cplusplus 27 } 28 #endif 29 #endif /* __cplusplus */ 30 31 #endif /* HI3516_CODEC_OPS_H */ 32