Skip to content

[BUG][CML] HDA Analog and HDA Digital pipeline will interact with each other #874

@ClarexZhou

Description

@ClarexZhou

Describe the bug
HDA Analog aplay will has no audio output once start aplay on HDA Digital during aplaying on Analog.

To Reproduce

  1. terminal 1 headset playback: aplay -Dhw:0,0 -f dat -c 2 audio.wav
  2. terminal 2 HDA digital playback: aplay -Dhw:0,2 -f dat -c 2 audio.wav, check

Expected behavior
HDA Analog shouldn't be effected.

Actual result
Analog no audio output, restart aplay can output normally.

Log
logger_error.log
logger.log
dmesg.log

No obvious error log on sof-logger. Dmesg as below:

[ 3019.235287] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 0 dir 0 cmd 1
[ 3019.235298] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 3019.235636] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 3019.235640] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=1
[ 3020.211918] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 3020.211945] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 3021.800815] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 1 dir 0 cmd 0
[ 3021.800833] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 3021.800980] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 3021.800993] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=0
[ 3021.801179] sof-audio-pci 0000:00:1f.3: pcm: free stream 1 dir 0
[ 3021.801191] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 3021.801304] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 3021.801532] sof-audio-pci 0000:00:1f.3: pcm: close stream 1 dir 0
[ 3022.711788] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 3022.711818] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 3165.775880] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 0 dir 0 cmd 0
[ 3165.775897] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 3165.776043] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 3165.776056] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=0
[ 3165.776230] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 0
[ 3165.776242] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 3165.776398] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 3165.776574] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 0

Test Recipe
Kernel repo | https://github.com/RanderWang/linux/tree/cml-validation-20190425

Made from:
f7e9d4a [thesofproject/linux: topic/sof-dev]

8a8e045 [RanderWang/linux: cml-validation-20190425]
62eaa40 [RanderWang/linux: cml-validation-20190425]
bf461fd [RanderWang/linux: cml-validation-20190425]
49bb879 [RanderWang/linux: cml-validation-20190425]
6af82dc [RanderWang/linux: cml-validation-20190425]
e54f292 [RanderWang/linux: cml-validation-20190425]
e026573 [RanderWang/linux: cml-validation-20190425]
3bdeae3 [RanderWang/linux: cml-validation-20190425]
cea87d5 [RanderWang/linux: cml-validation-20190425]

Firmware repo | https://github.com/RanderWang/sof/tree/cml-linux-20190425
Made from:
395a34e [thesofproject/sof: master]
279c995 [RanderWang/sof: cml-linux-20190425]
8598799 [RanderWang/sof: cml-linux-20190425]

Topology: | https://github.com/RanderWang/sof/tree/cml-linux-20190425
file: tools/topology/sof-hda-generic.m4, sof-hda-generic-2ch.tplg

Kconfig: | https://sof-ci-storage.sh.intel.com/daily/20190425/linux-2e945691-1/config-daily-hda-20190425

Metadata

Metadata

Assignees

Labels

CMLApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionP2Critical bugs or normal featuresbugSomething isn't workingduplicateThis issue or pull request already exists

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions