1 /* 2 * Copyright (c) 2022 Unionman Technology 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 A311D_DAI_OPS_H 10 #define A311D_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 A311DDeviceInit(struct AudioCard *audioCard, const struct DaiDevice *dai); 21 int32_t A311DDeviceReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *value); 22 int32_t A311DDeviceWriteReg(const struct DaiDevice *dai, uint32_t reg, uint32_t value); 23 24 int32_t A311DDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 25 int32_t A311DDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 26 int32_t A311DDaiTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *device); 27 28 #ifdef __cplusplus 29 #if __cplusplus 30 } 31 #endif 32 #endif /* __cplusplus */ 33 34 #endif /* A311D_CODEC_OPS_H */ 35