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_DAI_OPS_H 20 #define HI3516_DAI_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 Hi3516DaiDeviceInit(struct AudioCard *audioCard, const struct DaiDevice *dai); 31 int32_t Hi3516DaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 32 int32_t Hi3516DaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 33 int32_t Hi3516DaiTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *device); 34 35 36 #ifdef __cplusplus 37 #if __cplusplus 38 } 39 #endif 40 #endif /* __cplusplus */ 41 42 #endif /* HI3516_CODEC_OPS_H */ 43