summaryrefslogtreecommitdiffstats
path: root/libaudio
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-01-07 10:56:42 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2012-01-07 10:56:42 +0700
commitb24ce3213b9349767476cc9a411849eab4b750b0 (patch)
treee57242d579c167a502d77e7d3ec1c3d75340c5e9 /libaudio
parent50b196d821c274ef0fdb36af1daaf656827a8450 (diff)
downloaddevice_samsung_aries-common-b24ce3213b9349767476cc9a411849eab4b750b0.zip
device_samsung_aries-common-b24ce3213b9349767476cc9a411849eab4b750b0.tar.gz
device_samsung_aries-common-b24ce3213b9349767476cc9a411849eab4b750b0.tar.bz2
libaudio: Re-enable logging with read/write logging disabled
This should give enough info for debugging when users report call not working.
Diffstat (limited to 'libaudio')
-rw-r--r--libaudio/AudioHardware.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libaudio/AudioHardware.cpp b/libaudio/AudioHardware.cpp
index cbcabd6..0048e40 100644
--- a/libaudio/AudioHardware.cpp
+++ b/libaudio/AudioHardware.cpp
@@ -16,7 +16,7 @@
#include <math.h>
-//#define LOG_NDEBUG 0
+#define LOG_NDEBUG 0
#define LOG_TAG "AudioHardware"
#include <utils/Log.h>
@@ -1325,7 +1325,7 @@ int AudioHardware::AudioStreamOutALSA::getPlaybackDelay(size_t frames,
ssize_t AudioHardware::AudioStreamOutALSA::write(const void* buffer, size_t bytes)
{
- LOGV("-----AudioStreamInALSA::write(%p, %d) START", buffer, (int)bytes);
+ //LOGV("-----AudioStreamInALSA::write(%p, %d) START", buffer, (int)bytes);
status_t status = NO_INIT;
const uint8_t* p = static_cast<const uint8_t*>(buffer);
int ret;
@@ -1396,7 +1396,7 @@ ssize_t AudioHardware::AudioStreamOutALSA::write(const void* buffer, size_t byte
TRACE_DRIVER_OUT
if (ret == 0) {
- LOGV("-----AudioStreamInALSA::write(%p, %d) END", buffer, (int)bytes);
+ //LOGV("-----AudioStreamInALSA::write(%p, %d) END", buffer, (int)bytes);
return bytes;
}
LOGW("write error: %d", errno);
@@ -1950,7 +1950,7 @@ void AudioHardware::AudioStreamInALSA::getCaptureDelay(size_t frames,
ssize_t AudioHardware::AudioStreamInALSA::read(void* buffer, ssize_t bytes)
{
- LOGV("-----AudioStreamInALSA::read(%p, %d) START", buffer, (int)bytes);
+ //LOGV("-----AudioStreamInALSA::read(%p, %d) START", buffer, (int)bytes);
status_t status = NO_INIT;
if (mHardware == NULL) return NO_INIT;
@@ -2022,7 +2022,7 @@ ssize_t AudioHardware::AudioStreamInALSA::read(void* buffer, ssize_t bytes)
}
if (framesRd >= 0) {
- LOGV("-----AudioStreamInALSA::read(%p, %d) END", buffer, (int)bytes);
+ //LOGV("-----AudioStreamInALSA::read(%p, %d) END", buffer, (int)bytes);
return framesRd * mChannelCount * sizeof(int16_t);
}