summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/AudioPolicyManager.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-08-27 15:32:29 -0700
committerEric Laurent <elaurent@google.com>2014-08-27 18:17:08 -0700
commit05b90f833337ab5f7b16509e5f1d339a04eb5bf6 (patch)
treed78fd01541fe617b2ef1753dade9955463d5f006 /services/audiopolicy/AudioPolicyManager.h
parent9dd4a2ddd7caf8cbe50d8a76e0ec3e0274d2bce6 (diff)
downloadframeworks_av-05b90f833337ab5f7b16509e5f1d339a04eb5bf6.zip
frameworks_av-05b90f833337ab5f7b16509e5f1d339a04eb5bf6.tar.gz
frameworks_av-05b90f833337ab5f7b16509e5f1d339a04eb5bf6.tar.bz2
audio policy: remove audio patch when closing input or output
Make sure that an audio patch having an output as source or input as sink is removed when this input or output is closed. Bug: 17303725. Change-Id: I234d54a25ce0b579eeeafdcfda3a0594f048768c
Diffstat (limited to 'services/audiopolicy/AudioPolicyManager.h')
-rw-r--r--services/audiopolicy/AudioPolicyManager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h
index e3e3172..158a202 100644
--- a/services/audiopolicy/AudioPolicyManager.h
+++ b/services/audiopolicy/AudioPolicyManager.h
@@ -646,6 +646,9 @@ protected:
// close an output and its companion duplicating output.
void closeOutput(audio_io_handle_t output);
+ // close an input.
+ void closeInput(audio_io_handle_t input);
+
// checks and if necessary changes outputs used for all strategies.
// must be called every time a condition that affects the output choice for a given strategy
// changes: connected device, phone state, force use...