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

Commit 3d11dc23 authored by Ramjee Singh's avatar Ramjee Singh Committed by Arne Coucheron
Browse files

hal: update sink capability for dynamic format support

Change-Id: I2cd37de819ee3428913b7b2d4b1b4e4425e764fb
parent 1f9bbc42
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2636,9 +2636,12 @@ 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;