• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 iSoftStone Device 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 #include "dsp_ops.h"
10 #include "spi_if.h"
11 #include "audio_dsp_if.h"
12 #include "audio_driver_log.h"
13 // #include "audio_accessory_base.h"
14 
15 #define HDF_LOG_TAG dsp_ops
16 
DspDaiStartup(const struct AudioCard * card,const struct DaiDevice * device)17 int32_t DspDaiStartup(const struct AudioCard *card, 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, const struct AudioPcmHwParams *param)
25 {
26     (void)card;
27     (void)param;
28     return HDF_SUCCESS;
29 }
30 
DspDeviceInit(const struct DspDevice * device)31 int32_t DspDeviceInit(const struct DspDevice *device)
32 {
33     (void)device;
34     return HDF_SUCCESS;
35 }
36 
DspDeviceReadReg(const struct DspDevice * device,const void * msgs,const uint32_t len)37 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len)
38 {
39     (void)device;
40     (void)msgs;
41     return HDF_SUCCESS;
42 }
43 
DspDeviceWriteReg(const struct DspDevice * device,const void * msgs,const uint32_t len)44 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len)
45 {
46     (void)device;
47     (void)msgs;
48     return HDF_SUCCESS;
49 }
50 
DspDaiDeviceInit(struct AudioCard * card,const struct DaiDevice * device)51 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device)
52 {
53     (void)card;
54     (void)device;
55     return HDF_SUCCESS;
56 }
57 
DspDecodeAudioStream(const struct AudioCard * card,const uint8_t * buf,const struct DspDevice * device)58 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device)
59 {
60     (void)card;
61     (void)buf;
62     (void)device;
63     return HDF_SUCCESS;
64 }
65 
DspEncodeAudioStream(const struct AudioCard * card,const uint8_t * buf,const struct DspDevice * device)66 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device)
67 {
68     (void)card;
69     (void)buf;
70     (void)device;
71     return HDF_SUCCESS;
72 }
73 
DspEqualizerActive(const struct AudioCard * card,const uint8_t * buf,const struct DspDevice * device)74 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device)
75 {
76     (void)card;
77     (void)buf;
78     (void)device;
79     return HDF_SUCCESS;
80 }
81