Skip to content

RKL: soundcard is failed to be initialized for link error #2261

Closed

Description

@RanderWang
[  884.040113] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: error at snd_soc_card_add_dai_link on sof-hda-dsp: -22
[  884.040121] sof-audio-pci 0000:00:1f.3: ASoC: adding FE link failed
[  884.040125] sof-audio-pci 0000:00:1f.3: ASoC: topology: could not load header: -22

Now RKL GPU driver is not included in our kernel, so there is no HDMI support now. It failed at https://github.com/thesofproject/linux/blob/topic/sof-dev/sound/soc/intel/boards/skl_hda_dsp_generic.c#L83. @kv2019i Do you have any advice ?

Activity

  1. kv2019i commented on Jul 9, 2020

    @kv2019i
    Collaborator

    @RanderWang hmm, this is a new kind of error. Are you using an unmodified topology file and hda machine driver?

    Possible things to check:

    • idisp codec is reported to be present even if driver is not in kernel (should not happen, but best to check):
      -> try with modprobe option: "options snd_sof_intel_hda_common codec_mask=0x1"

    • in skl_hda_hdmi_add_pcm(), only thing that could fail seems to be snd_soc_card_get_codec_dai() ... can you print out what is the "dai_name" when the error happens?

  2. RanderWang commented on Jul 10, 2020

    @RanderWang
    Author

    @RanderWang hmm, this is a new kind of error. Are you using an unmodified topology file and hda machine driver?

    Possible things to check:

    • idisp codec is reported to be present even if driver is not in kernel (should not happen, but best to check):
      -> try with modprobe option: "options snd_sof_intel_hda_common codec_mask=0x1"

    I checked idsp codec is not enabled

    • in skl_hda_hdmi_add_pcm(), only thing that could fail seems to be snd_soc_card_get_codec_dai() ... can you print out what is the "dai_name" when the error happens?

    dai_name = intel-hdmi-hifi0 and no such dai in sound card. I checked hdmi in sof_sdw. you added check

    sof_sdw_hdmi_card_late_probe  {
    ......
    	if (!ctx->idisp_codec)
    		return 0;
    ......
    }
    

    How about apply the idea to hda machine driver to skip creating hdmi pcm in this case ?

  3. kv2019i commented on Jul 10, 2020

    @kv2019i
    Collaborator

    @RanderWang Ok, interesting. It seems we have a regression in the HDA driver for this. I'm investigating what has happened.

  4. self-assigned this
    on Jul 10, 2020
  5. added
    bugSomething isn't working
    HDAApplies to HD-Audio bus for codec connection
    P1Blocker bugs or important features
    on Jul 10, 2020
  6. kv2019i commented on Jul 10, 2020

    @kv2019i
    Collaborator

    Ok, this is a regression in 5.8-rc :( ... I'm now bisecting what happened.

  7. kv2019i commented on Jul 10, 2020

    @kv2019i
    Collaborator

    Found it, it's this patch in 5.8-rc that breaks current HDA generic driver when i915 init fails:

    cbc7a6b
    ASoC: soc-card: add snd_soc_card_add_dai_link()

    ... I'll make a fix on Monday.

  8. ClarexZhou commented on Jul 14, 2020

    @ClarexZhou

    SOF can be loaded with this patch #2270 after workarround thesofproject/sof#3173

  9. ClarexZhou commented on Jul 20, 2020

    @ClarexZhou

    Close for PR #2270 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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