This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm358的音频编码驱动的问题

Other Parts Discussed in Thread: TLV320AIC3101

大家好

想请教个问题 在tlv320aic3x.c的aic3x_hw_params函数里,是怎么配置的采样率

代码如下:

/* codec sample rate select */

data = (fsref * 20) / params_rate(params);

if (params_rate(params) < 64000) data /= 2;

data /= 5; data -= 2; data |= (data << 4);

aic3x_write(codec, AIC3X_SAMPLE_RATE_SEL_REG, data);

这个data是怎么计算出来的 没弄明白