mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:25:41 +00:00
- Remove test code
svn path=/trunk/; revision=42825
This commit is contained in:
parent
f6df5d0f26
commit
a39871ddb2
1 changed files with 0 additions and 20 deletions
|
@ -203,8 +203,6 @@ InsertAudioDevice(
|
||||||
PIO_WORKITEM WorkItem = NULL;
|
PIO_WORKITEM WorkItem = NULL;
|
||||||
PSYSAUDIODEVEXT DeviceExtension;
|
PSYSAUDIODEVEXT DeviceExtension;
|
||||||
PKSAUDIO_DEVICE_ENTRY DeviceEntry = NULL;
|
PKSAUDIO_DEVICE_ENTRY DeviceEntry = NULL;
|
||||||
PDEVICE_OBJECT AudioDeviceObject;
|
|
||||||
UNICODE_STRING ReferenceString, SymbolicLinkName;
|
|
||||||
|
|
||||||
/* a new device has arrived */
|
/* a new device has arrived */
|
||||||
DeviceEntry = ExAllocatePool(NonPagedPool, sizeof(KSAUDIO_DEVICE_ENTRY));
|
DeviceEntry = ExAllocatePool(NonPagedPool, sizeof(KSAUDIO_DEVICE_ENTRY));
|
||||||
|
@ -260,24 +258,6 @@ InsertAudioDevice(
|
||||||
Ctx->DeviceEntry = DeviceEntry;
|
Ctx->DeviceEntry = DeviceEntry;
|
||||||
Ctx->WorkItem = WorkItem;
|
Ctx->WorkItem = WorkItem;
|
||||||
|
|
||||||
/* HACK
|
|
||||||
* sysaudio should register the device object for itself
|
|
||||||
*/
|
|
||||||
AudioDeviceObject = IoGetRelatedDeviceObject(DeviceEntry->FileObject);
|
|
||||||
RtlInitUnicodeString(&ReferenceString, L"sad0");
|
|
||||||
Status = IoRegisterDeviceInterface(AudioDeviceObject, &KSCATEGORY_AUDIO_DEVICE, &ReferenceString, &SymbolicLinkName);
|
|
||||||
if (NT_SUCCESS(Status))
|
|
||||||
{
|
|
||||||
IoSetDeviceInterfaceState(&SymbolicLinkName, TRUE);
|
|
||||||
RtlFreeUnicodeString(&SymbolicLinkName);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DPRINT1("Failed to open %wZ with Status %x\n", &DeviceEntry->DeviceName, Status);
|
|
||||||
DbgBreakPoint();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fetch device extension */
|
/* fetch device extension */
|
||||||
DeviceExtension = (PSYSAUDIODEVEXT)DeviceObject->DeviceExtension;
|
DeviceExtension = (PSYSAUDIODEVEXT)DeviceObject->DeviceExtension;
|
||||||
/* insert new audio device */
|
/* insert new audio device */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue