summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2015-08-24 14:01:05 -0700
committerWei Jia <wjia@google.com>2015-08-25 12:57:40 +0000
commit1cea0eb884a78c44ee7421cbf1c02f06fbf16028 (patch)
tree34a5df3cd1499c14082d8856f67487e952b14489
parent51187a2e6966fbff45a817f8aff71f64adf4a909 (diff)
downloadsonivox-1cea0eb884a78c44ee7421cbf1c02f06fbf16028.tar.gz
Sonivox: fix currentPool in VMUpdateMIPTable().
Bug: 23333998 Change-Id: I1b6f3f0ccc50f54b1091c3c6816bdead5fb0c6df
-rw-r--r--arm-wt-22k/lib_src/eas_voicemgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm-wt-22k/lib_src/eas_voicemgt.c b/arm-wt-22k/lib_src/eas_voicemgt.c
index ab0b776..1e20e2b 100644
--- a/arm-wt-22k/lib_src/eas_voicemgt.c
+++ b/arm-wt-22k/lib_src/eas_voicemgt.c
@@ -835,7 +835,7 @@ void VMUpdateMIPTable (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth)
/* when 2 or more channels have the same MIP setting, they
* share a common voice pool
*/
- if (pChannel->mip == currentMIP)
+ if (pChannel->mip == currentMIP && currentPool != -1)
pChannel->pool = (EAS_U8) currentPool;
/* new voice pool */