Loading hal/audio_extn/utils.c +5 −1 Original line number Diff line number Diff line Loading @@ -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); } } Loading Loading
hal/audio_extn/utils.c +5 −1 Original line number Diff line number Diff line Loading @@ -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); } } Loading