Skip to content

Commit 46c1c73

Browse files
committed
platform: amd: acp_7_x: add TDM invalid-index sentinel macros
Add ACP_TDM_INVALID_32 and ACP_TDM_INVALID_16 sentinel values to both acp_7_0 and acp_7_x platform_misc.h. These are used by the TDM DAI and DMA drivers to mark unallocated channels/indices, consistent with the existing SDW driver conventions. Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com> Signed-off-by: Sneha Voona <sneha.voona@amd.com>
1 parent 5f22252 commit 46c1c73

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/platform/amd/acp_7_0/include/platform/platform_misc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ struct sdw_pin_data {
421421
uint32_t instance;
422422
};
423423

424+
#define ACP_TDM_INVALID_32 0xFFFFFFFFU
425+
#define ACP_TDM_INVALID_16 0xFFFFU
426+
424427
struct tdm_context {
425428
uint32_t tdm_instance;
426429
uint32_t pin_dir;

src/platform/amd/acp_7_x/include/platform/platform_misc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ struct sdw_pin_data {
548548
uint32_t instance1;
549549
};
550550

551+
#define ACP_TDM_INVALID_32 0xFFFFFFFFU
552+
#define ACP_TDM_INVALID_16 0xFFFFU
553+
551554
struct tdm_context {
552555
uint64_t prev_pos;
553556
uint32_t buff_size;

0 commit comments

Comments
 (0)