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_DAI_OPS_H 10 #define HI3516_DAI_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 DaiDeviceInit(struct AudioCard *audioCard, const struct DaiDevice *dai); 21 int32_t DaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 22 int32_t DaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 23 int32_t DaiTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *device); 24 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 } 29 #endif 30 #endif /* __cplusplus */ 31 32 #endif /* HI3516_CODEC_OPS_H */ 33