主题中讨论的其他器件:TLV320AIC3104
你(们)好
我将 TLV320AIC3104编解码器与 IMX8MM 搭配使用。
但声音仅以特定的 Hz 和比特率播放。
工作样本:
EVK_8mm:/# tinyplay /sdcard/test。wav
播放示例:2通道、48000Hz、16位139792304字节
故障样本:
EVK_8mm:/# tinyplay /sdcard/SineWaveMinus16.wav
无法打开 PCM 设备0 (无法设置硬件参数:无效参数)
logcat:
[675.093204] Divyesh -< SoC-read> Func:snd_soc_component_read、reg:9.
[675.093213] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:9、value:48
[675.093222] Divyesh -< SoC-write> Func:snd_soc_component_write、reg:101、value:0
[675.093227] Divyesh -< SoC-update> func:snd_soc_component_update_bits、reg:3、value:128、mask:128
[675.093232] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:7、value:138
[675.093235] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:2、value:0
[675.093294] Divyesh -< SoC-update> func:snd_soc_component_update_bits、reg:3、value:3、mask:7
[675.093298] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:11、value:1.
[675.093301] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:4、value:20
[675.093305] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:5、value:80
[675.093309] Divyesh -< SoC-write> Func:snd_SoC_component_write、reg:6、value:20
[675.093324] FSL-SAI 3001000.SAI:无法得出所需的 Tx 速率:2822400
[675.100430] FSL-SAI 3001000.SAI:ASOC:3001000.SAI 上的 snd_soc_da_hw_params 错误:-22.
[675.108794] Divyesh -< SoC-read> Func:snd_soc_component_read、reg:43
[675.108799] Divyesh -< SoC-read> Func:snd_soc_component_read、reg:44