[wdmaudiodev] Re: set the default audio format dynamically during/after driver installation

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 14 Aug 2018 12:10:48 -0700

Johannes Freyberger wrote:



It’s a pure virtual driver without real hardware. Would there be a
different answer depending from this? A different way to set the
format for virtual or real hardware drivers?


Absolutely.  The command "devcon install" sounds very inviting, but it
doesn't always do what you think.  It pre-installs the driver package,
and then it creates a new fake devnode with the hardware ID you give
it.  It then starts the PnP process to find a driver for the devnode it
created, just as if you had plugged in a brand new device.

It always creates a new devnode, even if one already exists.  It's very
easy to end up with duplicates.  If you change your INF, you must be
careful to remove the old fake devices.

-- 
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

Other related posts: