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

Commit 3d6f1fc9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: update sink capability for dynamic format support"

parents 08ae787f a8698415
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2941,9 +2941,13 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
            config->sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE;
        if (config->channel_mask == 0)
            config->channel_mask = AUDIO_CHANNEL_OUT_5POINT1;
        if (config->format == 0)
            config->format = AUDIO_FORMAT_PCM_16_BIT;


        out->channel_mask = config->channel_mask;
        out->sample_rate = config->sample_rate;
        out->format = config->format;
        out->usecase = USECASE_AUDIO_PLAYBACK_MULTI_CH;
        out->config = pcm_config_hdmi_multi;
        out->config.rate = config->sample_rate;