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

Commit 95a11254 authored by Atneya Nair's avatar Atneya Nair Committed by Android (Google) Code Review
Browse files

Merge "Un-require RECORD_OP for VOICE_DOWNLINK" into main

parents a8ba96f3 747554dc
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -80,9 +80,7 @@ static String16 resolveCallingPackage(PermissionController& permissionController
}

// NOTE/TODO(b/379754682):
// AUDIO_SOURCE_VOICE_DOWNLINK and AUDIO_SOURCE_VOICE_CALL are handled specially:
// DOWNLINK is an output source, but we still require RecordOp in addition to
// OP_RECORD_INCOMING_PHONE_AUDIO
// AUDIO_SOURCE_VOICE_CALL is handled specially:
// CALL includes both uplink and downlink, but we attribute RECORD_OP (only), since
// there is not support for noting multiple ops.
int32_t getOpForSource(audio_source_t source) {
@@ -110,7 +108,7 @@ bool isRecordOpRequired(audio_source_t source) {
    case AUDIO_SOURCE_FM_TUNER:
    case AUDIO_SOURCE_ECHO_REFERENCE: // fallthrough
    case AUDIO_SOURCE_REMOTE_SUBMIX:
    // case AUDIO_SOURCE_VOICE_DOWNLINK:
    case AUDIO_SOURCE_VOICE_DOWNLINK:
        return false;
    default:
      return true;