Repository navigation
[BUG][SDW]Arecord0,4(RT715) cannot work with tplg in master branch. #1816
Description
Describe the bug
With sof-dev and master branch, arecord0,4(RT715) cannot work and will cause ipc error. If replace the tplg to master + PR2358, issue is gone.
Note: I used to update the alsa-lib for multi-profile ucm validation. I'm not sure if this issue is relevant to it or not. Tried to test it with Pulse audio off, issue can still be reproduced.
alsa-lib deb file:
libasound2_1.2.1.2-intel_amd64.deb.zip
To Reproduce
- Boot up with Pulse Audio off.
- arecord -Dhw:0,4 -r48000 -c2 -fs32_le test.wav
Reproduced rate
100%
Other pipline works fine.
Expected result
Arecord successfully
Actual result
Dmesg shows "error: ipc error for 0x60010000 size 20" and cannot work.
Test recipe
Firmware: 247af13 https://github.com/thesofproject/sof/commits/master
Kernel: 6af9a26 https://github.com/bardliao/linux/tree/topic/sof-dev
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML-U Laptop with ALC711+ ALC1308+ ALC715 in SDW mode
dmesg:
[ 186.651821] sof-audio-pci 0000:00:1f.3: stream_tag 2
[ 186.651824] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[ 186.652595] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20
[ 186.652597] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2
[ 186.652598] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -22
[ 186.652600] Microphones: ASoC: hw_params FE failed -22
[ 186.652602] sdw_deprepare_stream: SDW3 Pin2-Capture: inconsistent state state 1
[ 186.652603] int-sdw int-sdw.3: sdw_deprepare_stream: failed -22
[ 186.652605] sof-audio-pci 0000:00:1f.3: pcm: free stream 4 dir 1
[ 186.652607] sdw_deprepare_stream: SDW3 Pin2-Capture: inconsistent state state 1
[ 186.652608] int-sdw int-sdw.3: sdw_deprepare_stream: failed -22
[ 186.652712] sof-audio-pci 0000:00:1f.3: pcm: close stream 4 dir 1
[ 187.132444] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 187.132477] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 187.346181] usb usb2-port3: Cannot enable. Maybe the USB cable is bad?
[ 187.632382] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
error_sof-trace:
CORE LEVEL COMP_ID TIMESTAMP DELTA FILE_NAME CONTENT
0 1 COMP 5.20 233307973.906250 233307968.000000 udio/eq_iir/eq_iir.c:857 eq_iir_prepare(), No proc func
0 1 PIPE 233307993.072917 19.166666 src/audio/pipeline.c:499 pipeline_prepare() error: ret = -22, dev->comp.id = 18
0 1 IPC 233308012.291667 19.218750 src/ipc/handler.c:311 ipc: pipe 5 comp 18 prepare failed -22
Activity
YvonneYang2 commentedon Feb 21, 2020
Tested it with latest sof-dev(dfd3776) and master(c35e1aa), issue can still be reproduced.
sinahuang commentedon Feb 21, 2020
Issue also can be reproduced on TGL-RVP Dmic(0,4). alsa-lib version: libasound2_1.1.3
Test recipe
Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev commit: dfd3776
FW: https://github.com/thesofproject/sof/commits/master commit: c35e1aa
Tplg: Same with FW branch, sof-tgl-rt711-i2s-rt1308.tplg
Platform:TGL-U RVP with codec ALC711 in SDW mode and RT1308 in I2S mode
dmesg.log
sof_trace.log
YvonneYang2 commentedon Feb 24, 2020
Tested it with latest topic/sof-dev(1d2ad93 ) + master( 1d273c3), issue cannot be reproduced on CML-U SDW laptop.
sinahuang commentedon Feb 25, 2020
Tested it with latest topic/sof-dev(8bf1a29 ) + master( 8b59506), issue still can be reproduced on TGL-RVP with codec ALC711 in SDW mode and RT1308 in I2S mode.
dmesg.log
sinahuang commentedon Feb 25, 2020
According to the bi-sect result this is a FW issue, because TGL-U RVP's FW can't be built manually.
So I only can confirm issue may be generated by the commit from thesofproject/sof@b0ad957 to thesofproject/sof@53d35e4.
dmesg.log
sof_trace.log
sinahuang commentedon Feb 26, 2020
Split TGL issue to #1828, so closed this issue.