Searched refs:adapterIndex (Results 1 – 4 of 4) sorted by relevance
/drivers/peripheral/audio/test/sample/ |
D | framework_common.c | 49 int32_t SelectAudioCard(struct AudioAdapterDescriptor *descs, int32_t size, int32_t *adapterIndex) in SelectAudioCard() argument 54 if (descs == NULL || adapterIndex == NULL || size <= 0) { in SelectAudioCard() 64 ret = scanf_s("%d", adapterIndex); in SelectAudioCard() 69 if (*adapterIndex <= 0 || *adapterIndex > size) { in SelectAudioCard() 70 *adapterIndex = 1; // 1 for default audio card in SelectAudioCard() 71 … printf("Input error, Default audio card selected: %s\n", descs[*adapterIndex - 1].adapterName); in SelectAudioCard()
|
D | framework_common.h | 78 int32_t SelectAudioCard(struct AudioAdapterDescriptor *descs, int32_t size, int32_t *adapterIndex);
|
D | idl_capture.c | 619 int32_t adapterIndex = 0; in GetManagerAndLoadAdapter() local 645 if (SelectAudioCard(captureDescs, adapterNum, &adapterIndex) != HDF_SUCCESS) { in GetManagerAndLoadAdapter() 649 if (strcpy_s(g_adapterName, PATH_LEN, captureDescs[adapterIndex - 1].adapterName) < 0) { in GetManagerAndLoadAdapter() 653 if (SwitchAudioPort(&captureDescs[adapterIndex - 1], PORT_IN, capturePort) != HDF_SUCCESS) { in GetManagerAndLoadAdapter() 657 …if (audioManager->LoadAdapter(audioManager, &captureDescs[adapterIndex - 1], &g_adapter) != HDF_SU… in GetManagerAndLoadAdapter()
|
D | idl_render.c | 632 int32_t adapterIndex = 0; in GetManagerAndLoadAdapter() local 662 if (SelectAudioCard(descs, adapterNum, &adapterIndex) != HDF_SUCCESS) { in GetManagerAndLoadAdapter() 666 if (strcpy_s(g_adapterName, PATH_LEN, descs[adapterIndex - 1].adapterName) < 0) { in GetManagerAndLoadAdapter() 670 if (SwitchAudioPort(&descs[adapterIndex - 1], PORT_OUT, renderPort) != HDF_SUCCESS) { in GetManagerAndLoadAdapter() 674 if (audioManagerIns->LoadAdapter(audioManagerIns, &descs[adapterIndex - 1], &g_adapter)) { in GetManagerAndLoadAdapter()
|