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

Commit f16721c8 authored by Anish Kumar's avatar Anish Kumar Committed by Gerrit - the friendly Code Review server
Browse files

hal: Fix incorrect acdb_id selection for speaker protection

Enable right acdb_id for speaker protection usecase. Currently
it is sending calibration for speaker in speaker protection use
case.

Change-Id: I6b40779190cc011d195fb2ae32b14fe0fdb55ec4
parent 7de61eb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1050,7 +1050,7 @@ int platform_send_audio_calibration(void *platform, snd_device_t snd_device,
    struct platform_data *my_data = (struct platform_data *)platform;
    int acdb_dev_id, acdb_dev_type;

    acdb_dev_id = acdb_device_table[snd_device];
    acdb_dev_id = acdb_device_table[audio_extn_get_spkr_prot_snd_device(snd_device)];
    if (acdb_dev_id < 0) {
        ALOGE("%s: Could not find acdb id for device(%d)",
              __func__, snd_device);