summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRavi Kumar Alamanda <ralama@codeaurora.org>2011-11-22 12:53:28 -0800
committerSteve Kondik <shade@chemlab.org>2012-05-30 15:51:34 -0700
commit1e36cfab68f3fefdebc3e980657dc0d9e914d6fb (patch)
treedfb2890d07e3d588cb3076155fd4978aa8eff24a /media
parent524c0d41f151595f581ca47c0a61b5cd8f74e8a1 (diff)
downloadframeworks_base-1e36cfab68f3fefdebc3e980657dc0d9e914d6fb.zip
frameworks_base-1e36cfab68f3fefdebc3e980657dc0d9e914d6fb.tar.gz
frameworks_base-1e36cfab68f3fefdebc3e980657dc0d9e914d6fb.tar.bz2
framworks/base: Changes to use MVS path for VoIP feature
- These changes are merged from GB commit 3926cd8fea11e65f47272c2099a5a540ab46b580 Change-Id: I9bc09e3f82741db394bf5e9585e9e35a454112e5
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/AudioTrack.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index 3f3bcd3..a9ab982 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -54,6 +54,18 @@ status_t AudioTrack::getMinFrameCount(
int streamType,
uint32_t sampleRate)
{
+#ifdef QCOM_HARDWARE
+ if(streamType == AUDIO_STREAM_VOICE_CALL) {
+ LOGV("AudioTrack :: getMinFramecount voice call \n");
+ if(sampleRate == 8000) {
+ *frameCount = 160;
+ } else if (sampleRate == 16000) {
+ *frameCount = 320;
+ }
+ return NO_ERROR;
+ }
+#endif
+
int afSampleRate;
if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) {
return NO_INIT;