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

Commit c07684bb authored by vivek mehta's avatar vivek mehta Committed by Eric Laurent
Browse files

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
parent 4012509d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3453,10 +3453,8 @@ static int add_remove_audio_effect(const struct audio_stream *stream,
            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)