Audio does not load the Configuration if i enable remoteproc@208000

we are using 407 release git qcom-4.14 , kernel commit id cfdd5dcc5327637e2979688c17e3d9bb93f8e5f2

if we enable the remotproc related to gps, Audio gets disabled, no soundcard get registered - dummy output. Please suggest

if we set status=“disabled” for remotproc, Audio gets enabled, soundcard will be available
root@linaro-alip:/home/linaro# cat /proc/asound/cards
0 [DB820c ]: DB820c - DB820c
DB820c

remoteproc@2080000 {
compatible = “qcom,msm8996-mss-pil”;
status = “okay”;
//status = “disabled”;

I’ve actually found that the sound card only registers intermittently. Initially, I thought that changes I was making were causing it to fail to register. Have you tried rebooting it several times with your changes to confirm that it isn’t just intermittent?

I thought audio got disabled because of remoteproc enable , later i observed 1 in 5
reboots sound cards does recognize.

I suspect this because of audio firmwares not loading properly

@srini can give good suggestion.

Is it possible to reload after boot the audio part.

Would you be able to find which part of the driver fail by enabling debugging or adding some traces

facing same issue, sound cards are not getting detected. using kernel-4.14.89
~# cat /proc/asound/cards
— no soundcards —
@srini

@srini

failures logs seen from aDSP
[ 21.782100] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 21.782151] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 21.788001] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 21.794262] wcd9335-codec wcd9335-codec.0: wcd9335_slimbus_irq: overflow error on TX port 0, value 1
[ 21.806608] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 21.810272] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 21.818588] SLIM Capture: ASoC: backend prepare failed -22
[ 21.839042] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 21.839097] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 21.845010] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 21.854653] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 21.857922] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 21.865539] SLIM Capture: ASoC: backend prepare failed -22
[ 21.889562] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 21.889615] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 21.895410] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 21.901279] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 21.914595] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 21.916009] SLIM Capture: ASoC: backend prepare failed -22
[ 21.933077] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 21.933141] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 21.938940] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 21.944795] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 21.954588] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 21.962611] SLIM Capture: ASoC: backend prepare failed -22
[ 21.978633] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 21.978730] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 21.984449] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 21.994637] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 21.997516] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 22.005174] SLIM Capture: ASoC: backend prepare failed -22
[ 22.034149] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 22.034205] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 22.040077] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 22.045867] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 22.058638] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 22.060570] SLIM Capture: ASoC: backend prepare failed -22
[ 22.082342] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 22.082432] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 22.089667] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 22.095295] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 22.101556] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 22.109542] SLIM Capture: ASoC: backend prepare failed -22
[ 22.139208] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 22.139262] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 22.145030] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 22.145038] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 22.145046] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 22.166207] SLIM Capture: ASoC: backend prepare failed -22
[ 22.194848] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 22.194896] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 22.200724] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 22.206575] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 22.222602] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 22.222635] SLIM Capture: ASoC: backend prepare failed -22
[ 22.233979] qcom-q6afe aprsvc:q6afe:4:4: cmd = 0x100e5 returned error = 0x9
[ 22.235093] qcom-q6afe aprsvc:q6afe:4:4: DSP returned error[9]
[ 22.242327] qcom-q6afe aprsvc:q6afe:4:4: AFE enable for port 0x4001 failed -22
[ 22.248799] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: fail to start AFE port 3
[ 22.256176] q6afe-dai adsp-pil:smd-edge:apr:q6afe:dais: ASoC: cpu DAI prepare error: -22
[ 22.268989] SLIM Capture: ASoC: backend prepare failed -22

@vinaysimha @srini
seems issue with capture, DSP errors,
[ 22.268989] SLIM Capture: ASoC: backend prepare failed -22
I have commented SectionDevice.“Handset” in HiFi file then these errors are not seen and able to do only playback.