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

Commit 702b105b authored by Phil Burk's avatar Phil Burk
Browse files

AudioPolicyManager: fix device enumeration



The AudioDeviceInfo only had PCM_FLOAT because the device enumeration was
stopping because of an error. The error was detected by new code
in the AudioFlinger.

The root error was not clearing a variable after a close.

Bug: 27457547
Change-Id: I529a26c8c0a688863bcf316ad365feddc303fe43
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 24b02edc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3637,6 +3637,7 @@ status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor> de
                    output = AUDIO_IO_HANDLE_NONE;
                } else if (profile->hasDynamicAudioProfile()) {
                    mpClientInterface->closeOutput(output);
                    output = AUDIO_IO_HANDLE_NONE;
                    profile->pickAudioProfile(config.sample_rate, config.channel_mask, config.format);
                    config.offload_info.sample_rate = config.sample_rate;
                    config.offload_info.channel_mask = config.channel_mask;