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 RK3588_DAI_OPS_H 10 #define RK3588_DAI_OPS_H 11 12 #include "audio_core.h" 13 #include <sound/dmaengine_pcm.h> 14 15 #ifdef __cplusplus 16 #if __cplusplus 17 extern "C" { 18 #endif 19 #endif /* __cplusplus */ 20 21 int32_t Rk3588DeviceReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *val); 22 int32_t Rk3588DeviceWriteReg(const struct DaiDevice *dai, uint32_t reg, uint32_t value); 23 24 int32_t Rk3588NormalTrigger(const struct AudioCard *card, 25 int cmd, const struct DaiDevice *dai); 26 int32_t Rk3588DaiHwParams(const struct AudioCard *card, 27 const struct AudioPcmHwParams *param); 28 int32_t Rk3588DaiStartup(const struct AudioCard *card, 29 const struct DaiDevice *dai); 30 int32_t Rk3588DaiDeviceInit(struct AudioCard *card, 31 const struct DaiDevice *dai); 32 33 #ifdef __cplusplus 34 #if __cplusplus 35 } 36 #endif 37 #endif /* __cplusplus */ 38 39 #endif 40 41