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

Commit 600793ba authored by Phil Burk's avatar Phil Burk Committed by Android (Google) Code Review
Browse files

Merge "AudioProfile: reject profile if not exact match" into nyc-dev

parents 58e8d02e 2cc2a033
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,8 +32,8 @@ status_t AudioProfile::checkExact(uint32_t samplingRate, audio_channel_mask_t ch
                                  audio_format_t format) const
{
    if (audio_formats_match(format, mFormat) &&
            (mChannelMasks.isEmpty() || supportsChannels(channelMask)) &&
            (mSamplingRates.isEmpty() || supportsRate(samplingRate))) {
            supportsChannels(channelMask) &&
            supportsRate(samplingRate)) {
        return NO_ERROR;
    }
    return BAD_VALUE;