1 /* 2 * Copyright (C) 2022 HiHope Open Source Organization . 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 RK3568_DAI_OPS_H 10 #define RK3568_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 Rk3568DeviceReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *val); 21 int32_t Rk3568DeviceWriteReg(const struct DaiDevice *dai, uint32_t reg, uint32_t value); 22 23 int32_t Rk3568NormalTrigger(const struct AudioCard *card, 24 int cmd, const struct DaiDevice *dai); 25 int32_t Rk3568DaiHwParams(const struct AudioCard *card, 26 const struct AudioPcmHwParams *param); 27 int32_t Rk3568DaiStartup(const struct AudioCard *card, 28 const struct DaiDevice *dai); 29 int32_t Rk3568DaiDeviceInit(struct AudioCard *card, 30 const struct DaiDevice *dai); 31 32 33 #ifdef __cplusplus 34 #if __cplusplus 35 } 36 #endif 37 #endif /* __cplusplus */ 38 39 #endif 40 41