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

Commit 7dd2c7b9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Only returns supported mixer attributes for USB output devices." into...

Merge "Only returns supported mixer attributes for USB output devices." into udc-dev am: 1df77b62 am: db1df361

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/23175445



Change-Id: I41138008eb25f8c55ec96ddb66ee9cd04aeea561
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents fb47cbb8 db1df361
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4373,6 +4373,11 @@ status_t AudioPolicyManager::getSupportedMixerAttributes(
        ALOGE("%s the requested device is currently unavailable", __func__);
        return BAD_VALUE;
    }
    if (!audio_is_usb_out_device(deviceDescriptor->type())) {
        ALOGE("%s the requested device(type=%#x) is not usb device", __func__,
              deviceDescriptor->type());
        return BAD_VALUE;
    }
    for (const auto& hwModule : mHwModules) {
        for (const auto& curProfile : hwModule->getOutputProfiles()) {
            if (curProfile->supportsDevice(deviceDescriptor)) {