--- a/arch/arm/mach-msm/qdsp6v2/audio_lpa.c
+++ b/arch/arm/mach-msm/qdsp6v2/audio_lpa.c
@@ -45,8 +45,8 @@
#include <mach/debug_mm.h>
#include <linux/fs.h>
-#define MAX_BUF 3
-#define BUFSZ (524288)
+#define MAX_BUF 4
+#define BUFSZ (655360)
#define AUDDEC_DEC_PCM 0
--- a/drivers/mfd/timpani-codec.c
+++ b/drivers/mfd/timpani-codec.c
@@ -2819,7 +2819,7 @@ static int adie_codec_refcnt_write(u8 re
u8 reg_mask = 0;
int rc = 0;
- for (i = 0; i < 0xEF; i++) {
+ for (i = 0; i < ARRAY_SIZE(timpani_regset); i++) {
if (timpani_regset[i].reg_addr == reg) {
for (j = 0; j < TIMPANI_MAX_FIELDS; j++) {
fld_mask = timpani_regset[i].fld_ref_cnt[j].mask