Fixed a few minor problems so the driver compiles with the current ROS headers etc.
authorAndrew Greenwood <silverblade@reactos.org>
Fri, 30 Jan 2004 17:08:13 +0000 (17:08 +0000)
committerAndrew Greenwood <silverblade@reactos.org>
Fri, 30 Jan 2004 17:08:13 +0000 (17:08 +0000)
It still doesn't really do much apart from play a buffer of silence when loaded, but maybe someone can help me with this :)

svn path=/trunk/; revision=7922

reactos/drivers/dd/sndblst/dma.c
reactos/drivers/dd/sndblst/sndblst.c

index 92520e6..fe1c8b0 100644 (file)
@@ -92,7 +92,7 @@ BOOLEAN CreateDMA(PDEVICE_OBJECT DeviceObject)
     Desc.Dma32BitAddresses = FALSE; // I don't think we can
     Desc.IgnoreCount = FALSE; // Should be OK
     Desc.Reserved1 = 0;
-    Desc.Reserved2 = 0;
+//    Desc.Reserved2 = 0;
     Desc.BusNumber = 0;
     Desc.DmaChannel = Device->DMA;    // Our channel :)
     Desc.InterfaceType = Isa;   // (BusType == MicroChannel) ? MicroChannel : Isa;
index 85171e2..c4ec5f6 100644 (file)
@@ -16,6 +16,7 @@
 
 //#define NDEBUG
 #include <debug.h>
+#include <rosrtl/string.h>
 
 #include "sndblst.h"
 
@@ -34,8 +35,9 @@ NTSTATUS InitDevice(
 //    PDEVICE_INSTANCE Instance = Context;
     PDEVICE_OBJECT DeviceObject; // = Context;
     PDEVICE_EXTENSION Parameters; // = DeviceObject->DeviceExtension;
-    UNICODE_STRING DeviceName = UNICODE_STRING_INITIALIZER(L"\\Device\\SoundBlaster_Out_0");
-    UNICODE_STRING SymlinkName = UNICODE_STRING_INITIALIZER(L"\\??\\SoundBlaster_Out_0");
+    UNICODE_STRING DeviceName = ROS_STRING_INITIALIZER(L"\\Device\\WaveOut");   // CHANGE THESE!
+    UNICODE_STRING SymlinkName = ROS_STRING_INITIALIZER(L"\\??\\WaveOut");
+
 //    CONFIG Config;
     RTL_QUERY_REGISTRY_TABLE Table[2];
     NTSTATUS s;
@@ -43,7 +45,7 @@ NTSTATUS InitDevice(
     UCHAR DSP_Major = 0, DSP_Minor = 0;
 
     // This is TEMPORARY, to ensure that we don't process more than 1 device.
-    // I'll remove this limitation in the future.
+    // This limitation should be removed in future.
     if (DeviceCount > 0)
     {
         DPRINT("Sorry - only 1 device supported by Sound Blaster driver at present :(\n");
@@ -256,7 +258,7 @@ BlasterDeviceControl(PDEVICE_OBJECT DeviceObject,
  * RETURNS: Success or failure
  */
 {
-/*    PIO_STACK_LOCATION Stack;
+    PIO_STACK_LOCATION Stack;
     PDEVICE_EXTENSION DeviceExtension;
     UINT ByteCount;
     PBYTE Data;
@@ -268,7 +270,7 @@ BlasterDeviceControl(PDEVICE_OBJECT DeviceObject,
 
     switch(Stack->Parameters.DeviceIoControl.IoControlCode)
     {
-        case IOCTL_MIDI_PLAY :
+/*        case IOCTL_MIDI_PLAY :
         {
             DPRINT("Received IOCTL_MIDI_PLAY\n");
             Data = (PBYTE) Irp->AssociatedIrp.SystemBuffer;
@@ -289,6 +291,7 @@ BlasterDeviceControl(PDEVICE_OBJECT DeviceObject,
             
             return(STATUS_SUCCESS);
         }
+*/
     }
     
     return(STATUS_SUCCESS);