mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
audio: Add a missing break to EffectsFactory::getAllDescriptors
Would the legacy HAL return -ENOENT while retrieving an effect, the enumeration has to be aborted, and the effects queried so far need to be returned. A missing 'break' was causing returning no effects at all. Bug: 117567478 Test: make Change-Id: I7cc05004f88b39272d06d2ed33a0693f8e1e3d04
This commit is contained in:
@@ -101,6 +101,7 @@ restart:
|
||||
case -ENOENT: {
|
||||
// No more effects available.
|
||||
result.resize(i);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
result.resize(0);
|
||||
|
||||
Reference in New Issue
Block a user