Fixed issue with I2S input when XUA_I2S_N_BITS != 32

This commit is contained in:
Ross Owen
2023-06-06 18:10:42 +01:00
parent 06bd547c69
commit 1488ace820

View File

@@ -448,7 +448,7 @@ unsigned static AudioHub_MainLoop(chanend ?c_out, chanend ?c_spd_out
if(XUA_I2S_N_BITS != 32)
{
set_port_shift_count(p_i2s_adc[index], XUA_I2S_N_BITS);
sample = bitrev(sample) << (32 - XUA_I2S_N_BITS);
sample <<= (32 - XUA_I2S_N_BITS);
}
index++;