author | Lawrence 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) |
commit | 3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed (patch) | |
tree | 984da0e7fab1535cd79ac0e9d7395cd01e61bd11 | |
parent | 8b3f6f96a2f62a09b2853669f8202f234173669b (diff) | |
download | audio-3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed.zip audio-3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed.tar.gz audio-3f350c3aa5847cb7f2c1cd6e32c254eff4eb40ed.tar.bz2 |
fix 4.4 compile errors
-rwxr-xr-x | audio_hw.c | 2 | ||||
-rwxr-xr-x | hdmi_audio_hw.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); |