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

Commit b4133ed1 authored by jiabin's avatar jiabin Committed by Jiabin Huang
Browse files

Add bit-perfect flag.

The bit-perfect flag can be used to indicate the audio output stream must
be bit-perfect from apps down to the sink.

Bug: 239435816
Test: make
Change-Id: I336f8a698318cb7bc82d88a7bdffcc0d8f2f6fe2
Merged-In: I336f8a698318cb7bc82d88a7bdffcc0d8f2f6fe2
parent a4c2235b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1527,6 +1527,8 @@ ConversionResult<audio_output_flags_t> aidl2legacy_AudioOutputFlags_audio_output
            return AUDIO_OUTPUT_FLAG_ULTRASOUND;
        case AudioOutputFlags::SPATIALIZER:
            return AUDIO_OUTPUT_FLAG_SPATIALIZER;
        case AudioOutputFlags::BIT_PERFECT:
            return AUDIO_OUTPUT_FLAG_BIT_PERFECT;
    }
    return unexpected(BAD_VALUE);
}
@@ -1572,6 +1574,8 @@ ConversionResult<AudioOutputFlags> legacy2aidl_audio_output_flags_t_AudioOutputF
            return AudioOutputFlags::ULTRASOUND;
        case AUDIO_OUTPUT_FLAG_SPATIALIZER:
            return AudioOutputFlags::SPATIALIZER;
        case AUDIO_OUTPUT_FLAG_BIT_PERFECT:
            return AudioOutputFlags::BIT_PERFECT;
    }
    return unexpected(BAD_VALUE);
}