Commit graph

25 commits

Author SHA1 Message Date
Colin Finck c2c66aff7d Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
Hermès Bélusca-Maïto 772d8095c2 The 'UNIMPLEMENTED' macro call should be followed explicitely by a semicolon.
svn path=/trunk/; revision=73724
2017-02-06 15:49:23 +00:00
Amine Khaldi 5c2f126896 [DRIVERS] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73226
2016-11-13 15:31:39 +00:00
Amine Khaldi dd88e2643b [PORTCLS]
* Do not include debug.h into the main header.
* Cleanup the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61498
2014-01-03 17:10:56 +00:00
Thomas Faber 98c1071a78 [PORTCLS]
- Remove a duplicate assignment. Patch by Víctor Martínez Calvo.
CORE-7057 #resolve

svn path=/trunk/; revision=58709
2013-04-07 11:02:28 +00:00
Jérôme Gardou 149e272b30 [PORTCLS]
* Fix copy-pasta
CORE-7053 #comment Fixed in r58704, thanks for deciphering PVS studio report ;-) #resolve

svn path=/trunk/; revision=58704
2013-04-07 09:58:05 +00:00
Amine Khaldi 2817ba1e7e * Comment out some unused but set variables, remove some others.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53693
2011-09-11 16:56:56 +00:00
Johannes Anderwald 5876e615b5 [KS]
- Fix several bugs in KsProbeStreamIrp
- If requestor is KernelMode - just save a pointer in Irp->AssociatedIrp.SystemBuffer (currently not used)
- If requestor is UserMode mark irp as buffered. Also set Flag IRP_INPUT_OPERATION when the ioctl is IOCTL_KS_READ_STREAM. This is important to propagate modifications to KSSTREAM_HEADERS (in particular DataUsed member)
- ReactOS KS can now be used in WinXP in combination with KSStudio. In order to make it fully work, ks needs to implement software bus functions
[PORTCLS]
- Rewrite internal irp queue handling
- It now supports multiple KSSTREAM_HEADERs per Irp, variable sized KSSTREAM_HEADERs per irp.
- Store the mapped virtual address not in the KSSTREAM_HEADER, as user programs will receive then invalid addresses
- Add checks whether this irp is for an sink pin or source pin
- Fix multiple bugs when the pin is looped buffer mode (How did this work before?)
- ReactOS portcls + WinXP now properly works with audio recording
[WDMAUD_KERNEL]
- Don't free associated stream header anymore
- Tested with VBox 3.2.10 + VmWare Player 3.1.2 + WinXP 

svn path=/trunk/; revision=49457
2010-11-03 11:16:33 +00:00
Johannes Anderwald 0d136362a0 [PORTCLS]
- Remove silence buffer hack
- Stub DRM Property Handler
- Before stopping the audio pin, fill the dma buffer with silence samples
- create a subdevice descriptor for instantiated pins too

svn path=/trunk/; revision=49242
2010-10-23 18:42:59 +00:00
Johannes Anderwald 4b5747df27 [PORTCLS]
- Fix check if the pin can be instantiated another time
- Remove hack to close old
- Add function FreePin to remove its old reference
- Fix memory leaks / reference leaks in WavePci pin implementation
- Fix memory / reference leaks in WavePci Close implementation

svn path=/trunk/; revision=49238
2010-10-23 12:10:56 +00:00
Johannes Anderwald e8f968cbaa [PORTCLS]
- Check if there is a silence buffer available when there is no audio mapping available
- ignore failure for allocation requirements

svn path=/trunk/; revision=47909
2010-06-29 21:14:09 +00:00
Johannes Anderwald 3da5d96351 [PORTCLS]
- Use FreeItem function for freeing memory instead of doing it directly

svn path=/trunk/; revision=47819
2010-06-21 18:56:30 +00:00
Johannes Anderwald 0801068a35 [PORTCLS]
- Don't request initializing delayed service request as this is the task of the miniport driver
- Reimplement the service group object:
- Use the initialized timer object when RequestService is called
- Fix possible race conditions when adding / removing a service sink by protecting it with a lock
- Acquire the service group list lock when executing the shared dpc routine

svn path=/trunk/; revision=47197
2010-05-14 15:47:00 +00:00
Johannes Anderwald 309fb1c02a [PORTCLS]
- Implement a function to retrieve the current acquired mapping tag range of the miniport driver
- Call RevokeMappings when audio pin is stopped

