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

Commit a31591a2 authored by Liana Kazanova's avatar Liana Kazanova Committed by Mikhail Naganov
Browse files

Revert "audiopolicy: use profile flags during opening an input"

This reverts aosp/3130933

Reason for revert: Breaks device-boot-health-check-extra,
confirmed with the ABTD run which applies the revert over
the first broken build 12070219.

Bug: 345692843
Bug: 352575543
Test: ABTD run L75400030005121787
Change-Id: I80119b6884e13e1f5903f292fae6bf0accdac442
parent 30a16cce
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6480,7 +6480,7 @@ void AudioPolicyManager::onNewAudioModulesAvailableInt(DeviceVector *newDevices)
            status_t status = inputDesc->open(nullptr,
                                              availProfileDevices.itemAt(0),
                                              AUDIO_SOURCE_MIC,
                                              (audio_input_flags_t) inProfile->getFlags(),
                                              AUDIO_INPUT_FLAG_NONE,
                                              &input);
            if (status != NO_ERROR) {
                ALOGW("%s: Cannot open input stream for device %s for profile %s on hw module %s",
@@ -6795,8 +6795,7 @@ status_t AudioPolicyManager::checkInputsForDevice(const sp<DeviceDescriptor>& de
            desc = new AudioInputDescriptor(profile, mpClientInterface);
            audio_io_handle_t input = AUDIO_IO_HANDLE_NONE;
            ALOGV("%s opening input for profile %s", __func__, profile->getTagName().c_str());
            status = desc->open(nullptr, device, AUDIO_SOURCE_MIC,
                                (audio_input_flags_t) profile->getFlags(), &input);
            status = desc->open(nullptr, device, AUDIO_SOURCE_MIC, AUDIO_INPUT_FLAG_NONE, &input);

            if (status == NO_ERROR) {
                const String8& address = String8(device->address().c_str());