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

Commit 09f65eff authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Alice Kuo
Browse files

leaudio: Fix for bad audio when one earbud connected

Fix is configuring Audio Session for 2 channels always, as other part of
code expect this.

Bug: 212490645
Bug: 150670922
Test: Manual test audio on single earbud.
Sponsor: @jpawlowski
Change-Id: I6863faab53bd025daa1d0df07140a64504a60df4
parent 9636f583
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2336,7 +2336,11 @@ class LeAudioClientImpl : public LeAudioClient {

      current_source_codec_config = *source_configuration;

      LeAudioClientAudioSource::Start(current_source_codec_config,
      /*Let's always request 2 channels from the framework */
      auto audio_framework_configuration = current_source_codec_config;
      audio_framework_configuration.num_channels = 2;

      LeAudioClientAudioSource::Start(audio_framework_configuration,
                                      audioSinkReceiver);

    } else {