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

Commit 404a15e3 authored by Aalique Grahame's avatar Aalique Grahame
Browse files

hal: fix compilation error after disabling Dolby

Disabling Dolby causes unused variable error during
compilation. Cache adev variable to solve this.

CRs-Fixed: 2046777
Change-Id: I9579d58b7e95cc4ada50fc81b02a29f9604b831e
parent 2d753530
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ struct audio_extn_module {
    bool hifi_audio_enabled;
    bool ras_enabled;
    struct aptx_dec_bt_addr addr;
    struct audio_device *adev;
};

static struct audio_extn_module aextnmod;
@@ -805,6 +806,7 @@ void audio_extn_init(struct audio_device *adev)
    aextnmod.addr.nap = 0;
    aextnmod.addr.uap = 0;
    aextnmod.addr.lap = 0;
    aextnmod.adev = adev;

    audio_extn_dolby_set_license(adev);
    audio_extn_aptx_dec_set_license(adev);