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

Commit 2df46e6d authored by Chiou-Hao Hsu's avatar Chiou-Hao Hsu Committed by Linux Build Service Account
Browse files

audio: fix conversion from int error

This fixes compiler issue:
 "error: invalid conversion from 'int' to 'audio_output_flags_t'

Change-Id: I99c25d93c4a046021c42478a7a8fc01abdf52f77
parent 48247b41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1055,7 +1055,7 @@ sp<AudioPolicyManager::IOProfile> AudioPolicyManager::getProfileForDirectOutput(
            bool found = profile->isCompatibleProfile(device, samplingRate,
                    NULL /*updatedSamplingRate*/, format, channelMask,
                    flags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD ?
                        AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD : (AUDIO_OUTPUT_FLAG_DIRECT | flags));
                        AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD : (audio_output_flags_t) (AUDIO_OUTPUT_FLAG_DIRECT | flags));
            if (found && (mAvailableOutputDevices.types() & profile->mSupportedDevices.types())) {
                return profile;
            }