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

Commit 145d7d74 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Fix aanc-path selection on SDM660"

parents 2d753530 eda8003a
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;
}