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

Commit adf0f3b3 authored by Ravi Kumar Alamanda's avatar Ravi Kumar Alamanda Committed by Eric Laurent
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.

Cherry-pick of CAF commit:
f16721c8

Change-Id: I735f0ab39815cac99d11cc91c23a5220fbae87df
parent 33575cb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -937,7 +937,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);