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

Commit c9d2a910 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi Committed by Ytai Ben-tsvi
Browse files

Avoid incompatible audio_port_config

Fix as per b/206668381#comment6

Fixes: 206668381
Test: N/A (see comments)
Change-Id: Idc51d8c6714ac5d10a08b2ddd6471fc8b0546e51
parent 96024460
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4101,7 +4101,7 @@ status_t AudioPolicyManager::createAudioPatchInternal(const struct audio_patch *
                    }
                    if (outputDesc != nullptr) {
                        audio_port_config srcMixPortConfig = {};
                        outputDesc->toAudioPortConfig(&srcMixPortConfig, &patch->sources[0]);
                        outputDesc->toAudioPortConfig(&srcMixPortConfig, nullptr);
                        // for volume control, we may need a valid stream
                        srcMixPortConfig.ext.mix.usecase.stream = sourceDesc != nullptr ?
                                    sourceDesc->stream() : AUDIO_STREAM_PATCH;