summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-27 16:33:15 -0800
committerGlenn Kasten <gkasten@google.com>2012-07-11 09:00:45 -0700
commit4fe1ec4f40b58abff6cec147aa786cb65698161a (patch)
tree6e289895d6a4daf62862422798a5b954c99ed5df /services
parent04270daf50f0c602d7c57a257a693e68246cbeb7 (diff)
downloadframeworks_av-4fe1ec4f40b58abff6cec147aa786cb65698161a.zip
frameworks_av-4fe1ec4f40b58abff6cec147aa786cb65698161a.tar.gz
frameworks_av-4fe1ec4f40b58abff6cec147aa786cb65698161a.tar.bz2
Fix check for invalid channel count
Change-Id: Id9e3dce0e3d5971786212d3f70e17a17e32ce92b
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioFlinger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 5f59ca9..913cba0 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -2199,8 +2199,8 @@ AudioFlinger::MixerThread::MixerThread(const sp<AudioFlinger>& audioFlinger, Aud
mAudioMixer = new AudioMixer(mNormalFrameCount, mSampleRate);
// FIXME - Current mixer implementation only supports stereo output
- if (mChannelCount == 1) {
- ALOGE("Invalid audio hardware channel count");
+ if (mChannelCount != FCC_2) {
+ ALOGE("Invalid audio hardware channel count %d", mChannelCount);
}
// create an NBAIO sink for the HAL output stream, and negotiate