你好,我升级到linux5.15.71配置声卡的时候,选配了snd-soc-tlv320aic3x.ko 和 snd-soc-tlv320aic3x-i2c.ko 模块,安装完成后
ls /dev/snd/ by-path controlC0 pcmC0D0c pcmC0D0p timer
但是安装完模块后 i2c命令无法使用,不安装模块时都是可以使用的
# i2cdump -y -f 0 0x18
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
无论是播放还是录制音频都是显示这种信息
c# aplay sine.wav
Playing WAVE 'sine.wav' : Signed 32 bit Little Endian, Ra[ 1101.900499] fsl-sai 2028000.sai: failed to derive required Tx rate: 2822400
te 44100 Hz, Stereo
[ 1101.909754] fsl-sai 2028000.sai: ASoC: error at snd_soc_dai_hw_params on 2028000.sai: -22
[ 1101.923524] 2028000.sai-tlv320aic3x-hifi: ASoC: soc_pcm_hw_params() failed (-22)
aplay: set_params:1297: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S32_LE
SUBFORMAT: STD
SAMPLE_BITS: 32
FRAME_BITS: 64
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 44104
PERIODS: 4
BUFFER_TIME: (500045 500046)
BUFFER_SIZE: 22052
BUFFER_BYTES: 176416
TICK_TIME: 0
在我安装模块时,有这样一个错误
# insmod snd-soc-tlv320aic3x-i2c.ko
[ 327.413410] tlv320aic3x 0-0018: Unsuitable MicBias voltage found in DT