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

Commit 90d657d4 authored by Mickey Keeley's avatar Mickey Keeley
Browse files

Map AUDIO_SOURCE_ECHO_REFERENCE to an Operation.

Similar to AUDIO_SOURCE_REMOTE_SUBMIX, echo reference is an input stream
that does not use the microphone.

Bug: 189817123
Test: Privacy indicator is not shown when echo reference input stream is
active.

Change-Id: I722aafdb35d2378fb9d72f265b41551e253bcb9e
parent ceed2a8e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ int32_t getOpForSource(audio_source_t source) {
  switch (source) {
    case AUDIO_SOURCE_HOTWORD:
      return AppOpsManager::OP_RECORD_AUDIO_HOTWORD;
    case AUDIO_SOURCE_ECHO_REFERENCE: // fallthrough
    case AUDIO_SOURCE_REMOTE_SUBMIX:
      return AppOpsManager::OP_RECORD_AUDIO_OUTPUT;
    case AUDIO_SOURCE_VOICE_DOWNLINK: