Author: janderwald
Date: Sat Sep 24 08:35:25 2016
New Revision: 72785
URL:
http://svn.reactos.org/svn/reactos?rev=72785&view=rev
Log:
[USBAUDIO]
- add pin dispatch routines
Modified:
trunk/reactos/drivers/usb/usbaudio/filter.c
trunk/reactos/drivers/usb/usbaudio/pin.c
trunk/reactos/drivers/usb/usbaudio/usbaudio.h
Modified: trunk/reactos/drivers/usb/usbaudio/filter.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbaudio/filte…
==============================================================================
--- trunk/reactos/drivers/usb/usbaudio/filter.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbaudio/filter.c [iso-8859-1] Sat Sep 24 08:35:25 2016
@@ -77,6 +77,21 @@
NULL,
NULL
};
+
+static KSPIN_DISPATCH UsbAudioPinDispatch =
+{
+ USBAudioPinCreate,
+ USBAudioPinClose,
+ USBAudioPinProcess,
+ USBAudioPinReset,
+ USBAudioPinSetDataFormat,
+ USBAudioPinSetDeviceState,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
NTSTATUS
BuildUSBAudioFilterTopology(
@@ -382,6 +397,9 @@
{
/* irp sink pins*/
TerminalDescriptor =
UsbAudioGetStreamingTerminalDescriptorByIndex(DeviceExtension->ConfigurationDescriptor,
Index);
+ ASSERT(TerminalDescriptor != NULL);
+
+ Pins[Index].Dispatch = &UsbAudioPinDispatch;
Pins[Index].PinDescriptor.InterfacesCount = 1;
Pins[Index].PinDescriptor.Interfaces = &StandardPinInterface;
Pins[Index].PinDescriptor.MediumsCount = 1;
@@ -499,7 +517,6 @@
return Status;
}
- DbgBreakPoint();
/* build topology */
Status = BuildUSBAudioFilterTopology(Device);
if (!NT_SUCCESS(Status))
Modified: trunk/reactos/drivers/usb/usbaudio/pin.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbaudio/pin.c…
==============================================================================
--- trunk/reactos/drivers/usb/usbaudio/pin.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbaudio/pin.c [iso-8859-1] Sat Sep 24 08:35:25 2016
@@ -9,3 +9,66 @@
#include "usbaudio.h"
+NTSTATUS
+NTAPI
+USBAudioPinCreate(
+ _In_ PKSPIN Pin,
+ _In_ PIRP Irp)
+{
+ UNIMPLEMENTED
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+USBAudioPinClose(
+ _In_ PKSPIN Pin,
+ _In_ PIRP Irp)
+{
+ UNIMPLEMENTED
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+
+NTSTATUS
+NTAPI
+USBAudioPinProcess(
+ _In_ PKSPIN Pin)
+{
+ UNIMPLEMENTED
+ return STATUS_SUCCESS;
+}
+
+
+VOID
+NTAPI
+USBAudioPinReset(
+ _In_ PKSPIN Pin)
+{
+ UNIMPLEMENTED
+}
+
+NTSTATUS
+NTAPI
+USBAudioPinSetDataFormat(
+ _In_ PKSPIN Pin,
+ _In_opt_ PKSDATAFORMAT OldFormat,
+ _In_opt_ PKSMULTIPLE_ITEM OldAttributeList,
+ _In_ const KSDATARANGE* DataRange,
+ _In_opt_ const KSATTRIBUTE_LIST* AttributeRange)
+{
+ UNIMPLEMENTED
+ return STATUS_SUCCESS;
+}
+
+
+NTSTATUS
+NTAPI
+USBAudioPinSetDeviceState(
+ _In_ PKSPIN Pin,
+ _In_ KSSTATE ToState,
+ _In_ KSSTATE FromState)
+{
+ UNIMPLEMENTED
+ return STATUS_SUCCESS;
+}
Modified: trunk/reactos/drivers/usb/usbaudio/usbaudio.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbaudio/usbau…
==============================================================================
--- trunk/reactos/drivers/usb/usbaudio/usbaudio.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbaudio/usbaudio.h [iso-8859-1] Sat Sep 24 08:35:25 2016
@@ -222,3 +222,44 @@
_In_ DEVICE_POWER_STATE To,
_In_ DEVICE_POWER_STATE From
);
+
+/* pin.c*/
+
+NTSTATUS
+NTAPI
+USBAudioPinCreate(
+ _In_ PKSPIN Pin,
+ _In_ PIRP Irp);
+
+NTSTATUS
+NTAPI
+USBAudioPinClose(
+ _In_ PKSPIN Pin,
+ _In_ PIRP Irp);
+
+NTSTATUS
+NTAPI
+USBAudioPinProcess(
+ _In_ PKSPIN Pin);
+
+VOID
+NTAPI
+USBAudioPinReset(
+ _In_ PKSPIN Pin);
+
+NTSTATUS
+NTAPI
+USBAudioPinSetDataFormat(
+ _In_ PKSPIN Pin,
+ _In_opt_ PKSDATAFORMAT OldFormat,
+ _In_opt_ PKSMULTIPLE_ITEM OldAttributeList,
+ _In_ const KSDATARANGE* DataRange,
+ _In_opt_ const KSATTRIBUTE_LIST* AttributeRange);
+
+NTSTATUS
+NTAPI
+USBAudioPinSetDeviceState(
+ _In_ PKSPIN Pin,
+ _In_ KSSTATE ToState,
+ _In_ KSSTATE FromState);
+