Repository navigation
Closed
Description
Summary:
Register card failed with 'devm_snd_soc_register_card failed (-19)' reason.
sof-logger is empty. sof-logger -t log is attached below.
Step:
- aplay -l
Error output:
aplay: device_list:270: no soundcards found...
Dmesg:
[ 14.110713] sof-audio-acpi 80860F28:01: tplg: load pcm Passthrough 0
[ 14.110729] sof-audio-acpi 80860F28:01: sink BUF1.0 control none source PCM0P
[ 14.110744] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.110820] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.110834] sof-audio-acpi 80860F28:01: sink PGA1.0 control none source BUF1.0
[ 14.110848] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.110910] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.110921] sof-audio-acpi 80860F28:01: sink BUF1.1 control none source PGA1.0
[ 14.110935] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.110996] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111009] sof-audio-acpi 80860F28:01: sink PCM0C control none source BUF2.0
[ 14.111022] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111084] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111095] sof-audio-acpi 80860F28:01: sink BUF2.0 control none source PGA2.0
[ 14.111109] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111170] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111181] sof-audio-acpi 80860F28:01: sink PGA2.0 control none source BUF2.1
[ 14.111194] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111257] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111268] sof-audio-acpi 80860F28:01: sink SSP2.OUT control none source BUF1.1
[ 14.111281] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111339] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111350] sof-audio-acpi 80860F28:01: sink BUF2.1 control none source SSP2.IN
[ 14.111363] sof-audio-acpi 80860F28:01: ipc tx: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111422] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30030000: GLB_TPLG_MSG: COMP_CONNECT
[ 14.111440] sof-audio-acpi 80860F28:01: tplg: config SSP2 fmt 0x4001 mclk 19200000 bclk 1920000 fclk 48000 width (16)20 slots 2 mclk id 0
[ 14.111475] sof-audio-acpi 80860F28:01: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 14.111561] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG
[ 14.111571] sof-audio-acpi 80860F28:01: ASoC: Parent card not yet available, widget card binding deferred
[ 14.111575] sof-audio-acpi 80860F28:01: tplg: complete pipeline PIPELINE.2.SSP2.IN id 13
[ 14.111587] sof-audio-acpi 80860F28:01: ipc tx: 0x30130000: GLB_TPLG_MSG: PIPE_COMPLETE
[ 14.111676] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30130000: GLB_TPLG_MSG: PIPE_COMPLETE
[ 14.111684] sof-audio-acpi 80860F28:01: tplg: complete pipeline PIPELINE.1.SSP2.OUT id 6
[ 14.111696] sof-audio-acpi 80860F28:01: ipc tx: 0x30130000: GLB_TPLG_MSG: PIPE_COMPLETE
[ 14.111758] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x30130000: GLB_TPLG_MSG: PIPE_COMPLETE
[ 14.113429] rt5651 i2c-10EC5651:00: Warning: Invalid over-current-threshold-microamp value: 0, defaulting to 2000uA
[ 14.114097] bytcr_rt5651 bytcr_rt5651: ASoC: no sink widget found for ssp2 Tx
[ 14.114110] bytcr_rt5651 bytcr_rt5651: ASoC: Failed to add route codec_out0 -> direct -> ssp2 Tx
[ 14.114121] bytcr_rt5651 bytcr_rt5651: ASoC: no sink widget found for ssp2 Tx
[ 14.114128] bytcr_rt5651 bytcr_rt5651: ASoC: Failed to add route codec_out1 -> direct -> ssp2 Tx
[ 14.114139] bytcr_rt5651 bytcr_rt5651: ASoC: no source widget found for ssp2 Rx
[ 14.114146] bytcr_rt5651 bytcr_rt5651: ASoC: Failed to add route ssp2 Rx -> direct -> codec_in0
[ 14.114156] bytcr_rt5651 bytcr_rt5651: ASoC: no source widget found for ssp2 Rx
[ 14.114164] bytcr_rt5651 bytcr_rt5651: ASoC: Failed to add route ssp2 Rx -> direct -> codec_in1
[ 14.114174] bytcr_rt5651 bytcr_rt5651: ASoC: no source widget found for ssp2 Tx
[ 14.114182] bytcr_rt5651 bytcr_rt5651: ASoC: Failed to add route ssp2 Tx -> direct -> AIF1 Playback
[ 14.114192] bytcr_rt5651 bytcr_rt5651: ASoC: no sink widget found for ssp2 Rx
[ 14.114199] bytcr_rt5651 bytcr_rt5651: ASoC: Failed to add route AIF1 Capture -> direct -> ssp2 Rx
[ 14.114207] bytcr_rt5651 bytcr_rt5651: ASoC: failed to init SSP2-Codec: -19
[ 14.114213] bytcr_rt5651 bytcr_rt5651: ASoC: failed to instantiate card -19
[ 14.114304] bytcr_rt5651 bytcr_rt5651: Topology forgot to remove link Passthrough?
[ 14.114323] bytcr_rt5651 bytcr_rt5651: devm_snd_soc_register_card failed -19
[ 14.382752] sof-audio-acpi 80860F28:01: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 14.382838] sof-audio-acpi 80860F28:01: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 14.705041] systemd-udevd (1480) used greatest stack depth: 12040 bytes left
Test env:
sof master: 58e90d9
kernel sof-dev: 65df8ef
tplg: sof-byt-rt5651.tplg
Log:
logger.log
dmesg.log
Activity
ranj063 commentedon Mar 1, 2019
@Jiangxinx could you please check if this change in topology helps fix this?
diff --git a/tools/topology/sof-byt-rt5651.m4 b/tools/topology/sof-byt-rt5651.m4
index c64aaa48..4f8ebef2 100644
--- a/tools/topology/sof-byt-rt5651.m4
+++ b/tools/topology/sof-byt-rt5651.m4
@@ -87,3 +87,7 @@ DAI_CONFIG(SSP, 2, 0, SSP2-Codec,
SSP_CLOCK(fsync, 48000, codec_slave),
SSP_TDM(2, 25, 3, 3),
SSP_CONFIG_DATA(SSP, 2, 24)))
+
+VIRTUAL_WIDGET(ssp2 Rx, out_drv, 1)
+VIRTUAL_WIDGET(ssp2 Tx, out_drv, 2)
Jiangxinx commentedon Mar 1, 2019
@ranj063 I tried your change, can not build
sof-byt-rt5651.tplg file.
build log:
ranj063 commentedon Mar 1, 2019
@Jiangxinx thanks, I'll take a look at it today.
plbossart commentedon Mar 1, 2019
ranj063 commentedon Mar 5, 2019
@juimonen could you please take a look at this bug since you are the platform owner for BYT :)
wenqingfu commentedon Mar 6, 2019
If there's a working (card at least register) combo of linux and sof commit id on BYT RT5651, maybe a bisect can find the culprit since this bug is still a new regression? add @juimonen as owner.
It's a P1 since it's a showstopper on one supported platform
@Jiangxinx @stevyan can you help with bisect, too?
Jiangxinx commentedon Mar 7, 2019
I have done bisect, find it is caused by a kernel commit:
ASoC: SOF: remove dai capabilities from dai definitions a044708ed
Here is the bisect results:
1.
env:
sof master: 58e90d9
kernel sof-dev: f147f56b
tplg: sof-byt-rt5651.tplg
result:
passed
env:
sof master: 58e90d9
kernel sof-dev: a044708ed
tplg: sof-byt-rt5651.tplg
result:
failed
juimonen commentedon Mar 7, 2019
@Jiangxinx I don't see that commit in the tree at all. That same place is annotated to some code from @plbossart... Is this some squash/merge problem?
xiulipan commentedon Mar 8, 2019
@juimonen
I think we have some 4.20.0 to 5.0.0 switch, and I do remember I saw this PR set
thesofproject/linux#675 and #1047
@ranj063 could you have a look if that means we need some tplg change special for legacy platforms.
I believe some mismatch may be not be found from test since this change is some related to both tplg and driver.
ranj063 commentedon Mar 9, 2019
@xiulipan my change that I mentioned in an earlier comment should fix it. I will check it today and submit a PR
ranj063 commentedon Mar 10, 2019
@juimonen looks like the ssp2 TX/RX that were removed in ASoC: SOF: remove dai capabilities from dai definitions a044708ed caused the card registration failure.
But reverting this commit only gives me a hw_params ipc error. needs more investigation
ranj063 commentedon Mar 10, 2019
#1108 fixes this issue
thesofproject/linux#706 is also needed for BYT RT5651 to prevent hw_params failure
ranj063 commentedon Mar 15, 2019
@Jiangxinx can this be closed?
xiulipan commentedon Mar 15, 2019
@ranj063
I think we are testing with test topology. Could you help to check with test topology or we should to abandon to use test topology?
I did not think we have full support for the mixer now? Or we should simplify the topology we are using for byt?
ranj063 commentedon Mar 16, 2019
@xiulipan i think we should only use sof-byt-rt5651 and report any failures with it.
It is our only topology with a mixer based pipeline so lets use it
Jiangxinx commentedon Mar 19, 2019
@ranj063 I have used sof-byt-rt5651 instead of test topology, and can register card, but aplay failed. Sof-logger have no obvious error trace.
Step:
aplay -Dhw:0,0 -r 48000 -c 2 -f s16_le /dev/zero
Output:
Dmesg:
Test env:
sof master: 1816586
kernel sof-dev: 41e4680
tplg: sof-byt-rt5651.tplg
lgirdwood commentedon Mar 19, 2019
@Jiangxinx @ranj063 this looks like a FW issue, I assume there is nothing in the error log ? Might be worth adding more trace here.
ranj063 commentedon Mar 19, 2019
@lgirdwood @xiulipan you need my linux PR thesofproject/linux#708 to get aplay to work on the minnowboard
stevyan commentedon Mar 22, 2019
Summary:
This issue has been fixed, and doesn't occurred within daily build based on BYT rt5651.
Test env:
sof master: 6e88bdf
kernel sof-dev: 95b2fab
tplg: sof-byt-rt5651.tplg