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

Commit 96f968e2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: add usecase type check"

parents 2d1a714f 0d373248
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2752,6 +2752,7 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
              !(usecase->stream.out->flags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) &&
              (usecase->type != TRANSCODE_LOOPBACK_TX) &&
              (usecase->type != TRANSCODE_LOOPBACK_RX) &&
              (usecase->type != PCM_CAPTURE) &&
              usecase->stream.out->started) {
              if (is_bt_soc_on(adev) == false) {
                  ALOGD("BT SCO/A2dp disconnected while in connection");