From cc3a3dd1bbf5cc8131139443eb6a71ecb71f6599 Mon Sep 17 00:00:00 2001 From: Wojtek Rzepecki Date: Thu, 18 Nov 2021 14:17:43 +0100 Subject: [PATCH] [BH-1211] Fix bell audio use cpu sentinel hold of CPU freq when audio is active --- products/BellHybrid/services/audio/ServiceAudio.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/products/BellHybrid/services/audio/ServiceAudio.cpp b/products/BellHybrid/services/audio/ServiceAudio.cpp index c1b71993b82b3b213a98f6b11903b13eacfdf07d..babdb31c47580c902907b0f9c4d1c22b01f0402b 100644 --- a/products/BellHybrid/services/audio/ServiceAudio.cpp +++ b/products/BellHybrid/services/audio/ServiceAudio.cpp @@ -144,6 +144,7 @@ namespace service }; auto input = audioMux.GetPlaybackInput(playbackType); AudioStart(input); + manageCpuSentinel(); return std::make_unique(retCode, retToken); } @@ -182,6 +183,7 @@ namespace service } bus.sendMulticast(std::move(msg), sys::BusChannel::ServiceAudioNotifications); audioMux.ResetInput(input); + manageCpuSentinel(); return retCode; } constexpr auto Audio::shouldLoop(const std::optional &type) const -> bool @@ -275,6 +277,7 @@ namespace service retCode = audio::RetCode::UnsupportedEvent; } } + manageCpuSentinel(); return std::make_unique(retCode); } auto Audio::handleResume() -> std::unique_ptr @@ -284,6 +287,7 @@ namespace service activeInput && activeInput.value()->audio->GetCurrentOperationState() == audio::Operation::State::Paused) { retCode = activeInput.value()->audio->Resume(); } + manageCpuSentinel(); return std::make_unique(retCode); } constexpr auto Audio::isResumable(audio::PlaybackType type) const -> bool