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

Commit 62aaabb3 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: fix unitialized hw module in audio port

The hw module handle was not initialized when creating
and audio port configuration from an input stream descriptor.

Bug 15376641.

Change-Id: I6c784cded68a5c665fd22c3643765c63f70eb241
parent e1715a46
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4644,6 +4644,9 @@ void AudioPolicyManager::AudioInputDescriptor::toAudioPortConfig(
            dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN;
        }
    }
    dstConfig->ext.mix.hw_module = mProfile->mModule->mHandle;
    dstConfig->ext.mix.handle = mIoHandle;
    dstConfig->ext.mix.usecase.source = mInputSource;
}

void AudioPolicyManager::AudioInputDescriptor::toAudioPort(
+1 −1

File changed.

Contains only whitespace changes.