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 #include "rk3568_dsp_ops.h"
10 #include "spi_if.h"
11 #include "audio_dsp_if.h"
12 #include "audio_driver_log.h"
13
14 #define HDF_LOG_TAG rk3568_dsp_ops
15
DspDaiStartup(const struct AudioCard * card,const struct DaiDevice * device)16 int32_t DspDaiStartup(const struct AudioCard *card,
17 const struct DaiDevice *device)
18 {
19 (void)card;
20 (void)device;
21 return HDF_SUCCESS;
22 }
23
DspDaiHwParams(const struct AudioCard * card,const struct AudioPcmHwParams * param)24 int32_t DspDaiHwParams(const struct AudioCard *card,
25 const struct AudioPcmHwParams *param)
26 {
27 (void)card;
28 (void)param;
29 AUDIO_DRIVER_LOG_DEBUG("success.");
30 return HDF_SUCCESS;
31 }
32
DspDeviceInit(const struct DspDevice * device)33 int32_t DspDeviceInit(const struct DspDevice *device)
34 {
35 (void)device;
36 return HDF_SUCCESS;
37 }
38
DspDeviceReadReg(const struct DspDevice * device,const void * msgs,const uint32_t len)39 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs,
40 const uint32_t len)
41 {
42 (void)device;
43 (void)msgs;
44 return HDF_SUCCESS;
45 }
46
DspDeviceWriteReg(const struct DspDevice * device,const void * msgs,const uint32_t len)47 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs,
48 const uint32_t len)
49 {
50 (void)device;
51 (void)msgs;
52 return HDF_SUCCESS;
53 }
54
DspDaiDeviceInit(struct AudioCard * card,const struct DaiDevice * device)55 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device)
56 {
57 (void)card;
58 (void)device;
59 return HDF_SUCCESS;
60 }
61
DspDecodeAudioStream(const struct AudioCard * card,const uint8_t * buf,const struct DspDevice * device)62 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf,
63 const struct DspDevice *device)
64 {
65 (void)card;
66 (void)buf;
67 (void)device;
68 AUDIO_DRIVER_LOG_DEBUG("decode run!!!");
69 return HDF_SUCCESS;
70 }
71
DspEncodeAudioStream(const struct AudioCard * card,const uint8_t * buf,const struct DspDevice * device)72 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf,
73 const struct DspDevice *device)
74 {
75 (void)card;
76 (void)buf;
77 (void)device;
78 AUDIO_DRIVER_LOG_DEBUG("encode run!!!");
79 return HDF_SUCCESS;
80 }
81
DspEqualizerActive(const struct AudioCard * card,const uint8_t * buf,const struct DspDevice * device)82 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf,
83 const struct DspDevice *device)
84 {
85 (void)card;
86 (void)buf;
87 (void)device;
88 AUDIO_DRIVER_LOG_DEBUG("equalizer run!!!");
89 return HDF_SUCCESS;
90 }
91