diff options
author | Mikhail Naganov <mnaganov@google.com> | 2019-12-11 12:36:26 -0800 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2019-12-13 19:28:37 -0800 |
commit | 6c070ca4e89c4d5d044153d05bc53f9339b36f3c (patch) | |
tree | f159215b275ae94f7969284f6ea201be37ea6dff /audio/core/all-versions/default/PrimaryDevice.cpp | |
parent | c13049c6c336058c580cff4e6fbef7c00ae3a35f (diff) |
audio: Add IDevice::updateAudioPatch method
Add method 'updateAudioPatch' which should be used when
an existing patch needs to be updated with new routing.
Use of this method allows audio HAL to avoid disrupting
audio stream while changing routing.
Bug: 79248321
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I6c87f67fa4f2463ba9e8f0272a3232f5c9c55714
Diffstat (limited to 'audio/core/all-versions/default/PrimaryDevice.cpp')
-rw-r--r-- | audio/core/all-versions/default/PrimaryDevice.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/core/all-versions/default/PrimaryDevice.cpp b/audio/core/all-versions/default/PrimaryDevice.cpp index 0f1aba0f2f..679f85dad3 100644 --- a/audio/core/all-versions/default/PrimaryDevice.cpp +++ b/audio/core/all-versions/default/PrimaryDevice.cpp @@ -176,6 +176,13 @@ Return<Result> PrimaryDevice::addDeviceEffect(AudioPortHandle device, uint64_t e Return<Result> PrimaryDevice::removeDeviceEffect(AudioPortHandle device, uint64_t effectId) { return mDevice->removeDeviceEffect(device, effectId); } + +Return<void> PrimaryDevice::updateAudioPatch(int32_t previousPatch, + const hidl_vec<AudioPortConfig>& sources, + const hidl_vec<AudioPortConfig>& sinks, + updateAudioPatch_cb _hidl_cb) { + return mDevice->updateAudioPatch(previousPatch, sources, sinks, _hidl_cb); +} #endif // Methods from ::android::hardware::audio::CPP_VERSION::IPrimaryDevice follow. |