diff options
Diffstat (limited to 'audio/sysvad/EndpointsCommon/bthhfpmictopo.cpp')
| -rw-r--r-- | audio/sysvad/EndpointsCommon/bthhfpmictopo.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/audio/sysvad/EndpointsCommon/bthhfpmictopo.cpp b/audio/sysvad/EndpointsCommon/bthhfpmictopo.cpp index ec3f4367..01eb156b 100644 --- a/audio/sysvad/EndpointsCommon/bthhfpmictopo.cpp +++ b/audio/sysvad/EndpointsCommon/bthhfpmictopo.cpp @@ -136,13 +136,13 @@ Return Value: NTSTATUS ntStatus = STATUS_INVALID_DEVICE_REQUEST; PCMiniportTopology miniport = (PCMiniportTopology)PropertyRequest->MajorTarget; - PBTHHFPDEVICECOMMON bthHfpDevice = NULL; + PSIDEBANDDEVICECOMMON bthHfpDevice = NULL; ULONG channel = (ULONG)-1; - bthHfpDevice = miniport->GetBthHfpDevice(); // weak ref. + bthHfpDevice = miniport->GetSidebandDevice(); // weak ref. ASSERT(bthHfpDevice != NULL); - if (bthHfpDevice->IsVolumeSupported() == FALSE) + if (bthHfpDevice->IsVolumeSupported(miniport->m_DeviceType) == FALSE) { ntStatus = miniport->PropertyHandlerGeneric(PropertyRequest); } @@ -174,14 +174,11 @@ Return Value: if (PropertyRequest->Verb & KSPROPERTY_TYPE_GET) { - *volume = bthHfpDevice->GetMicVolume(); - - ntStatus = STATUS_SUCCESS; - + ntStatus = bthHfpDevice->GetVolume(eBthHfpMicDevice, channel, volume); } else if (PropertyRequest->Verb & KSPROPERTY_TYPE_SET) { - ntStatus = bthHfpDevice->SetMicVolume(*volume); + ntStatus = bthHfpDevice->SetVolume(eBthHfpMicDevice, *volume, channel); } } } @@ -278,4 +275,3 @@ PropertyHandler_BthHfpMicTopoFilterEvent #pragma code_seg() #endif // SYSVAD_BTH_BYPASS - |
