diff --git a/audiohandler/src/daudio_handler.cpp b/audiohandler/src/daudio_handler.cpp index 7fe7cc986390003b175c819d6406647d1cfbd539..4501a463788665e1f0f5e903af43de26d934c260 100644 --- a/audiohandler/src/daudio_handler.cpp +++ b/audiohandler/src/daudio_handler.cpp @@ -119,6 +119,9 @@ std::vector DAudioHandler::Query() auto audioDevices = audioSrv->GetDevices(AudioStandard::DeviceFlag::ALL_DEVICES_FLAG); for (auto dev : audioDevices) { auto dhId = audioSrv->GetPinValueFromType(dev->deviceType_, dev->deviceRole_); + if (dhId != DEFAULT_RENDER_ID || dhId != DEFAULT_CAPTURE_ID) { + continue; + } cJSON* infoJson = cJSON_CreateObject(); if (infoJson == nullptr) {