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

Commit 32847eff authored by Zheng Zhang's avatar Zheng Zhang
Browse files

audio: hal: fix power issue if tfa98xx calibration failed

mi2s isn't closed if tfa98xx calibration failed.
it causes the power consumption abnormal.

Change-Id: I8e102a98b5261d40098b2fe8ec197a636a73e693
parent a7bed17a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -512,7 +512,6 @@ int audio_extn_tfa_98xx_init(struct audio_device *adev)
        ret = data->set_speaker_calibration(0);
        if (ret) {
            ALOGE("%s: exTfa98xx_calibration return %d\n", __func__, ret);
            goto err_init;
        }

        ret = tfa_98xx_set_audio_mode(I2S_CLOCK_DISABLE, adev, Audio_Mode_Music_Normal);