summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-01-19 17:34:55 -0800
committerEric Laurent <elaurent@google.com>2010-01-26 10:36:42 -0800
commit392290d659cabc017f3784d332a6ddf6eaf49bc5 (patch)
tree0106ba06cab66321c3b14c8738018dcab886c930
parentd0a89fa6e16691acab58af01f55c001538cf2223 (diff)
downloadlibhardware_legacy-392290d659cabc017f3784d332a6ddf6eaf49bc5.tar.gz
Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync
Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames written by DSP to DAC.
-rw-r--r--include/hardware_legacy/AudioHardwareInterface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h
index 46cea77..bc9b4b2 100644
--- a/include/hardware_legacy/AudioHardwareInterface.h
+++ b/include/hardware_legacy/AudioHardwareInterface.h
@@ -98,6 +98,10 @@ public:
// The audio flinger will put the output in standby and then change the parameter value.
virtual status_t setParameters(const String8& keyValuePairs) = 0;
virtual String8 getParameters(const String8& keys) = 0;
+
+ // return the number of audio frames written by the audio dsp to DAC since
+ // the output has exited standby
+ virtual status_t getRenderPosition(uint32_t *dspFrames) = 0;
};
/**