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

Commit 31982adf authored by Zheng Zhang's avatar Zheng Zhang Committed by android-build-merger
Browse files

audio: hal: a workaround to avoid mic no sound while making voice call. am: 6185d57e

am: 6cf81737

Change-Id: I349626473d71c7acf537598f02529f61d07814a2
parents afed64ff 6cf81737
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3331,7 +3331,7 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
    if (check_input_parameters(config->sample_rate, config->format, channel_count) != 0)
        return -EINVAL;

    if (audio_extn_tfa_98xx_is_supported() && audio_extn_hfp_is_active(adev))
    if (audio_extn_tfa_98xx_is_supported() && (audio_extn_hfp_is_active(adev) || voice_is_in_call(adev)))
        return -EINVAL;

    in = (struct stream_in *)calloc(1, sizeof(struct stream_in));