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

Commit 92ec0c41 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: fix default offload info when opening an output stream

There is no reason to use different values than the ones set by
AUDIO_INFO_INITIALIZER when creating an offload info struct in
SwAudioOutputDescriptor::open().

Also removed useless code added by commit d4adbdb7.

Bug: 232048775
Test: make
Change-Id: Ib7252d8ff314478e5b61421fdcf429780de313e3
parent f09d60b0
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -571,12 +571,6 @@ status_t SwAudioOutputDescriptor::open(const audio_config_t *halConfig,
        lHalConfig.offload_info.channel_mask = lHalConfig.channel_mask;
        lHalConfig.offload_info.format = lHalConfig.format;
        lHalConfig.offload_info.stream_type = stream;
        lHalConfig.offload_info.duration_us = -1;
        lHalConfig.offload_info.has_video = true; // conservative
        lHalConfig.offload_info.is_streaming = true; // likely
        lHalConfig.offload_info.encapsulation_mode = lHalConfig.offload_info.encapsulation_mode;
        lHalConfig.offload_info.content_id = lHalConfig.offload_info.content_id;
        lHalConfig.offload_info.sync_id = lHalConfig.offload_info.sync_id;
    }

    audio_config_base_t lMixerConfig;