summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-04-10 11:29:24 -0700
committerEric Laurent <elaurent@google.com>2015-04-15 23:15:38 +0000
commit554a277d4e42a3d3df3d90ba0e7dfa2d31690e32 (patch)
tree3647500470a7eca8095102a0e2818acb848cdf6a /include
parent3249558196082087fb8bd0a847ef5c6000c8b925 (diff)
downloadframeworks_av-554a277d4e42a3d3df3d90ba0e7dfa2d31690e32.zip
frameworks_av-554a277d4e42a3d3df3d90ba0e7dfa2d31690e32.tar.gz
frameworks_av-554a277d4e42a3d3df3d90ba0e7dfa2d31690e32.tar.bz2
audio policy: add binder calls for audio source control
Add binder methods to IAudioPolicyService to control activity of external audio sources (e.g FM tuner). Change-Id: I2008308a6a996baeae502b68a790d87281efe2ff
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioSystem.h6
-rw-r--r--include/media/IAudioPolicyService.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index 927283c..182133c 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -332,6 +332,12 @@ public:
static status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration);
+ static status_t startAudioSource(const struct audio_port_config *source,
+ const audio_attributes_t *attributes,
+ audio_io_handle_t *handle);
+ static status_t stopAudioSource(audio_io_handle_t handle);
+
+
// ----------------------------------------------------------------------------
class AudioPortCallback : public RefBase
diff --git a/include/media/IAudioPolicyService.h b/include/media/IAudioPolicyService.h
index 7506153..413267b 100644
--- a/include/media/IAudioPolicyService.h
+++ b/include/media/IAudioPolicyService.h
@@ -155,6 +155,11 @@ public:
virtual audio_mode_t getPhoneState() = 0;
virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration) = 0;
+
+ virtual status_t startAudioSource(const struct audio_port_config *source,
+ const audio_attributes_t *attributes,
+ audio_io_handle_t *handle) = 0;
+ virtual status_t stopAudioSource(audio_io_handle_t handle) = 0;
};