hal: Add support for dualmic fluence for voice communication
Add support for noise suppression preprocessing effect.
Add support for dualmic fluence for voice communication.
Reorganize input sound devices for more readability.
Remove invalid and unused legacy sound devices.
Bug: 14088317
Change-Id: Id9859de56780a8952d6e9acac84faa9b8ef1fdde
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 6299455..2c9163f 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1780,6 +1780,12 @@
if (!in->standby)
select_devices(in->dev, in->usecase);
}
+ if (in->enable_ns != enable &&
+ (memcmp(&desc.type, FX_IID_NS, sizeof(effect_uuid_t)) == 0)) {
+ in->enable_ns = enable;
+ if (!in->standby)
+ select_devices(in->dev, in->usecase);
+ }
pthread_mutex_unlock(&in->dev->lock);
pthread_mutex_unlock(&in->lock);