• 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 HI3516_AUDIO_DMA_OPS_H
20 #define HI3516_AUDIO_DMA_OPS_H
21 
22 #include "audio_core.h"
23 
24 #ifdef __cplusplus
25 #if __cplusplus
26 extern "C" {
27 #endif
28 #endif /* __cplusplus */
29 
30 int32_t AudioDmaDeviceInit(const struct AudioCard *card, const struct PlatformDevice *platform);
31 int32_t Hi3516DmaBufAlloc(struct PlatformData *data, const enum AudioStreamType streamType);
32 int32_t Hi3516DmaBufFree(struct PlatformData *data, const enum AudioStreamType streamType);
33 int32_t Hi3516DmaRequestChannel(const struct PlatformData *data, const enum AudioStreamType streamType);
34 int32_t Hi3516DmaConfigChannel(const struct PlatformData *data, const enum AudioStreamType streamType);
35 int32_t Hi3516DmaPrep(const struct PlatformData *data, const enum AudioStreamType streamType);
36 int32_t Hi3516DmaSubmit(const struct PlatformData *data, const enum AudioStreamType streamType);
37 int32_t Hi3516DmaPending(struct PlatformData *data, const enum AudioStreamType streamType);
38 int32_t Hi3516DmaPause(struct PlatformData *data, const enum AudioStreamType streamType);
39 int32_t Hi3516DmaResume(const struct PlatformData *data, const enum AudioStreamType streamType);
40 int32_t Hi3516DmaPointer(struct PlatformData *data, const enum AudioStreamType streamType, uint32_t *pointer);
41 
42 #ifdef __cplusplus
43 #if __cplusplus
44 }
45 #endif
46 #endif /* __cplusplus */
47 
48 #endif /* HI3516_CODEC_OPS_H */
49