none
Problems with usb audio and setting default settings in windows 10 RRS feed

  • Question

  • Hello,

    I have used the following INF to set the default settings in Windows 7
    for a USB audio device, where it works great. 

    It does not work in Windows 10.

    It does however change the default settings, but it does not switch to
    them when the driver is installed like it did in Windows 7.

    Can anyone spot the problem? Does PKEY_AudioEngine_OEMFormat work
    differently in Windows 10 than in Windows 7? 

    Or do i have to do something more in Windows 10 to make it work?

    Any help would be appreciated, as the documentation is a bit sparse on
    this.

    Thanks,

    /pedro

    Thursday, April 25, 2019 3:18 PM

All replies

  • Here is the INF:

    [Version]
    Signature="$Windows NT$"
    Class=MEDIA
    ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
    provider="xyxyxyxy"
    CatalogFile = xyxyxy.cat
    DriverVer=01/01/2019,1.0.0.0

    [DestinationDirs]
    DefaultDestDir = 12

    [Manufacturer]
    %VendorName% = Devices, NTX86, NTAMD64

    [Devices.NTX86]
    %DeviceName1% = Microphone,USB\VID_1234&PID_0001&MI_00

    [Devices.NTAMD64]
    %DeviceName1% = Microphone,USB\VID_1234&PID_0001&MI_00

    [Microphone]
    Include=ks.inf, wdmaudio.inf, wdma_usb.inf
    Needs=KS.Registration, WDMAUDIO.Registration, USBAudio

    [Microphone.interfaces]
    AddInterface=%KSCATEGORY_AUDIO%,"GLOBAL", Microphone.Topo

    [Microphone.Topo]
    AddReg=Microphone.AddReg

    [Microphone.AddReg]
    HKR,"EP\\0", %PKEY_AudioEndpoint_Association%,,%KSNODETYPE_ANY%
    HKR,"EP\\0", %PKEY_AudioEngine_OEMFormat%, %REG_BINARY%,
    41,00,00,00,28,00,00,00,FE,FF,02,00,00,7D,00,00,00,F4,01,00,04,00,10,00
    ,16,00,10,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,7
    1

    [Microphone.Services]
    Include=wdma_usb.inf
    Needs=USBAudio.NT.Services

    [Strings]
    VendorName = "xyxyxyxy"
    DiskId1 = "USB Filter Installation Disk #1"
    DeviceName1 = "xyxyxyxy"
    filter.SvcDesc = "USB Audio Filter Driver"
    MfgName="xyxyxyxyxy"

    KSNODETYPE_ANY = "{00000000-0000-0000-0000-000000000000}"
    KSCATEGORY_AUDIO = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
    PKEY_AudioEndpoint_Association = "{1DA5D803-D492-4EDD-8C23-
    E0C0FFEE7F0E},2"
    PKEY_AudioEngine_OEMFormat = "{E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3"
    REG_BINARY = 0x00000001

    Thursday, April 25, 2019 3:18 PM
  • Hi again,

    Studying this a bit deeper, it seems that the new OEM default values are stored in registry on Win10 but not "activated".

    If one manually enters the audio settings and hits "default" settings, the correct value is then loaded.

    So to be precise, the change from Win7 -> Win10 seems to be that the reg-key is always set, but in the case of Win10 is is not automatically put into effect when updating the driver.

    So either this is a bug, or there needs to be a way for the INF file to trigger the activation of the new OEM default value.

    Thanks,

    /pedro

    Wednesday, May 8, 2019 9:29 PM