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

Commit 6e526df6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check context type with AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING...

Merge "Check context type with AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING usage" am: a1d09e3b am: 063130d4 am: fd88020a

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2107787



Change-Id: Ic93e79ed06d85dce30cbe08666ae916a4c02073b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents dcc596b8 fd88020a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3126,9 +3126,13 @@ class LeAudioClientImpl : public LeAudioClient {
      case AUDIO_USAGE_MEDIA:
        return LeAudioContextType::MEDIA;
      case AUDIO_USAGE_VOICE_COMMUNICATION:
      case AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING:
      case AUDIO_USAGE_CALL_ASSISTANT:
        return LeAudioContextType::CONVERSATIONAL;
      case AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING:
        if (content_type == AUDIO_CONTENT_TYPE_SPEECH)
          return LeAudioContextType::CONVERSATIONAL;
        else
          return LeAudioContextType::MEDIA;
      case AUDIO_USAGE_GAME:
        return LeAudioContextType::GAME;
      case AUDIO_USAGE_NOTIFICATION: