commit | b75aa6a89784cb3c1b6125cbe7e16dd6016897e1 | [log] [tgz] |
---|---|---|
author | Haofan Wang <haofanw@google.com> | Tue Jul 09 23:06:58 2024 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Wed Aug 21 12:57:07 2024 -0700 |
tree | 55e5cf179fae40257b120fcda752b85e06784743 | |
parent | bf44e0994b18f631bf9f4e04b5d6efcb52b1eebe [diff] [blame] |
Send the Audio Usage down from AudioPolicyManager Store audioUsgae in AudioAttributes and send it down to AudioFlinger::openOutput_l. Then extract audioUsage and store in SourceMetadata to pass it down to the HAL layer. Bug: 297875432 Test: Add a fake audio usage in attribute in AudioFlinger::openoutput(), then test by checking the log message. The fake usage does get pass down to the DeviceHalAidl::openOutputStream(). Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f6e304f9c5066ae829a91dcd98bc6045a13a8b30) Merged-In: Ic9a739f1de50485304187be5c4b603955afabbf8 Change-Id: Ic9a739f1de50485304187be5c4b603955afabbf8
diff --git a/services/audioflinger/IAfPatchPanel.h b/services/audioflinger/IAfPatchPanel.h index 6110e4c..37dce3a 100644 --- a/services/audioflinger/IAfPatchPanel.h +++ b/services/audioflinger/IAfPatchPanel.h
@@ -82,7 +82,8 @@ audio_config_base_t* mixerConfig, audio_devices_t deviceType, const String8& address, - audio_output_flags_t flags) REQUIRES(mutex()) = 0; + audio_output_flags_t flags, + audio_attributes_t attributes) REQUIRES(mutex()) = 0; virtual audio_utils::mutex& mutex() const RETURN_CAPABILITY(audio_utils::AudioFlinger_Mutex) = 0; virtual const DefaultKeyedVector<audio_module_handle_t, AudioHwDevice*>&