- Remove test code
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 21 Aug 2009 13:15:38 +0000 (13:15 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 21 Aug 2009 13:15:38 +0000 (13:15 +0000)
svn path=/trunk/; revision=42825

reactos/drivers/wdm/audio/sysaudio/deviface.c

index bc35a46..4871031 100644 (file)
@@ -203,8 +203,6 @@ InsertAudioDevice(
     PIO_WORKITEM WorkItem = NULL;
     PSYSAUDIODEVEXT DeviceExtension;
     PKSAUDIO_DEVICE_ENTRY DeviceEntry = NULL;
-    PDEVICE_OBJECT AudioDeviceObject;
-    UNICODE_STRING ReferenceString, SymbolicLinkName;
 
     /* a new device has arrived */
     DeviceEntry = ExAllocatePool(NonPagedPool, sizeof(KSAUDIO_DEVICE_ENTRY));
@@ -260,24 +258,6 @@ InsertAudioDevice(
     Ctx->DeviceEntry = DeviceEntry;
     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 */
     DeviceExtension = (PSYSAUDIODEVEXT)DeviceObject->DeviceExtension;
     /* insert new audio device */