summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-08-06 19:40:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-06 17:19:40 +0000
commit0a0e5f02037f396237461a9840b2fc7271812bdc (patch)
treee7e029f1a04fde3a58657c4131f439c90ae3a5e5 /include
parent7f3f2fa386b8dd917022663bcb01f10ea67061be (diff)
parent93c3d41bdb15e39dac0faea9c5b60f1637cd477c (diff)
downloadframeworks_av-0a0e5f02037f396237461a9840b2fc7271812bdc.zip
frameworks_av-0a0e5f02037f396237461a9840b2fc7271812bdc.tar.gz
frameworks_av-0a0e5f02037f396237461a9840b2fc7271812bdc.tar.bz2
Merge "AudioSystem: add API to query audio HW sync source" into lmp-dev
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioSystem.h5
-rw-r--r--include/media/IAudioFlinger.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index f22792f..dd63a23 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -149,6 +149,11 @@ public:
static void acquireAudioSessionId(int audioSession, pid_t pid);
static void releaseAudioSessionId(int audioSession, pid_t pid);
+ // Get the HW synchronization source used for an audio session.
+ // Return a valid source or AUDIO_HW_SYNC_INVALID if an error occurs
+ // or no HW sync source is used.
+ static audio_hw_sync_t getAudioHwSyncForSession(audio_session_t sessionId);
+
// types of io configuration change events received with ioConfigChanged()
enum io_config_event {
OUTPUT_OPENED,
diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h
index 82ec09c..31a14f0 100644
--- a/include/media/IAudioFlinger.h
+++ b/include/media/IAudioFlinger.h
@@ -235,6 +235,8 @@ public:
/* Set audio port configuration */
virtual status_t setAudioPortConfig(const struct audio_port_config *config) = 0;
+ /* Get the HW synchronization source used for an audio session */
+ virtual audio_hw_sync_t getAudioHwSyncForSession(audio_session_t sessionId) = 0;
};