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

Commit edf0b4c6 authored by Kevin Rocard's avatar Kevin Rocard
Browse files

HAL out_get_parameters: do not return unknown keys



in_get_parameters and adv_get_parameters only return keys that are
supported. That allows the client the discriminate between keys not
supported and empty return value.

Align out_get_parameters with this behaviour.

Test: vts-tradefed run vts --module VtsHalAudioV2_0Target
Test: call/play music/record/video...
Bug: 36311550
Change-Id: Ia6e26dd50b05188099f4414d3c5a3c55f0ea89fa
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent e35d4aff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2094,7 +2094,7 @@ static char* out_get_parameters(const struct audio_stream *stream, const char *k
        str_parms_add_str(reply, AUDIO_PARAMETER_STREAM_SUP_CHANNELS, value);
        str = str_parms_to_str(reply);
    } else {
        str = strdup(keys);
        str = strdup("");
    }
    str_parms_destroy(query);
    str_parms_destroy(reply);