From 5f9bb1b0278357258621dcfde20e2edf2e01f4b3 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 12 Nov 2019 14:59:08 -0800 Subject: [PATCH] audio: add audio session for device effects Add specific audio session ID for effects applied to a particular audio device. Bug: 136294538 Test: make Change-Id: Iea3e3a07f404e1075844422c740d2dc4d5163598 Merged-In: Iea3e3a07f404e1075844422c740d2dc4d5163598 --- audio/common/6.0/types.hal | 5 +++++ current.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/audio/common/6.0/types.hal b/audio/common/6.0/types.hal index c76f678ac1..da506d66e0 100644 --- a/audio/common/6.0/types.hal +++ b/audio/common/6.0/types.hal @@ -156,6 +156,11 @@ typedef int32_t AudioSession; */ @export(name="audio_session_t", value_prefix="AUDIO_SESSION_") enum AudioSessionConsts : int32_t { + /** + * Session for effects attached to a particular sink or source audio device + * (e.g an effect only applied to a speaker) + */ + DEVICE = -2, /** * Session for effects attached to a particular output stream * (value must be less than 0) diff --git a/current.txt b/current.txt index d92ecada03..b33b9db4fe 100644 --- a/current.txt +++ b/current.txt @@ -592,7 +592,7 @@ bca5379d5065e2e08b6ad7308ffc8a71a972fc0698bec678ea32eea786d01cb5 android.hardwar 2df5d5866b37776f25079c0e54b54350a2abe4e025a59c9e02a7d3abe8ca00e8 android.hardware.audio@6.0::IStreamIn 78e4138cc8307c11fc777c3bd376e581ba4ba48196b05ca1d7cdfa515c87b48a android.hardware.audio@6.0::IStreamOut 997fdaad7a9d17ee7e01feb7031a753e2365e72ad30b11d950e9183fabdf3844 android.hardware.audio@6.0::IStreamOutCallback -996a930734d2875471d49972ab0117071831f5e6504e1b63a9664c9634da7687 android.hardware.audio.common@6.0::types +b495a43bd6ff0c34a391824b0ba1a3f3f34b4a869690611a9a0afc404d75aa84 android.hardware.audio.common@6.0::types 817930d58412d662cb45e641c50cb62c727e4a3e3ffe7029a53cad9677b97d58 android.hardware.audio.effect@6.0::types 525bec6b44f1103869c269a128d51b8dccd73af5340ba863c8886c68357c7faf android.hardware.audio.effect@6.0::IAcousticEchoCancelerEffect 8d76bbe3719d051a8e9a1dcf9244f37f5b0a491feb249fa48391edf7cb4f3131 android.hardware.audio.effect@6.0::IAutomaticGainControlEffect