1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 /** 17 * @addtogroup Effect 18 * @{ 19 * 20 * @brief defines the effect core methods 21 * 22 * @since 4.0 23 * @version 1.0 24 */ 25 26 #include "effect_core.h" 27 #include "hdf_base.h" 28 #include "osal_mem.h" 29 #include "audio_uhdf_log.h" 30 31 #define HDF_LOG_TAG HDF_AUDIO_EFFECT 32 33 /* list to manager the effect factory libs */ 34 AEM_GET_INITED_DLIST(g_libList); 35 36 /* list to manager the effect controller */ 37 AEM_GET_INITED_DLIST(g_controllerList); 38 IsEffectLibExist(void)39bool IsEffectLibExist(void) 40 { 41 bool isSupply = true; 42 43 if (DListIsEmpty(&g_libList)) { 44 HDF_LOGE("effect lib list is empty, no effect lib"); 45 isSupply = false; 46 } 47 48 return isSupply; 49 } 50