Home
last modified time | relevance | path

Searched refs:adapterNum (Results 1 – 7 of 7) sorted by relevance

/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Daudio_adapter_info_common.cpp195 static void AudioAdapterReleaseDescs(const struct AudioAdapterDescriptor *descs, int32_t adapterNum) in AudioAdapterReleaseDescs() argument
199 if (descs == NULL || adapterNum <= 0 || adapterNum > SUPPORT_ADAPTER_NUM_MAX) { in AudioAdapterReleaseDescs()
203 if (adapterNum > g_adapterNum) { in AudioAdapterReleaseDescs()
204 adapterNum = g_adapterNum; in AudioAdapterReleaseDescs()
207 while (adapterIdx < adapterNum) { in AudioAdapterReleaseDescs()
475 cJSON *adapterNum = cJSON_GetObjectItem(cJsonObj, "adapterNum"); in AudioAdaptersGetConfigToJsonObj() local
476 if (adapterNum == NULL) { in AudioAdaptersGetConfigToJsonObj()
480 g_adapterNum = adapterNum->valueint; in AudioAdaptersGetConfigToJsonObj()
490 int32_t adapterNum, const cJSON *adaptersObj) in AudioAdaptersSetAdapter() argument
496 adapterNum <= 0 || adapterNum > SUPPORT_ADAPTER_NUM_MAX) { in AudioAdaptersSetAdapter()
[all …]
/drivers/peripheral/audio/hal/hdi_passthrough/src/
Daudio_adapter_info_common.c100 void AudioAdapterReleaseDescs(const struct AudioAdapterDescriptor *descs, int32_t adapterNum) in AudioAdapterReleaseDescs() argument
104 if (descs == NULL || adapterNum <= 0 || adapterNum > SUPPORT_ADAPTER_NUM_MAX) { in AudioAdapterReleaseDescs()
109 if (adapterNum > g_adapterNum) { in AudioAdapterReleaseDescs()
110 adapterNum = g_adapterNum; in AudioAdapterReleaseDescs()
113 while (adapterIdx < adapterNum) { in AudioAdapterReleaseDescs()
/drivers/peripheral/audio/hal/hdi_passthrough/include/
Daudio_adapter_info_common.h81 void AudioAdapterReleaseDescs(const struct AudioAdapterDescriptor *descs, int32_t adapterNum);
/drivers/peripheral/audio/test/sample/
Didl_capture.c620 uint32_t adapterNum = MAX_AUDIO_ADAPTER_DESC; in GetManagerAndLoadAdapter() local
639 int32_t ret = audioManager->GetAllAdapters(audioManager, captureDescs, &adapterNum); in GetManagerAndLoadAdapter()
640 if (ret < 0 || adapterNum == 0) { in GetManagerAndLoadAdapter()
645 if (SelectAudioCard(captureDescs, adapterNum, &adapterIndex) != HDF_SUCCESS) { in GetManagerAndLoadAdapter()
Didl_render.c654 uint32_t adapterNum = MAX_AUDIO_ADAPTER_DESC; in GetManagerAndLoadAdapter() local
656 int32_t ret = audioManagerIns->GetAllAdapters(audioManagerIns, descs, &adapterNum); in GetManagerAndLoadAdapter()
657 if (ret < 0 || adapterNum == 0) { in GetManagerAndLoadAdapter()
662 if (SelectAudioCard(descs, adapterNum, &adapterIndex) != HDF_SUCCESS) { in GetManagerAndLoadAdapter()
/drivers/peripheral/audio/hdi_service/primary_impl/src/
Daudio_adapter_info_common.c101 …atic void AudioAdapterReleaseDescs(const struct AudioAdapterDescriptor *descs, uint32_t adapterNum) in AudioAdapterReleaseDescs() argument
110 while (adapterIdx < adapterNum) { in AudioAdapterReleaseDescs()
Daudio_adapter.c188 int adapterNum = AudioAdapterGetAdapterNum(); in AudioCheckDescPortId() local
189 if (adapterNum <= 0) { in AudioCheckDescPortId()
199 for (int index = 0; index < adapterNum; index++) { in AudioCheckDescPortId()
214 for (int index = 0; index < adapterNum; index++) { in AudioCheckDescPortId()