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

Commit 95fc2b76 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Update audio session if not streaming

With this, when two devices are connected and not streaming, audio
session will be updated accordingly.

Streaming case will be handled later

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: manual
Change-Id: Ibe995a6886eda26930a48b0bbb432b4d04a6fce1
parent 29cc988c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1703,9 +1703,10 @@ class LeAudioClientImpl : public LeAudioClient {
    auto* stream_conf = &group->stream_conf;

    if (!stream_conf->valid) {
      LOG(ERROR) << __func__
                 << " Configuration not valid. (btw not sure we need this "
                    "flag)";
      LOG(INFO) << __func__
                 << " Device not streaming but active. Lets update audio "
                    "session to match needed channel number";
      UpdateCurrentHalSessions(active_group_id_, current_context_type_);
      return;
    }