Author: janderwald
Date: Mon Apr 27 22:57:41 2009
New Revision: 40714

URL: http://svn.reactos.org/svn/reactos?rev=40714&view=rev
Log:
- Fix IPortWavePci_Notify routine
- Add debug traces

Modified:
    trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.c
    trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepcistream.c

Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.c?rev=40714&r1=40713&r2=40714&view=diff
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.c [iso-8859-1] 
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.c [iso-8859-1] 
Mon Apr 27 22:57:41 2009
@@ -578,15 +578,12 @@
 {
     IPortWavePciImpl * This = (IPortWavePciImpl*)iface;
 
-
-    DPRINT1("IPortWavePci_fnNotify entered %p, ServiceGroup %p\n", This, 
ServiceGroup);
-
-    //if (This->ServiceGroup)
-    //{
-    //    ServiceGroup->lpVtbl->RequestService (ServiceGroup);
-    //}
-
-   // KeInsertQueueDpc(&This->Dpc, NULL, NULL);
+    DPRINT("IPortWavePci_fnNotify entered %p, ServiceGroup %p\n", This, 
ServiceGroup);
+
+    if (ServiceGroup)
+    {
+        ServiceGroup->lpVtbl->RequestService (ServiceGroup);
+    }
 }
 
 static IPortWavePciVtbl vt_IPortWavePci =

Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepcistream.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepcistream.c?rev=40714&r1=40713&r2=40714&view=diff
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepcistream.c 
[iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepcistream.c 
[iso-8859-1] Mon Apr 27 22:57:41 2009
@@ -86,10 +86,12 @@
     OUT PULONG  Flags)
 {
     IPortWavePciStreamImpl * This = (IPortWavePciStreamImpl*)iface;
+    NTSTATUS Status;
+    ASSERT_IRQL(DISPATCH_LEVEL);
+    Status = This->Queue->lpVtbl->GetMappingWithTag(This->Queue, Tag, 
PhysicalAddress, VirtualAddress, ByteCount, Flags);
 
-    ASSERT_IRQL(DISPATCH_LEVEL);
-
-    return This->Queue->lpVtbl->GetMappingWithTag(This->Queue, Tag, 
PhysicalAddress, VirtualAddress, ByteCount, Flags);
+    DPRINT("IPortWavePciStream_fnGetMapping Tag %p Status %x\n", Tag, Status);
+    return Status;
 }
 
 static
@@ -102,7 +104,7 @@
     IPortWavePciStreamImpl * This = (IPortWavePciStreamImpl*)iface;
 
     ASSERT_IRQL(DISPATCH_LEVEL);
-
+    DPRINT("IPortWavePciStream_fnReleaseMapping Tag %p\n", Tag);
     This->Queue->lpVtbl->ReleaseMappingWithTag(This->Queue, Tag);
     return STATUS_SUCCESS;
 }
@@ -115,6 +117,7 @@
 {
     UNIMPLEMENTED
     ASSERT_IRQL(DISPATCH_LEVEL);
+    DPRINT("IPortWavePciStream_fnTerminatePacket\n");
     return STATUS_SUCCESS;
 }
 

Reply via email to