summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTai Kuo <taikuo@google.com>2021-11-26 22:06:12 +0800
committerTai Kuo <taikuo@google.com>2022-02-08 11:34:35 +0800
commit4608d02a2d91a479cde965539431f3701659a5df (patch)
tree71be262bf203627cb9b3c7fd31a1c45ecba2d1a3
parent9a0148defd9807369323af67c0fba52d5cff2d15 (diff)
downloadamplifiers-4608d02a2d91a479cde965539431f3701659a5df.tar.gz
cs40l26: fix BB and run-time errors
Vendor commits and fixes: - 30034b6 firmware: cirrus: arm64 compiler fix - Fix type mismatch. Bug: 205688153 Test: Probe successfully. Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I8410a8f9e7340821780d1cb3d095f29c75d2236c
-rw-r--r--cs40l26/cl_dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cs40l26/cl_dsp.c b/cs40l26/cl_dsp.c
index db0471e..e93879f 100644
--- a/cs40l26/cl_dsp.c
+++ b/cs40l26/cl_dsp.c
@@ -248,7 +248,7 @@ static int cl_dsp_read_wt(struct cl_dsp *dsp, int pos, int size)
if (entry->type == WT_TYPE_TERMINATOR) {
dsp->wt_desc->owt.nwaves = i;
dsp->wt_desc->owt.bytes = max(ch.bytes,
- (int)((void *)max - buf));
+ (u32)((void *)max - buf));
return dsp->wt_desc->owt.bytes;
}