diff options
author | Andy Hung <hunga@google.com> | 2015-04-20 13:23:41 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2015-04-22 12:42:52 -0700 |
commit | d330ee46022f34da76d14d0c4d2910526ecc2321 (patch) | |
tree | 05df908a6cd115a92eb1e15a2daa191c14a441b2 /services/audioflinger/FastCapture.cpp | |
parent | f27e2fbfc3284c00a60fa68edc51d436f75b1e32 (diff) | |
download | frameworks_av-d330ee46022f34da76d14d0c4d2910526ecc2321.zip frameworks_av-d330ee46022f34da76d14d0c4d2910526ecc2321.tar.gz frameworks_av-d330ee46022f34da76d14d0c4d2910526ecc2321.tar.bz2 |
Add floating and multichannel record to AudioFlinger
Change-Id: Ia388fb012a0b6d81613ef87142a97d76836338f9
Diffstat (limited to 'services/audioflinger/FastCapture.cpp')
-rw-r--r-- | services/audioflinger/FastCapture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/FastCapture.cpp b/services/audioflinger/FastCapture.cpp index 9e7e8a4..79ac12b 100644 --- a/services/audioflinger/FastCapture.cpp +++ b/services/audioflinger/FastCapture.cpp @@ -105,7 +105,7 @@ void FastCapture::onStateChange() mFormat = mInputSource->format(); mSampleRate = Format_sampleRate(mFormat); unsigned channelCount = Format_channelCount(mFormat); - ALOG_ASSERT(channelCount == 1 || channelCount == 2); + ALOG_ASSERT(channelCount >= 1 && channelCount <= FCC_8); } dumpState->mSampleRate = mSampleRate; eitherChanged = true; |