summaryrefslogtreecommitdiffstats
path: root/libaudio
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-19 13:39:22 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-20 11:28:43 -0800
commitca7d8795760bd9a23f0136725c77be536a986f21 (patch)
tree4c0388c22467c5af67a9aea92eb934fdb8035f36 /libaudio
parent232558ccbb74a4219fa0f5d78cd173acff2d401a (diff)
downloaddevice_samsung_crespo-ca7d8795760bd9a23f0136725c77be536a986f21.zip
device_samsung_crespo-ca7d8795760bd9a23f0136725c77be536a986f21.tar.gz
device_samsung_crespo-ca7d8795760bd9a23f0136725c77be536a986f21.tar.bz2
Fix build warning on uninitialized field avail_min
This struct is on the stack, so either we were lucky and the memory cell happened to be zero, or the value doesn't actual matter for our configuration. Change-Id: If0ac8f1087651c0de98e0e3f787ce6102d3163df
Diffstat (limited to 'libaudio')
-rw-r--r--libaudio/AudioHardware.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libaudio/AudioHardware.cpp b/libaudio/AudioHardware.cpp
index 5af8dfa..7a9440b 100644
--- a/libaudio/AudioHardware.cpp
+++ b/libaudio/AudioHardware.cpp
@@ -788,6 +788,7 @@ struct pcm *AudioHardware::openPcmOut_l()
start_threshold : 0,
stop_threshold : 0,
silence_threshold : 0,
+ avail_min : 0,
};
TRACE_DRIVER_IN(DRV_PCM_OPEN)
@@ -1933,6 +1934,7 @@ status_t AudioHardware::AudioStreamInALSA::open_l()
start_threshold : 0,
stop_threshold : 0,
silence_threshold : 0,
+ avail_min : 0,
};
ALOGV("open pcm_in driver");