summaryrefslogtreecommitdiffstats
path: root/audio/AudioHardwareInterface.cpp
diff options
context:
space:
mode:
authorJohn Grossman <johngro@google.com>2011-08-22 13:25:06 -0700
committerMike Lockwood <lockwood@android.com>2011-10-27 17:35:43 -0400
commit617c80a82e5620b2f16348e4bd3d7fc3b76e9021 (patch)
treed1ff4dd3adceed4324466c54eef21a1b6ab5ac68 /audio/AudioHardwareInterface.cpp
parent497fb4566204c88bd247aafc2412ddef8f85e480 (diff)
downloadhardware_libhardware_legacy-617c80a82e5620b2f16348e4bd3d7fc3b76e9021.tar.gz
hardware_libhardware_legacy-617c80a82e5620b2f16348e4bd3d7fc3b76e9021.tar.bz2
hardware_libhardware_legacy-617c80a82e5620b2f16348e4bd3d7fc3b76e9021.zip
Add a bridge implementation of get_master_volume.
Add an implementation of the new get_master_volume method to bridge from the new C only audio HAL to the old C++ legacy audio HAL. Change-Id: I5c29814623b5141b0c69927ea60be9873c8a5dab
Diffstat (limited to 'audio/AudioHardwareInterface.cpp')
-rw-r--r--audio/AudioHardwareInterface.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/AudioHardwareInterface.cpp b/audio/AudioHardwareInterface.cpp
index 9cec267..4997a6a 100644
--- a/audio/AudioHardwareInterface.cpp
+++ b/audio/AudioHardwareInterface.cpp
@@ -125,6 +125,11 @@ size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, in
return 320;
}
+status_t AudioHardwareBase::getMasterVolume(float *volume)
+{
+ return INVALID_OPERATION;
+}
+
status_t AudioHardwareBase::dumpState(int fd, const Vector<String16>& args)
{
const size_t SIZE = 256;