**Describe the bug** ASoC: cpu DAI prepare error when loading tplg. **To Reproduce** This issue happens at boot stage. **Expected behavior** Tplg load successful. **Impact** backend prepare failed -22 **Environment** 1) Kernel: origin/topic/sof-dev-46c2b852 Firmware: origin/cml-003-drop-stable-4731a1 2) tplg name:sof-glk-da7219.tplg 3) GLK Chromebook. 4) Reproducibility Rate:100% **Screenshots or console output** ``` aplay -Dhw:0,5 -f dat -c 2 test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo aplay: set_params:1403: Unable to install hw params: ACCESS: RW_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 32 CHANNELS: 2 RATE: 48000 PERIOD_TIME: 85000 PERIOD_SIZE: 4080 PERIOD_BYTES: 16320 PERIODS: (4 5) BUFFER_TIME: 341000 BUFFER_SIZE: 16368 BUFFER_BYTES: 65472 TICK_TIME: 0 ``` **dmesg** ```[ 472.091877] sof-audio-pci 0000:00:0e.0: ipc tx succeeded: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS [ 472.091879] sof-audio-pci 0000:00:0e.0: pcm: stream dir 0, posn mailbox offset is 790528 [ 472.091896] sof-audio-pci 0000:00:0e.0: ASoC: cpu DAI prepare error: -22 [ 472.091900] iDisp1: ASoC: backend prepare failed -22 [ 472.092197] sof-audio-pci 0000:00:0e.0: pcm: free stream 5 dir 0 ``` [dmesg.log](https://github.com/thesofproject/sof/files/3072344/dmesg.log) [trace.log](https://github.com/thesofproject/sof/files/3072345/trace.log)
Activity
xiulipan commentedon Apr 12, 2019
@ranj063
I had a quick look and the -22 should be returned form following code, right?
linux/sound/soc/sof/intel/hda-dai.c
Lines 168 to 179 in 46c2b85
If
snd_sof_find_spcm_daiis not designed for find BE, why we are using it here?keqiaozhang commentedon Apr 12, 2019
Add more logs
ranj063 commentedon Apr 12, 2019
@xiulipan ack. working on it. will get back asap.
libinyang commentedon Apr 13, 2019
it seems the regression of #795?
mengdonglin commentedon Apr 15, 2019
Can be fixed by PR #834, waiting for fixing CI error and getting merged.
iommu/vt-d: Fix lockdep splat in sva bind()/unbind()
iommu/vt-d: Fix lockdep splat in sva bind()/unbind()