summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2023-06-07 17:30:12 -0700
committerLinux Build Service Account <lnxbuild@localhost>2023-06-07 17:30:12 -0700
commit391bda72a1d7c48a0cdd6f7f59b0587a9383f350 (patch)
treeea8698eae92e10bcd501204634f1d77dd22640c3
parent741b1f6b74024f66d13073abe5ae518f96194c42 (diff)
parent9f9893d58ce58bd3deae645b8412cd9c6687d061 (diff)
Merge 9f9893d58ce58bd3deae645b8412cd9c6687d061 on remote branch
Change-Id: I28ca1fbdb7062b2832b9d87c89261d75a9f9679a
-rw-r--r--Android.bp1
-rw-r--r--modules/audio_remote_submix/audio_hw.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 88e0d44f..6baab685 100644
--- a/Android.bp
+++ b/Android.bp
@@ -64,6 +64,7 @@ cc_library_headers {
apex_available: [
"//apex_available:platform",
"com.android.btservices",
+ "com.android.media",
"com.android.media.swcodec",
],
min_sdk_version: "29",
diff --git a/modules/audio_remote_submix/audio_hw.cpp b/modules/audio_remote_submix/audio_hw.cpp
index f96854b5..5019ae5b 100644
--- a/modules/audio_remote_submix/audio_hw.cpp
+++ b/modules/audio_remote_submix/audio_hw.cpp
@@ -679,7 +679,8 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
// FIXME this is using hard-coded strings but in the future, this functionality will be
// converted to use audio HAL extensions required to support tunneling
- if ((parms.getInt(String8("exiting"), exiting) == NO_ERROR) && (exiting > 0)) {
+ if ((parms.getInt(String8(AUDIO_PARAMETER_KEY_EXITING), exiting) == NO_ERROR)
+ && (exiting > 0)) {
struct submix_audio_device * const rsxadev =
audio_stream_get_submix_stream_out(stream)->dev;
pthread_mutex_lock(&rsxadev->lock);