summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioHardwareInterface.h
diff options
context:
space:
mode:
authorHochi Huang <hochi.huang@mediatek.com>2014-09-21 09:40:30 +0800
committerleozwang <leozwang@google.com>2014-09-24 12:20:26 -0700
commit8ddf81e20fd514907de51ec82a617143d2e35276 (patch)
tree99fdb3f1ca9b57aaa75f1827f80fd05c5327c732 /include/hardware_legacy/AudioHardwareInterface.h
parente96b538e168846a31edd7c608267d79f3f30b871 (diff)
downloadhardware_libhardware_legacy-8ddf81e20fd514907de51ec82a617143d2e35276.zip
hardware_libhardware_legacy-8ddf81e20fd514907de51ec82a617143d2e35276.tar.gz
hardware_libhardware_legacy-8ddf81e20fd514907de51ec82a617143d2e35276.tar.bz2
[AU] Update volume setting and Audio Device API 3.0
Change-Id: I772584ae05e6a8d2fdc8c4a52e44ad80c3c1a4a7 Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>
Diffstat (limited to 'include/hardware_legacy/AudioHardwareInterface.h')
-rw-r--r--include/hardware_legacy/AudioHardwareInterface.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h
index 6b524a8..7d34aaa 100644
--- a/include/hardware_legacy/AudioHardwareInterface.h
+++ b/include/hardware_legacy/AudioHardwareInterface.h
@@ -117,6 +117,11 @@ public:
*/
virtual status_t getNextWriteTimestamp(int64_t *timestamp);
+ /**
+ * Return a recent count of the number of audio frames presented to an external observer.
+ */
+ virtual status_t getPresentationPosition(uint64_t *frames, struct timespec *timestamp);
+
};
/**
@@ -276,6 +281,18 @@ public:
static AudioHardwareInterface* create();
+ virtual int createAudioPatch(unsigned int num_sources,
+ const struct audio_port_config *sources,
+ unsigned int num_sinks,
+ const struct audio_port_config *sinks,
+ audio_patch_handle_t *handle) = 0;
+
+ virtual int releaseAudioPatch(audio_patch_handle_t handle) = 0;
+
+ virtual int getAudioPort(struct audio_port *port) = 0;
+
+ virtual int setAudioPortConfig(const struct audio_port_config *config) = 0;
+
protected:
virtual status_t dump(int fd, const Vector<String16>& args) = 0;