[wdmaudiodev] Re: WavePciStream runs out of mappings

  • From: Eugene Muzychenko <eugene@xxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 20 Feb 2012 21:24:32 +0700

Hello Markus,

> But changing driver architecture or implementing my own streaming interface
> is not really a solution that I expected to do....

The only solution I have found for PortCls is to restrict affinity of
the thread providing IOCTL_KS_READ_STREAM/IOCTL_KS_WRITE_STREAM IRPs
to a single CPU (for example, CPU 0). Processing these IRPs, PortCls
calls MappingAvailable so you can insert affinity restriction code
into this function. Don't forget to save thread ID to an internal
list/array to avoid calling affinity set functions every time.

Regards,
Eugene

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: