hal: on effect enable disable, go over all the playback usecase
- when AEC effect is added \ removed, currently select device is
only called for first usecase with type playback
- fix issue by going over all the usecase and call select on
all usecase with type playback
Bug: 63607646
Test: Play music and place Hangout call.
Change-Id: I97c237311c9e00c6750a734e86c882df363e8704
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 2847666..f8d6725 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3453,10 +3453,8 @@
struct listnode *node;
list_for_each(node, &adev->usecase_list) {
usecase = node_to_item(node, struct audio_usecase, list);
- if (usecase->type == PCM_PLAYBACK) {
+ if (usecase->type == PCM_PLAYBACK)
select_devices(adev, usecase->id);
- break;
- }
}
}
if (!in->standby)