From 4cc196c9743ea00276f1ceb872f066d70f9ce523 Mon Sep 17 00:00:00 2001 From: Lukasz Skrzypczak Date: Mon, 7 Dec 2020 17:11:51 +0100 Subject: [PATCH] Corrected setting gain to 0 --- module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp b/module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp index a88ff63f2579c2d26d7ac8b58dd8875bd8d3218a..8d0cf656f3a172d2bb7393cd4d6942d3200cb3d0 100644 --- a/module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp +++ b/module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp @@ -223,7 +223,7 @@ CodecRetCode CodecMAX98090::Start(const CodecParams ¶m) // Set volume to 0 before enabling codec to avoid pops/clicks auto currVol = currentParams.outVolume; SetOutputVolume(0); - currentParams.inGain = 0; // let's try different gains + SetInputGain(currentParams.inGain); // Turn on device