/* * Copyright (C) 2022 HiHope Open Source Organization . * * HDF is dual licensed: you can use it either under the terms of * the GPL, or the BSD license, at your option. * See the LICENSE file in the root of this repository for complete details. */ #ifndef RK3568_DAI_OPS_H #define RK3568_DAI_OPS_H #include "audio_core.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif /* __cplusplus */ int32_t Rk3568DeviceReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *val); int32_t Rk3568DeviceWriteReg(const struct DaiDevice *dai, uint32_t reg, uint32_t value); int32_t Rk3568NormalTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *dai); int32_t Rk3568DaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); int32_t Rk3568DaiStartup(const struct AudioCard *card, const struct DaiDevice *dai); int32_t Rk3568DaiDeviceInit(struct AudioCard *card, const struct DaiDevice *dai); #ifdef __cplusplus #if __cplusplus } #endif #endif /* __cplusplus */ #endif