summaryrefslogtreecommitdiff
authorLawrence Mok <lawrence.mok@amlogic.com>2013-11-09 02:25:54 (GMT)
committer Lawrence Mok <lawrence.mok@amlogic.com>2013-11-09 02:25:54 (GMT)
commit3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed (patch)
tree984da0e7fab1535cd79ac0e9d7395cd01e61bd11
parent8b3f6f96a2f62a09b2853669f8202f234173669b (diff)
downloadaudio-3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed.zip
audio-3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed.tar.gz
audio-3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed.tar.bz2
fix 4.4 compile errors
Diffstat
-rwxr-xr-xaudio_hw.c2
-rwxr-xr-xhdmi_audio_hw.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/audio_hw.c b/audio_hw.c
index c621123..628ff0a 100755
--- a/audio_hw.c
+++ b/audio_hw.c
@@ -173,7 +173,7 @@ static uint32_t out_get_sample_rate(const struct audio_stream *stream);
static int getprop_bool(const char * path)
{
- char buf[20];
+ char buf[PROPERTY_VALUE_MAX];
int ret = -1;
ret = property_get(path, buf, NULL);
diff --git a/hdmi_audio_hw.c b/hdmi_audio_hw.c
index 4b734e8..7c9cb40 100755
--- a/hdmi_audio_hw.c
+++ b/hdmi_audio_hw.c
@@ -187,7 +187,7 @@ static int do_output_standby(struct aml_stream_out *out);
static int getprop_bool(const char * path)
{
- char buf[20];
+ char buf[PROPERTY_VALUE_MAX];
int ret = -1;
ret = property_get(path, buf, NULL);