Merge "audio hal: initialize audio patch handle" into oc-dev

This commit is contained in:
Steve Paik 2017-04-21 15:03:59 +00:00 committed by Android (Google) Code Review
commit 9ba37420fe

View file

@ -225,7 +225,7 @@ Return<void> Device::createAudioPatch(
if (version() >= AUDIO_DEVICE_API_VERSION_3_0) {
std::unique_ptr<audio_port_config[]> halSources(HidlUtils::audioPortConfigsToHal(sources));
std::unique_ptr<audio_port_config[]> halSinks(HidlUtils::audioPortConfigsToHal(sinks));
audio_patch_handle_t halPatch;
audio_patch_handle_t halPatch = AUDIO_PATCH_HANDLE_NONE;
retval = analyzeStatus(
"create_audio_patch",
mDevice->create_audio_patch(