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 DSP_OPS_H 10 #define DSP_OPS_H 11 12 #include "audio_host.h" 13 14 #ifdef __cplusplus 15 #if __cplusplus 16 extern "C" { 17 #endif 18 #endif /* __cplusplus */ 19 20 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 21 int32_t DspDeviceInit(const struct DspDevice *device); 22 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len); 23 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len); 24 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 25 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 26 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device); 27 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device); 28 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device); 29 30 #ifdef __cplusplus 31 #if __cplusplus 32 } 33 #endif 34 #endif /* __cplusplus */ 35 36 #endif /* DSP_OPS_H */ 37