lib: introduce flag to signal stream ID presence

This commit is contained in:
Steve Markgraf 2025-02-14 21:56:15 +01:00
parent 058c13d4a7
commit 7ab786c38c
2 changed files with 3 additions and 1 deletions

View file

@ -176,7 +176,7 @@ static bool vactive_cmdlist_posted = false;
static uint8_t dma_sniff_pipelined_ch = 0;
static bool dma_sniff_pipelined_disable = false;
metadata_t metadata = (metadata_t) { .magic = 0xda7acab1, .crc_config = CRC16_2_LINE, .version = 1 };
metadata_t metadata = (metadata_t) { .magic = 0xda7acab1, .crc_config = CRC16_2_LINE, .version = 1, .flags = FLAG_STREAM_ID_PRESENT };
/* HSTX DMA IRQ handler, reconfigures the channel that just completed while
* ther other channel is currently busy */

View file

@ -48,6 +48,8 @@ typedef struct
uint8_t stream_cnt;
} __attribute__((packed, aligned(1))) metadata_t;
#define FLAG_STREAM_ID_PRESENT (1 << 0)
void hsdaoh_start(void);
void hsdaoh_init(int dstrength, int slewrate);
void hsdaoh_update_head(int stream_id, int head);