diff options
Diffstat (limited to 'libaudio/AudioHardware.cpp')
-rw-r--r-- | libaudio/AudioHardware.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libaudio/AudioHardware.cpp b/libaudio/AudioHardware.cpp index c13f142..5a20f00 100644 --- a/libaudio/AudioHardware.cpp +++ b/libaudio/AudioHardware.cpp @@ -186,7 +186,7 @@ AudioStreamOut* AudioHardware::openOutputStream( void AudioHardware::closeOutputStream(AudioStreamOut* out) { Mutex::Autolock lock(mLock); if (mOutput == 0 || mOutput != out) { - LOGW("Attempt to close invalid output stream"); + ALOGW("Attempt to close invalid output stream"); } else { delete mOutput; @@ -227,7 +227,7 @@ void AudioHardware::closeInputStream(AudioStreamIn* in) { ssize_t index = mInputs.indexOf((AudioStreamInMSM72xx *)in); if (index < 0) { - LOGW("Attempt to close invalid input stream"); + ALOGW("Attempt to close invalid input stream"); } else { mLock.unlock(); delete mInputs[index]; @@ -346,11 +346,11 @@ static unsigned calculate_audpre_table_index(unsigned index) size_t AudioHardware::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) { if (format != AudioSystem::PCM_16_BIT) { - LOGW("getInputBufferSize bad format: %d", format); + ALOGW("getInputBufferSize bad format: %d", format); return 0; } if (channelCount < 1 || channelCount > 2) { - LOGW("getInputBufferSize bad channel count: %d", channelCount); + ALOGW("getInputBufferSize bad channel count: %d", channelCount); return 0; } @@ -399,10 +399,10 @@ static status_t set_volume_rpc(uint32_t device, status_t AudioHardware::setVoiceVolume(float v) { if (v < 0.0) { - LOGW("setVoiceVolume(%f) under 0.0, assuming 0.0\n", v); + ALOGW("setVoiceVolume(%f) under 0.0, assuming 0.0\n", v); v = 0.0; } else if (v > 1.0) { - LOGW("setVoiceVolume(%f) over 1.0, assuming 1.0\n", v); + ALOGW("setVoiceVolume(%f) over 1.0, assuming 1.0\n", v); v = 1.0; } @@ -535,7 +535,7 @@ status_t AudioHardware::doRouting() if (sndDevice == -1) { if (outputDevices & (outputDevices - 1)) { if ((outputDevices & AudioSystem::DEVICE_OUT_SPEAKER) == 0) { - LOGW("Hardware does not support requested route combination (%#X)," + ALOGW("Hardware does not support requested route combination (%#X)," " picking closest possible route...", outputDevices); } } @@ -757,7 +757,7 @@ ssize_t AudioHardware::AudioStreamOutMSM72xx::write(const void* buffer, size_t b } else { if (errno != EAGAIN) return written; mRetryCount++; - LOGW("EAGAIN - retry"); + ALOGW("EAGAIN - retry"); } } @@ -1039,7 +1039,7 @@ ssize_t AudioHardware::AudioStreamInMSM72xx::read( void* buffer, ssize_t bytes) } else { if (errno != EAGAIN) return bytesRead; mRetryCount++; - LOGW("EAGAIN - retrying"); + ALOGW("EAGAIN - retrying"); } } return bytes; |