lib: add flag for format id

This commit is contained in:
Steve Markgraf 2025-02-24 22:01:31 +01:00
parent d960d0eff1
commit 5e91d61bda
2 changed files with 3 additions and 1 deletions

View file

@ -176,7 +176,8 @@ 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, .flags = FLAG_STREAM_ID_PRESENT };
metadata_t metadata = (metadata_t) { .magic = 0xda7acab1, .crc_config = CRC16_2_LINE, .version = 1,
.flags = FLAG_STREAM_ID_PRESENT | FLAG_FORMAT_ID_PRESENT };
/* HSTX DMA IRQ handler, reconfigures the channel that just completed while
* ther other channel is currently busy */

View file

@ -49,6 +49,7 @@ typedef struct
} __attribute__((packed, aligned(1))) metadata_t;
#define FLAG_STREAM_ID_PRESENT (1 << 0)
#define FLAG_FORMAT_ID_PRESENT (1 << 1)
void hsdaoh_start(void);
void hsdaoh_init(int dstrength, int slewrate);