AD1848: Use the correct algorithm for CS423x ADPCM

Still has level and DC offset issues, but actual use cases are lacking (all validation was done with ALSA's adpcm conversion plugin)
This commit is contained in:
RichardG867
2025-09-27 16:31:11 -03:00
parent bc41f8bbb6
commit 37eb2cb359
2 changed files with 48 additions and 24 deletions

View File

@@ -66,10 +66,10 @@ typedef struct ad1848_t {
uint8_t enable : 1;
uint8_t irq : 4;
uint8_t dma : 3;
uint8_t adpcm_ref;
int8_t adpcm_step;
int adpcm_predictor[2];
int16_t adpcm_step_index[2];
int freq;
int adpcm_data;
uint8_t adpcm_data;
int adpcm_pos;
uint8_t dma_ff;