How to adjust mic recording volume

hi

i am connect i2s microphone sph045 to jetson nano. i am able to record the wav file … could you let me know how to adjust the recording volume ?

amixer -c tegrasndt210ref cset name=‘ADMAIF1 Mux’ I2S4
arecord -D hw:tegrasndt210ref,0 -r 48000 -f S32_LE -c 1 -d 10 test.wav

Hello!

You can use the MVC (master volume control) module you control the volume. Please see the following example …

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fasoc_driver.18.2.html%23wwpID0E0RH0HA

Regards,
Jon

can you check below command

amixer -c tegrasndt210ref cset name=“MVC1 Mux” ADMAIF1
amixer -c tegrasndt210ref cset name=“I2S4 Mux” MVC1
amixer -c tegrasndt210ref sset ‘MVC1 input bit format’ 32
amixer -c tegrasndt210ref cset name=‘MVC1 Vol’ 16000
arecord -D hw:tegrasndt210ref,0 -r 48000 -f S32_LE -c 2 -d 10 test.wav

the recording volume still low on audacity.

Hello!

The example, is for playback and for capture what you want is …

amixer -c tegrasndt210ref cset name=“ADMAIF1 Mux” MVC1
amixer -c tegrasndt210ref cset name=“MVC1 Mux” I2S4
amixer -c tegrasndt210ref sset ‘MVC1 input bit format’ 32
amixer -c tegrasndt210ref cset name=‘MVC1 Vol’ 16000
arecord -D hw:tegrasndt210ref,0 -r 48000 -f S32_LE -c 2 -d 10 test.wav

Regards,
Jon