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

Commit ab75a5d1 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Jakub Pawłowski
Browse files

LE Audio: allow microphone without speaker usage

This is fix of copy-paste error. Microphone should check receiver, not
sender state.

Test: Start recording audio without playing music first, observe
recorder receiving audio samples
Bug: 150670922
Change-Id: Iab5b40b1f8e2008aa8f3eb053b517fcb0503a7ae
parent 6bd7b3c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2143,7 +2143,7 @@ class LeAudioClientImpl : public LeAudioClient {
    /* Get only one channel for MONO microphone */
    /* Gather data for channel */
    if ((active_group_id_ == bluetooth::groups::kGroupUnknown) ||
        (audio_sender_state_ != AudioState::STARTED))
        (audio_receiver_state_ != AudioState::STARTED))
      return;

    LeAudioDeviceGroup* group = aseGroups_.FindById(active_group_id_);