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

Commit 0c5df098 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix setting session

We do have assumtion that MEDIA is a default context_type,
but this knowledge is in the currect_context_type_ and if
this is changed, we should take it into account

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: manual

Change-Id: I737e45ff1f2ce7280c8657d044cda00552147367
parent 0a87cb6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -676,7 +676,7 @@ class LeAudioClientImpl : public LeAudioClient {
    }

    /* Configure audio HAL sessions with most frequent context */
    UpdateCurrentHalSessions(group_id, LeAudioContextType::MEDIA);
    UpdateCurrentHalSessions(group_id, current_context_type_);
    if (current_source_codec_config.IsInvalid() &&
        current_sink_codec_config.IsInvalid()) {
      LOG(WARNING) << __func__ << ", unsupported device configurations";