Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2e45539 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: avoid sending audio calibration during voice call"

parents 936bb28e e57f6009
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1269,11 +1269,15 @@ void audio_extn_utils_send_audio_calibration(struct audio_device *adev,
        platform_send_audio_calibration(adev->platform, usecase,
                         usecase->stream.in->app_type_cfg.app_type,
                         usecase->stream.in->app_type_cfg.sample_rate);
    } else {
    } else if (type == PCM_HFP_CALL) {
        /* when app type is default. the sample rate is not used to send cal */
        platform_send_audio_calibration(adev->platform, usecase,
                         platform_get_default_app_type_v2(adev->platform, usecase->type),
                         48000);
    } else {
        /* No need to send audio calibration for voice and voip call usecases */
        if ((type != VOICE_CALL) && (type != VOIP_CALL))
            ALOGW("%s: No audio calibration for usecase type = %d",  __func__, type);
    }
}