IN PWDMAUD_CLIENT ClientInfo)
{
ULONG Result = 0;
- NTSTATUS Status = STATUS_SUCCESS;
if (DeviceInfo->DeviceType == MIXER_DEVICE_TYPE)
{
}
else if (DeviceInfo->DeviceType == WAVE_OUT_DEVICE_TYPE)
{
- Result = WdmAudGetWaveInDeviceCount();
+ Result = WdmAudGetWaveOutDeviceCount();
}
else if (DeviceInfo->DeviceType == WAVE_IN_DEVICE_TYPE)
{
- Result = WdmAudGetWaveOutDeviceCount();
+ Result = WdmAudGetWaveInDeviceCount();
}
else if (DeviceInfo->DeviceType == MIDI_IN_DEVICE_TYPE)
{
/* store result count */
DeviceInfo->DeviceCount = Result;
- DPRINT("WdmAudControlDeviceType Status %x Devices %u\n", Status, DeviceInfo->DeviceCount);
+ DPRINT("WdmAudControlDeviceType Devices %u\n", DeviceInfo->DeviceCount);
return SetIrpIoStatus(Irp, STATUS_SUCCESS, sizeof(WDMAUD_DEVICE_INFO));
}
}
else if (ClientInfo->hPins[Index].Handle == DeviceInfo->hDevice && ClientInfo->hPins[Index].Type == MIXER_DEVICE_TYPE)
{
- if (ClientInfo->hPins[Index].NotifyEvent)
- {
- ObDereferenceObject(ClientInfo->hPins[Index].NotifyEvent);
- ClientInfo->hPins[Index].NotifyEvent = NULL;
- }
+ DPRINT1("Closing mixer %p\n", DeviceInfo->hDevice);
+ return WdmAudControlCloseMixer(DeviceObject, Irp, DeviceInfo, ClientInfo, Index);
}
}
case IOCTL_GETVOLUME:
case IOCTL_SETVOLUME:
- DPRINT1("Unhandeled %x\n", IoStack->Parameters.DeviceIoControl.IoControlCode);
+ DPRINT1("Unhandled %x\n", IoStack->Parameters.DeviceIoControl.IoControlCode);
break;
}
PVOID Ctx)
{
PKSSTREAM_HEADER Header;
- ULONG Length = 0;
PMDL Mdl, NextMdl;
PWDMAUD_COMPLETION_CONTEXT Context = (PWDMAUD_COMPLETION_CONTEXT)Ctx;
- DPRINT("IoCompletion Irp %p IoStatus %lx Information %lx Length %lu\n", Irp, Irp->IoStatus.Status, Irp->IoStatus.Information, Length);
+ DPRINT("IoCompletion Irp %p IoStatus %lx Information %lx\n", Irp, Irp->IoStatus.Status, Irp->IoStatus.Information);
if (!NT_SUCCESS(Irp->IoStatus.Status))
{
/* store mdl address */
Mdl = Irp->MdlAddress;
- /* remove mdladdress as KsProbeStreamIrp will interprete it as an already probed audio buffer */
+ /* remove mdladdress as KsProbeStreamIrp will interpret it as an already probed audio buffer */
Irp->MdlAddress = NULL;
if (IoStack->MajorFunction == IRP_MJ_WRITE)