aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-11-03 10:24:25 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-11-03 10:24:25 +0900
commit8b7edfd18851e517b0ac0a23875530bc3ca6eddf (patch)
tree9b7fb822d0339961f624e73a213cfd32305a34e2
parent6c975188577beb9eeed5017d2736fa5812f14bff (diff)
pmd: fixed command O, thanks pedipanol and pigdevil2010 for reporting!
-rw-r--r--fmdriver/fmdriver_pmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fmdriver/fmdriver_pmd.c b/fmdriver/fmdriver_pmd.c
index f5322fa..c7cdbfd 100644
--- a/fmdriver/fmdriver_pmd.c
+++ b/fmdriver/fmdriver_pmd.c
@@ -4025,7 +4025,7 @@ static void pmd_cmdb8_slottl(
struct pmd_part *part
){
uint8_t data = pmd_part_cmdload(pmd, part);
- uint8_t slotmask = data & 0xf & (part->fm_slotmask>>4);
+ uint8_t slotmask = (data & 0xf) & (part->fm_slotmask>>4);
uint8_t val = pmd_part_cmdload(pmd, part);
bool masked = pmd_part_masked(part);
bool relative = data & 0x80;
@@ -4043,7 +4043,8 @@ static void pmd_cmdb8_slottl(
part->fm_tone_tl[slottable[s]] = vol;
}
if (!masked) {
- pmd_reg_write(work, pmd, 0x3f+pmd->proc_ch+8*s, part->fm_tone_tl[slottable[s]]);
+ pmd_reg_write(work, pmd,
+ 0x3f+pmd->proc_ch+4*slottable[s], part->fm_tone_tl[slottable[s]]);
}
}
}