diff --git a/firmware/target/mips/ingenic_x1000/aic-x1000.c b/firmware/target/mips/ingenic_x1000/aic-x1000.c index 1d1768d4f9..ff9802501d 100644 --- a/firmware/target/mips/ingenic_x1000/aic-x1000.c +++ b/firmware/target/mips/ingenic_x1000/aic-x1000.c @@ -84,8 +84,10 @@ static int calc_i2s_clock_params(x1000_clk_t clksrc, *i2sdiv = X1000_EXCLK_FREQ / 64 / fs; /* clamp to maximum value */ - if(*i2sdiv > 0x200) - *i2sdiv = 0x200; + if(*i2sdiv > 512) + *i2sdiv = 512; + if(*i2sdiv == 0) + *i2sdiv = 1; return 0; }