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

Skip to content
Commit 848c4aed authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix updating metadata for the group.

Each group keeps its metadata so whenever set member is trying to attach
to the stream, it is verfing if its available contexts matches group
metadata.

This CL fixes updates of this metadata which could be 0x0000
when given group was configured before the  metadata were known.

In the real life it can happen, when Le Headset is connecting during the
call and client.cc is trying to configure it as soon as possible which
happens in GroupSetActive() function. At that time, if there were not
previous LeAudio Headset connected, Bluetooth is not aware of the
metadata, however it knows that bidirectional stream will be needed for
the phone call and configuration is happening.

Without this CL, when Audio HAL updated Bluetooth with metadata, those
were not set into the group, which later leads to situation that second
attached set member was no connected to the stream due to missing
metadata.

Bug: 392012679
Flag: Exempt, day-to-day fix. Regression tested with unit test.
Test: atest bluetooth_le_audio_test

Change-Id: Ib29d7d70ece6fee8c5c67150b5211b00002bb84c
parent fd19bcfa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment