~aleteoryx/muditaos

7d799695ae7ab38ea2ca1ac667bd9f56090e8038 — Lukasz Skrzypczak 5 years ago 02c42f3
Fixed formatting
1 files changed, 3 insertions(+), 3 deletions(-)

M module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp
M module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp => module-bsp/board/rt1051/bsp/audio/CodecMAX98090.cpp +3 -3
@@ 223,7 223,7 @@ CodecRetCode CodecMAX98090::Start(const CodecParams &param)
    // 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
    currentParams.inGain = 0; // let's try different gains
    SetInputGain(currentParams.inGain);

    // Turn on device


@@ 382,7 382,7 @@ CodecRetCode CodecMAX98090::SetInputGain(const float gain)
    }

    max98090_reg_lrec_dig_gain_t lgain = {0};
    lgain.avl                          = 0xF;               // fine gain - 0xF: -12dB
    lgain.avl                          = 0xF;             // fine gain - 0xF: -12dB
    lgain.avlg                         = gainToSet * 0.7; // coarse gain (0.7 used as scaling factor)

    i2cAddr.subAddress = MAX98090_REG_LREC_DIG_GAIN;


@@ 390,7 390,7 @@ CodecRetCode CodecMAX98090::SetInputGain(const float gain)

    // coarse gain - 18dB, fine gain - 0dB
    max98090_reg_rrec_dig_gain_t rgain = {0};
    rgain.avr                          = 0xF;               // fine gain - 0xF: -12dB
    rgain.avr                          = 0xF;             // fine gain - 0xF: -12dB
    rgain.avrg                         = gainToSet * 0.7; // coarse gain (0.7 used as scaling factor)

    i2cAddr.subAddress = MAX98090_REG_RREC_DIG_GAIN;