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

Commit f7c88353 authored by Nate Myren's avatar Nate Myren
Browse files

Ensure VOICE_DOWNLINK audio is sent to INCOMING_PHONE op

Make audio from the VOICE_DOWNLINK audio source be attributed to the
OP_RECORD_INCOMING_PHONE_AUDIO app op

Bug: 184888709
Test: manual
Change-Id: I0af10f15d31ed4485be0288127d513d58d310143
parent 7de107c9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -73,6 +73,8 @@ static int32_t getOpForSource(audio_source_t source) {
      return AppOpsManager::OP_RECORD_AUDIO_HOTWORD;
    case AUDIO_SOURCE_REMOTE_SUBMIX:
      return AppOpsManager::OP_RECORD_AUDIO_OUTPUT;
    case AUDIO_SOURCE_VOICE_DOWNLINK:
      return AppOpsManager::OP_RECORD_INCOMING_PHONE_AUDIO;
    case AUDIO_SOURCE_DEFAULT:
    default:
      return AppOpsManager::OP_RECORD_AUDIO;