1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS Kernel Streaming
4  * FILE:            drivers/wdm/audio/legacy/stream/dll.c
5  * PURPOSE:         kernel mode driver initialization
6  * PROGRAMMER:      Johannes Anderwald
7  */
8 
9 
10 #include "stream.h"
11 
12 
13 NTSTATUS
14 NTAPI
StreamClassPower(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)15 StreamClassPower(
16     IN  PDEVICE_OBJECT DeviceObject,
17     IN  PIRP Irp)
18 {
19     Irp->IoStatus.Information = 0;
20     Irp->IoStatus.Status = STATUS_SUCCESS;
21     IoCompleteRequest(Irp, IO_NO_INCREMENT);
22     return STATUS_SUCCESS;
23 }
24 
25 NTSTATUS
26 NTAPI
StreamClassSystemControl(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)27 StreamClassSystemControl(
28     IN  PDEVICE_OBJECT DeviceObject,
29     IN  PIRP Irp)
30 {
31     Irp->IoStatus.Information = 0;
32     Irp->IoStatus.Status = STATUS_SUCCESS;
33     IoCompleteRequest(Irp, IO_NO_INCREMENT);
34     return STATUS_SUCCESS;
35 }
36 
37 NTSTATUS
38 NTAPI
StreamClassCleanup(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)39 StreamClassCleanup(
40     IN  PDEVICE_OBJECT DeviceObject,
41     IN  PIRP Irp)
42 {
43     Irp->IoStatus.Information = 0;
44     Irp->IoStatus.Status = STATUS_SUCCESS;
45     IoCompleteRequest(Irp, IO_NO_INCREMENT);
46     return STATUS_SUCCESS;
47 }
48 
49 NTSTATUS
50 NTAPI
StreamClassFlushBuffers(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)51 StreamClassFlushBuffers(
52     IN  PDEVICE_OBJECT DeviceObject,
53     IN  PIRP Irp)
54 {
55     Irp->IoStatus.Information = 0;
56     Irp->IoStatus.Status = STATUS_SUCCESS;
57     IoCompleteRequest(Irp, IO_NO_INCREMENT);
58     return STATUS_SUCCESS;
59 }
60 
61 NTSTATUS
62 NTAPI
StreamClassDeviceControl(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)63 StreamClassDeviceControl(
64     IN  PDEVICE_OBJECT DeviceObject,
65     IN  PIRP Irp)
66 {
67     Irp->IoStatus.Information = 0;
68     Irp->IoStatus.Status = STATUS_SUCCESS;
69     IoCompleteRequest(Irp, IO_NO_INCREMENT);
70     return STATUS_SUCCESS;
71 }
72