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

Commit eda8003a authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Gerrit - the friendly Code Review server
Browse files

hal: Fix aanc-path selection on SDM660

Ensure aanc-path is selected on SDM660 for
AANC path to get established.

CRs-Fixed: 2018432
Change-Id: Iea9ce17bffd7f5157e6726041013fdd0f3799452
parent eebe44e2
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -6829,11 +6829,19 @@ int platform_set_sidetone(struct audio_device *adev,
    return 0;
}

void platform_update_aanc_path(struct audio_device *adev __unused,
                               snd_device_t out_snd_device __unused,
                               bool enable __unused,
                               char *str __unused)
void platform_update_aanc_path(struct audio_device *adev,
                               snd_device_t out_snd_device,
                               bool enable,
                               char *str)
{
    ALOGD("%s: aanc out device(%d) mixer cmd = %s, enable = %d\n",
          __func__, out_snd_device, str, enable);

    if (enable)
        audio_route_apply_and_update_path(adev->audio_route, str);
    else
        audio_route_reset_and_update_path(adev->audio_route, str);

   return;
}