On 24/08/2018 17:04, Peter Maydell wrote: > because these values aren't contiguous: > > #define ES1370_REG_DAC1_FRAMEADR 0xc30 > #define ES1370_REG_DAC2_FRAMEADR 0xc38 > #define ES1370_REG_ADC_FRAMEADR 0xd30 > > so you can't calculate the value of 'd' from the addr > this way. > > (Similarly for the SCOUNT registers.)
SCOUNT is actually consecutive. I've sent a patch for the other two. Paolo