Skip to content

Solve the default mic volume modification and uac configuration does not take effect*

The first part of this article introduces how to modify the default volume of the mic on the PC side of the UAC upstream, and the second part introduces the solution that does not take effect after the UAC configuration is modified.

1. Modify the default volume of the PC mic*

Modifying the default mic volume on the uac upstream PC side can increase the recording range, the default setting is 50; uac1.0 supports modifying the default mic volume, The following modification is uac1.0.

Attention

uac2.0 does not support code to modify the default mic volume, you can manually modify it on the PC side.

1.1 Modify compilation configuration*

Select UAC Version (UAC 1.0) in VSP Workmode settings > Has UAC workmode in the compilation configuration

1.2 Modify the default collection volume*

Find the /vsp/mcu/drivers/udc/uac1/f_uac1.c file in the vsp project, and modify the value of the macro definition CAPTURE_VOLUME_DEFAULT, where the value is the default volume of the mic on the PC.

1.3 Recompile the test*

After modification, recompile and burn to verify whether the modification is successful, if not, please refer to "2.uac modification configuration does not take effect".

2. Windows system uac modification configuration does not take effect*

If the code modification is not effective, you need to uninstall the device and re-scan.

2.1 Modify uac configuration*

After the uac configuration is modified (device name, channel number, device type, etc.), it does not take effect on windows

2.2 Solutions*

This problem needs to uninstall the uac driver on windows, the uninstall method is as follows

2.2.1 Driver uninstall method 1*

Operation instructions: It is recommended to click Method 1 to open a new window.

2.2.2 Driver uninstall method 2*

Method 2 is used when method 1 does not work, and method 1 is preferred

Instructions:

  • see our device "UAC_DEV_NAME_V1"

  • Uninstall the driver

  • Click "Uninstall", the device will be gone in the device manager

  • Right click on "Sound, video, and game controllers" and click "Scan for hardware changes"

  • I see the new device name, but the device name in the bottom "Audio Input and Output" is not correct

  • Uninstall "Intel R Smart Sound Technology for USB Audio", If you don't have this option, you can only use Method 1

  • Check "Delete the driver software for this device" first, then click "Uninstall"

  • In the device manager, the device is gone

  • Right click on "Sound, video, and game controllers" and click "Scan for hardware changes"

  • From "Sound, video and game controllers" see the new device name has taken effect.