summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2025-05-23 14:52:18 +0100
committerGitHub <noreply@github.com>2025-05-23 09:52:18 -0400
commitf7073a7837de95ac72a0189c74ffa96335280f12 (patch)
tree6395c739952b7d2e2e46f63278f6547e2ac12c46 /include
parentd6cf6d6adbbe6a7a32d3ce891a5c218788ce430d (diff)
Some sequence 0 improvements (#2536)
* Some sequence 0 improvements * Sync aseq.h with MM
Diffstat (limited to 'include')
-rw-r--r--include/audio/aseq.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/audio/aseq.h b/include/audio/aseq.h
index ce14abfa2..99df3248f 100644
--- a/include/audio/aseq.h
+++ b/include/audio/aseq.h
@@ -741,6 +741,7 @@ _RESET_SECTION
/* Write the sequence name into a special .note.name section */
.pushsection .note.name, "", @note
.asciz "\name"
+ .balign 4
.popsection
/* Reset section and write start symbol. */
@@ -826,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
@@ -1847,7 +1848,7 @@ $reladdr\@:
.endm
/**
- * ptraddi <value:u16>
+ * ptraddi <value:s16>
*
* Like ptradd but for immediates instead of labels
*
@@ -1855,7 +1856,7 @@ $reladdr\@:
*/
.macro ptraddi value
_wr_cmd_id ptradd, ,ASEQ_OP_CHAN_PTRADD,,,,,,, 0, 0
- _wr_u16 \value
+ _wr_s16 \value
.endm
/**