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

Commit 90414b3b authored by Dan Pasanen's avatar Dan Pasanen Committed by Dan Pasanen
Browse files

hal: enable amplifier earlier

Change-Id: Id876e8f836e3ce1ee5f8186ca9c0e6ef5f37182c
parent 30455c2c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4084,14 +4084,15 @@ static int adev_open(const hw_module_t *module, const char *name,
    adev->bt_wb_speech_enabled = false;

    audio_extn_ds2_enable(adev);

    if (amplifier_open() != 0)
        ALOGE("Amplifier initialization failed");

    *device = &adev->device.common;

    audio_extn_utils_update_streams_output_cfg_list(adev->platform, adev->mixer,
                                                    &adev->streams_output_cfg_list);

    if (amplifier_open() != 0)
        ALOGE("Amplifier initialization failed");

    audio_device_ref_count++;

    char value[PROPERTY_VALUE_MAX];