• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef DSP_OPS_H
20 #define DSP_OPS_H
21 
22 #include "audio_host.h"
23 
24 #ifdef __cplusplus
25 #if __cplusplus
26 extern "C" {
27 #endif
28 #endif /* __cplusplus */
29 
30 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device);
31 int32_t DspDeviceInit(const struct DspDevice *device);
32 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len);
33 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len);
34 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device);
35 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param);
36 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device);
37 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device);
38 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device);
39 
40 #ifdef __cplusplus
41 #if __cplusplus
42 }
43 #endif
44 #endif /* __cplusplus */
45 
46 #endif /* DSP_OPS_H */
47