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_COMMON_FUNC_H 20 #define HI3516_COMMON_FUNC_H 21 22 #include "hdf_types.h" 23 #include "audio_host.h" 24 25 #ifdef __cplusplus 26 #if __cplusplus 27 extern "C" { 28 #endif 29 #endif /* __cplusplus */ 30 31 int32_t InitHwParam(struct AudioPcmHwParams *codecHwParam); 32 int32_t GetAudioCard(struct AudioCard **card); 33 34 #ifdef __cplusplus 35 #if __cplusplus 36 } 37 #endif 38 #endif /* __cplusplus */ 39 40 #endif 41