Skip to content

[Bug] No SOF sound card for error 'ASoC: CODEC DAI intel-hdmi-hifi1 not registered' if NVidia audio probes earlier #1672

@ClarexZhou

Description

@ClarexZhou

Describe the bug
Test Device has a nvidia GFX card and so has another sound card for NVidia HDMI audio outputs. The Nvidia sound card is created by legacy HD-Audio driver. Both sof and nvidia hdmi use snd-hda-codec-hdmi.

  • Good scenario: If SOF driver is probed earlier, everything is fine. Both SOF and NVidia sound cards can be created successfully and work well. NVidia supports audio output from HDMI port, and SOF can support audio output from USB-C port via HDMI adapter.

  • Bad scenario: If we blacklist SOF driver, and so NVidia will probe first. The NV sound card can be created. And then we manually load SOF driver. No SOF sound card can be created for 'ASoC: CODEC DAI intel-hdmi-hifi1 not registered' (this issue)

It seems if NV card is initialized at first, Gen GFX status is different and can impact audio.

To Reproduce

  1. Blacklist sof_pci_dev in /etc/modprobe.d/blacklist.conf
  2. Do system reboot via "sudo reboot"
  3. sudo modprobe sof_pci_dev

Reproduce Rate
3/3

Actual result
No sof soundcard for 'ASoC: CODEC DAI intel-hdmi-hifi1 not registered'

Expected result
SOF soundcard should be registered.

Environment
Kernel: release/sof-v5.0 32c6c62
Firmware: cml-hda-dmic-002-drop-stable (0f7362835)
Kernel config: Run https://github.com/thesofproject/kconfig/blob/master/kconfig-sof-default.sh
Topology: Same with FW branch, sof-hda-generic-2ch.tplg
platform: CML-H Laptop with codec ALC3254 in HDA mode
UCM: https://github.com/thesofproject/alsa-ucm-conf/tree/sof_ucm1/

Dmesg

[  754.980063] sof-audio-pci 0000:00:1f.3: warning: No matching ASoC machine driver found
[  754.980068] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[  754.980221] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[  754.980604] sof-audio-pci 0000:00:1f.3: Linked as a consumer to 0000:00:02.0
[  754.980637] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[  754.989579] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
[  754.989580] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[  754.999379] sof-audio-pci 0000:00:1f.3: unexpected ipc interrupt raised!
[  754.999381] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
[  755.136069] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:1:0-0f736
[  755.136074] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:7:0 Kernel ABI 3:6:0
[  755.136076] sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than kernel
[  755.136430] sof-audio-pci 0000:00:1f.3: firmware boot complete
[  755.142836] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link iDisp1
[  755.142838] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link iDisp2
[  755.142840] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link iDisp3
[  755.142842] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link Analog Playback and Capture
[  755.142844] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link Digital Playback and Capture
[  755.142846] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link dmic01
[  755.142847] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link dmic16k
[  755.142854] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: CODEC DAI intel-hdmi-hifi1 not registered
[  782.203750] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[  782.353403] usb 1-2: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36
[  782.353409] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  782.353412] usb 1-2: Product: USB2.0 Hub
[  782.355246] hub 1-2:1.0: USB hub found
[  782.355542] hub 1-2:1.0: 4 ports detected

modprobSOF_afterbootupwithSOFblacklist.txt

And also attach boot up log without blacklist sof.
bothNVand SOFHDMI_boot.txt

Metadata

Metadata

Assignees

Labels

CMLApplies to Comet Lake platformDual GFX CardsBoth Intel integrated GPU and external GFX card are present.HDAApplies to HD-Audio bus for codec connectionP1Blocker bugs or important featuresbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions