Repository navigation
Closed
Labels
CMLApplies to Comet Lake platformApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionP2Critical bugs or normal featuresCritical bugs or normal featuresbugSomething isn't working as expectedSomething isn't working as expected
Description
Describe the bug
“error: ipc error for 0x60010000 size 20” when aplay/arecord with headset(0,0)
ubuntu@cml-hda-mantis-1:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
ubuntu@cml-hda-mantis-1:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 6: DMIC (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 7: DMIC16kHz (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
To Reproduce
1.download sof-hda-asrc-2ch.tplg rename to sof-hda-generic-2ch.tplg
2.sudo reboot
3.aplay -Dhw:0,0 -r48000 -c2 -fs16_le wav/48California_Dreaming.wav -vv -i or
arecord -Dhw:0,0 -r48000 -c2 -fs16_le s30.wav
Reproduction Rate
5/5
Expected behavior
The pipeline can work normally
Impact
Tips”Unable to install hw params”,dmesg show “error: ipc error for 0x60010000 size 20”
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Name of the topology file
- Topology: {sof-hda-asrc-2ch.tplg rename to sof-hda-generic-2ch.tplg}
- Name of the platform(s) on which the bug is observed.
- Platform: {CML laptop with onboard codec ALC3204 in HDA mode}
sof_errortrace.log
TIMESTAMP DELTA C# COMPONENT LOCATION CONTENT
[155584189.791667] (155584192.000000) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155584211.302083] ( 21.510416) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155584231.875000] ( 20.572916) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155650778.437500] ( 66546.562500) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155650799.739583] ( 21.302084) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155650820.729167] ( 20.989584) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155652360.052083] ( 1539.322876) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155652382.343750] ( 22.291666) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155652402.343750] ( 20.000000) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155653979.114583] ( 1576.770874) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155654000.572917] ( 21.458334) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155654020.572917] ( 20.000000) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155655507.395833] ( 1486.822876) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155655528.697917] ( 21.302084) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155655548.697917] ( 20.000000) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155657046.875000] ( 1498.177124) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155657068.385417] ( 21.510416) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155657089.114583] ( 20.729166) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155724113.802083] ( 67024.687500) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155724135.677083] ( 21.875000) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155724156.197917] ( 20.520834) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155725607.135417] ( 1450.937500) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155725629.010417] ( 21.875000) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155725649.114583] ( 20.104166) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155727107.291667] ( 1458.177124) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155727129.218750] ( 21.927084) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155727149.218750] ( 20.000000) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155728701.145833] ( 1551.927124) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155728722.291667] ( 21.145834) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155728742.708333] ( 20.416666) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155730423.333333] ( 1680.625000) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155730444.687500] ( 21.354166) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155730464.791667] ( 20.104166) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155795653.802083] ( 65189.011719) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155795674.895833] ( 21.093750) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155795695.000000] ( 20.104166) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155796887.083333] ( 1192.083374) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155796908.020833] ( 20.937500) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155796927.604167] ( 19.583334) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155798227.760417] ( 1300.156250) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155798249.687500] ( 21.927084) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155798270.000000] ( 20.312500) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155799490.416667] ( 1220.416626) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155799512.031250] ( 21.614584) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155799531.822917] ( 19.791666) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155800730.572917] ( 1198.750000) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155800751.979167] ( 21.406250) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155800771.822917] ( 19.843750) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155868275.885417] ( 67504.062500) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155868297.447917] ( 21.562500) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155868317.812500] ( 20.364584) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155869899.895833] ( 1582.083374) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155869921.093750] ( 21.197916) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155869941.979167] ( 20.885416) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155871506.666667] ( 1564.687500) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155871528.437500] ( 21.770834) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155871548.281250] ( 19.843750) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155872990.104167] ( 1441.822876) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155873011.510417] ( 21.406250) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155873031.510417] ( 20.000000) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155874628.020833] ( 1596.510376) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155874649.583333] ( 21.562500) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155874669.479167] ( 19.895834) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155940733.385417] ( 66063.906250) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155940754.583333] ( 21.197916) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155940775.572917] ( 20.989584) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155942015.520833] ( 1239.947876) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155942037.187500] ( 21.666666) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155942057.604167] ( 20.416666) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155943235.677083] ( 1178.072876) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155943257.343750] ( 21.666666) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155943276.979167] ( 19.635416) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155944487.500000] ( 1210.520874) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155944508.958333] ( 21.458334) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155944528.541667] ( 19.583334) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[155945736.093750] ( 1207.552124) c0 dai 2.17 src/audio/dai.c:449 ERROR dai_params(): invalid period_bytes.
[155945757.031250] ( 20.937500) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 11
[155945777.083333] ( 20.052084) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 2 comp 11 params failed -22
[156013341.093750] ( 67564.007812) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156013360.729167] ( 19.635416) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
[156013380.312500] ( 19.583334) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 1 comp 1 params failed -22
[156014977.395833] ( 1597.083374) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156014996.510417] ( 19.114584) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
[156015016.614583] ( 20.104166) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 1 comp 1 params failed -22
[156016658.958333] ( 1642.343750) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156016678.906250] ( 19.947916) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
[156016698.750000] ( 19.843750) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 1 comp 1 params failed -22
[156018270.052083] ( 1571.302124) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156018289.218750] ( 19.166666) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
[156018309.947917] ( 20.729166) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 1 comp 1 params failed -22
[156019777.968750] ( 1468.020874) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156019797.343750] ( 19.375000) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
[156019817.343750] ( 20.000000) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 1 comp 1 params failed -22
[156083832.239583] ( 64014.894531) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156083852.083333] ( 19.843750) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
[156083926.666667] ( 74.583336) c0 IPC src/ipc/handler.c:302 ERROR ipc: pipe 1 comp 1 params failed -22
[156085010.989583] ( 1084.322876) c0 asrc 1.2 src/audio/asrc/asrc.c:416 ERROR asrc_params(), zero sink rate
[156085030.416667] ( 19.427084) c0 PIPE src/audio/pipeline.c:443 ERROR pipeline_params(): ret = -22, host->comp.id = 1
dmesg_error.log
[ 123.798449] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[ 123.798989] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 123.799008] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20
[ 123.799010] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 3
[ 123.799011] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 123.799013] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -22
[ 123.799014] HDA Analog: ASoC: hw_params FE failed -22
[ 123.799020] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 123.799190] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG
[ 123.799194] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 1
[ 123.799197] sof-audio-pci 0000:00:1f.3: hda_link_hw_free: link_dev is not assigned
[ 123.799232] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 123.799425] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG
[ 123.799438] sof-audio-pci 0000:00:1f.3: format_val=49, rate=48000, ch=2, format=10
[ 123.799442] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 0 dir 1
[ 123.799444] sof-audio-pci 0000:00:1f.3: generating page table for 00000000fc25b235 size 0xffc0 pages 16
[ 123.799448] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x340000 successful
[ 123.799462] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
[ 123.799464] sof-audio-pci 0000:00:1f.3: period_bytes:0x1080
[ 123.799465] sof-audio-pci 0000:00:1f.3: periods:15
[ 123.799474] sof-audio-pci 0000:00:1f.3: stream_tag 3
[ 123.799478] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[ 123.799992] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20
[ 123.799997] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 3
[ 123.799998] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -22
[ 123.799999] HDA Analog: ASoC: hw_params FE failed -22
[ 123.800005] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 123.800193] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG
[ 123.800196] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 1
[ 123.800198] sof-audio-pci 0000:00:1f.3: hda_link_hw_free: link_dev is not assigned
[ 123.800251] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 1
[ 123.852401] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 1
[ 123.852408] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
[ 123.852411] sof-audio-pci 0000:00:1f.3: period count 2 max 16
[ 123.852414] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
[ 123.852703] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
.
Metadata
Metadata
Assignees
Labels
CMLApplies to Comet Lake platformApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionP2Critical bugs or normal featuresCritical bugs or normal featuresbugSomething isn't working as expectedSomething isn't working as expected
Activity
singalsu commentedon Apr 1, 2020
@mengdonglin Yep, this is known. Playback is rejected due to incorrect pipeline paramters (zero sample rate). There's no more crash , it was fixed by my PR, but the same fix as was done for SoundWire by @bardliao needs to be done for HDA.
Liviali155 commentedon Apr 13, 2020
This issue also can be reproduced on sof v1.5-rc1 after download sof-hda-asrc-2ch.tplg rename to sof-hda-generic-2ch.tplg
Kernel:4b4681eb Sof-dev
fw:5f7d4e2 https://github.com/thesofproject/sof/releases/tag/v1.5-rc1
UCM2(https://github.com/thesofproject/alsa-ucm-conf/tree/master/ucm2/sof-hda-dsp)
mengdonglin commentedon Apr 14, 2020
Tplg PR #2750 and kernel PR thesofproject/linux#2007 were submitted by @bardliao
Still need firmware update to config rate and channels, please see #2750 (comment) @singalsu @slawblauciak can you help?
slawblauciak commentedon Apr 14, 2020
FW change #2765
Liviali155 commentedon Apr 16, 2020
Tried with PR #2750& kernel PR thesofproject/linux#2007 & PR #2765
aplay/arecord (0,0) can work,but dmesg still has error message “error: ipc error for 0x60010000 size 20”
dmesg_error.log
dmesg0416.log
sof-logger0416.log
slawblauciak commentedon Apr 16, 2020
Can you please provide the sof error trace?
Liviali155 commentedon Apr 16, 2020
There is no sof error trace,and the error dmesg message occured after bootup
Liviali155 commentedon Apr 17, 2020
Because aplay/arecord can work after applied PR #2750& kernel PR thesofproject/linux#2007 & PR #2765,just a error message in dmesg occured,so closed this issue,have creat another issue #2783 to trace Warning message issue