diff options
author | Eric Laurent <elaurent@google.com> | 2014-07-20 15:47:07 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-08-06 11:42:07 -0700 |
commit | c2730ba7c5e9559b7499ef5e0d7742deb18c5110 (patch) | |
tree | efa845ec9fd1cb5cc2a2cf20b62538b74668b173 /services/audioflinger | |
parent | 92ce4715315bddd158c7d4028556632f0547e3b9 (diff) | |
download | frameworks_av-c2730ba7c5e9559b7499ef5e0d7742deb18c5110.zip frameworks_av-c2730ba7c5e9559b7499ef5e0d7742deb18c5110.tar.gz frameworks_av-c2730ba7c5e9559b7499ef5e0d7742deb18c5110.tar.bz2 |
audio policy: add support for USB devices for voice call
Add possibility to use sink and source devices not on
the primary HW module for voice calls (e.g. USB headsets).
Bug: 15520724.
Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/Tracks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index 48093da..c5ab832 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -1885,10 +1885,10 @@ status_t AudioFlinger::PlaybackThread::PatchTrack::getNextBuffer( buf.mFrameCount = buffer->frameCount; status_t status = mPeerProxy->obtainBuffer(&buf, &mPeerTimeout); ALOGV_IF(status != NO_ERROR, "PatchTrack() %p getNextBuffer status %d", this, status); + buffer->frameCount = buf.mFrameCount; if (buf.mFrameCount == 0) { return WOULD_BLOCK; } - buffer->frameCount = buf.mFrameCount; status = Track::getNextBuffer(buffer, pts); return status; } @@ -2166,10 +2166,10 @@ status_t AudioFlinger::RecordThread::PatchRecord::getNextBuffer( status_t status = mPeerProxy->obtainBuffer(&buf, &mPeerTimeout); ALOGV_IF(status != NO_ERROR, "PatchRecord() %p mPeerProxy->obtainBuffer status %d", this, status); + buffer->frameCount = buf.mFrameCount; if (buf.mFrameCount == 0) { return WOULD_BLOCK; } - buffer->frameCount = buf.mFrameCount; status = RecordTrack::getNextBuffer(buffer, pts); return status; } |