• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Shenzhen Kaihong Digital Industry Development 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 RK3568_DSP_OPS_H
10 #define RK3568_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,
21                          const struct DaiDevice *device);
22 int32_t DspDeviceInit(const struct DspDevice *device);
23 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs,
24                          const uint32_t len);
25 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs,
26                           const uint32_t len);
27 int32_t DspDaiStartup(const struct AudioCard *card,
28                       const struct DaiDevice *device);
29 int32_t DspDaiHwParams(const struct AudioCard *card,
30                        const struct AudioPcmHwParams *param);
31 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf,
32                              const struct DspDevice *device);
33 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf,
34                              const struct DspDevice *device);
35 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf,
36                            const struct DspDevice *device);
37 
38 #ifdef __cplusplus
39 #if __cplusplus
40 }
41 #endif
42 #endif /* __cplusplus */
43 
44 #endif /* RK3568_DSP_OPS_H */
45