summaryrefslogtreecommitdiff
path: root/include/audio
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2025-05-26 06:48:29 +0100
committerGitHub <noreply@github.com>2025-05-25 22:48:29 -0700
commitace4043d1a244185423837cb85829024f5e79a2c (patch)
tree507c94f7ad8f1e706a451d47b6af275a5ed0927b /include/audio
parent13d92a413bf8ca267d865e34cf74b608d2c0ed48 (diff)
Some sequence 0 improvements (#1811)
* Some sequence 0 improvements * Fix writing s16
Diffstat (limited to 'include/audio')
-rw-r--r--include/audio/aseq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/audio/aseq.h b/include/audio/aseq.h
index 968fbdbdb..99df3248f 100644
--- a/include/audio/aseq.h
+++ b/include/audio/aseq.h
@@ -827,7 +827,7 @@ _RESET_SECTION
.macro _wr_s16 value
/* Ensure the provided arg value fits in 16 bits (signed) */
_check_arg_bitwidth_s \value, 16
- _wr16 \value
+ _wr16 \value & 0xFFFF
.endm
.macro _wr_u16 value
@@ -1848,7 +1848,7 @@ $reladdr\@:
.endm
/**
- * ptraddi <value:u16>
+ * ptraddi <value:s16>
*
* Like ptradd but for immediates instead of labels
*
@@ -1856,7 +1856,7 @@ $reladdr\@:
*/
.macro ptraddi value
_wr_cmd_id ptradd, ,ASEQ_OP_CHAN_PTRADD,,,,,,, 0, 0
- _wr_u16 \value
+ _wr_s16 \value
.endm
/**