svn path=/trunk/; revision=45862
2010-03-05 10:11:54 +00:00
Johannes Anderwald 95f5adb673 [PORTCLS]
- More cleanup
- Only copy audio bytes to common buffer when the audio pin is in the running state
- Only notify miniport when the audio pin is in the running state

svn path=/trunk/; revision=45860
2010-03-05 09:43:42 +00:00
Johannes Anderwald e3fb834a19 [PORTCLS]
- Remove dead code
- Disable last mapping failed status when a new mapping is inserted
- Notify IMiniportWavePciStream::MappingAvailable when a new mapping has arrived and the last one has failed
- Return STATUS_NOT_FOUND in IPortWavePciStream::GetMapping when no mapping is available
- Don't stop stream when no mapping is currently available 

svn path=/trunk/; revision=45859
2010-03-05 09:09:14 +00:00
Johannes Anderwald 46c8396918 - Implement looped streaming (needed for dsound bringup)
- Implement GetPosition handler for looped streaming, WIP

svn path=/trunk/; revision=43868
2009-10-31 08:26:26 +00:00
Stefan Ginsberg 3a16c5a061 - Don't use KeBugCheck(0) -- 0 is an invalid bugcode. Use a proper bugcode, DbgBreakPoint or UNIMPLEMENTED instead depending on how the old call was used.
- Remove some unused and deprecated macros from the network stack that did this.
- fastfat_new: Use FAT_FILE_SYSTEM instead of magic 0x23.

svn path=/trunk/; revision=43673
2009-10-21 17:52:11 +00:00
Johannes Anderwald 6793ef9a7c [PORTCLS]
- Implement support for submitting multiple stream headers at once
- Return correct status code on error
[WDMAUD_KERNEL]
- Save correct length

svn path=/trunk/; revision=43665
2009-10-21 06:34:24 +00:00
Johannes Anderwald 25db485c93 [PORTCLS]
- Silence most dprints of portcls
- Remove dead code
- Fix a bug in PcCreateSubdeviceDescriptor

svn path=/trunk/; revision=43618
2009-10-19 18:54:01 +00:00
Johannes Anderwald 7f2ba55772 - Implement KSPROPERTY_CONNECTION_ALLOCATORFRAMING for CPortPinWaveCyclic + CPortPinWavePci
svn path=/trunk/; revision=43446
2009-10-14 10:24:19 +00:00
Johannes Anderwald 89bda0c12e - Fix various bugs such as wrong function definitions, using of uninitialized variables
- Add macros which are not present in the WDK
- Check return type of synchronized interrupt routine
- Use PcHandlePropertyWithTable IPortPinWavePci
- Remove IServiceSink implementation from IPortWaveRt as it is a hack
- Add a small hack to IResource list implementation as prefast doesnt find decl of NumberOfEntries
- Fix build

svn path=/trunk/; revision=43437
2009-10-13 12:29:41 +00:00
Johannes Anderwald 0aa48e9268 [PORTCLS]
- Store MiniportStream & pin instance in subdevice descriptor
- Simplify irp handling code in class IIrpStream
- Rewrite CPortPinWaveCyclic code to handle property request. It now uses PcHandlePropertyWithTable, which calls the supported property request handlers via a callback. The code is now a lot cleaner as KsPropertyHandler peforms input & output length checks and also handles basic support requests
- Implement a Audio position handler for CPortPinWaveCyclic
- Use the IDmaChannel::CopyFrom when copying sound bytes from an dma buffer. Fixes recording of sound with KsStudio
- Make sure that the GUID_NULL handler only adds guid which are not already present in the guid array. Fixes duplicate entries of properties of Nodes in KsStudio
- Handle Basic Support requests in a default way when the driver doesnt provide a BasicSupport handler

svn path=/trunk/; revision=43414
2009-10-12 19:20:33 +00:00
Dmitry Gorbachev 9c974bb786 Avoid GCC warnings: deprecated conversion from string constant to 'WCHAR*'.
svn path=/trunk/; revision=43302
2009-10-05 14:13:09 +00:00
Johannes Anderwald ad2cf72549 - Convert portcls to a C++ driver
- Tested with Vbox 2.2.4 + AC97 with Winamp
- WIP, Testing recommended

svn path=/trunk/; revision=43026
2009-09-11 06:33:55 +00:00