hal: support for for mi2s speaker adsp algo.
Change-Id: I77945be6eb8f853e29e394a51eb28fc8fb759b4a
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index aa9a7ae..52d2a45 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -293,6 +293,8 @@
return -EINVAL;
}
+ audio_extn_dsm_feedback_enable(adev, snd_device, true);
+
if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) &&
audio_extn_spkr_prot_is_enabled()) {
@@ -329,6 +331,8 @@
if (adev->snd_dev_ref_cnt[snd_device] == 0) {
const char * dev_path = platform_get_snd_device_name(snd_device);
ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
+
+ audio_extn_dsm_feedback_enable(adev, snd_device, false);
if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) &&
audio_extn_spkr_prot_is_enabled()) {