Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] ASoC: core/topology/Intel:
@ 2025-06-19  8:42 Peter Ujfalusi
  2025-06-19  8:42 ` [PATCH 1/4] ASoC: topology: Do not call snd_soc_remove_pcm_runtime() for ignored links Peter Ujfalusi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2025-06-19  8:42 UTC (permalink / raw)
  To: lgirdwood, broonie
  Cc: linux-sound, kai.vehmanen, ranjani.sridharan, yung-chuan.liao,
	pierre-louis.bossart

Hi,

There are devices where the iDisp HDA codec for HDMI is disconnected
and it is not present on the HDA bus.
This usually happens on systems with dGPU, but not limited to them.

How SOF tried to deal with this is to drop in a dummy codec in place of
the iDisp to allow the topology to be loaded, but these PCM devices are
unusable, they fail when user tries to use them.
PA/PW is probing the PCM devices on probe and that causes the kernel log
to fill up with errors, which is harmless but disturbing.

This series will use the filter function to prevent the creation of the
HDMI PCM devices in the first place (like HDA legacy stack will not
present HDMI devices if the codec is not visible).
The topology still loads, we still use dummy codec to satisfy it, but
there will be no dummy PCM devices created.

The first two patch handles the same issue that was discovered by the
ignored link: a NULL dereference.
I'm not sure if both is needed, but I felt that fixing it in one place
and leaving the other open might not be future proof.
If I would to pick one, I would likely go with the patch for the
soc-core.

Regards,
Peter
---
Peter Ujfalusi (4):
  ASoC: topology: Do not call snd_soc_remove_pcm_runtime() for ignored
    links
  ASoC: core: Check for rtd == NULL in snd_soc_remove_pcm_runtime()
  ASoC: Intel: skl_hda_dsp_generic: Implement add_dai_link to filter
    HDMI PCMs
  ASoC: Intel: sof_sdw: Implement add_dai_link to filter HDMI PCMs

 sound/soc/intel/boards/skl_hda_dsp_generic.c | 13 +++++++++++++
 sound/soc/intel/boards/sof_sdw.c             | 14 ++++++++++++++
 sound/soc/soc-core.c                         |  3 +++
 sound/soc/soc-topology.c                     |  7 +++++--
 4 files changed, 35 insertions(+), 2 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-06-20 11:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  8:42 [PATCH 0/4] ASoC: core/topology/Intel: Peter Ujfalusi
2025-06-19  8:42 ` [PATCH 1/4] ASoC: topology: Do not call snd_soc_remove_pcm_runtime() for ignored links Peter Ujfalusi
2025-06-19  8:42 ` [PATCH 2/4] ASoC: core: Check for rtd == NULL in snd_soc_remove_pcm_runtime() Peter Ujfalusi
2025-06-19  8:42 ` [PATCH 3/4] ASoC: Intel: skl_hda_dsp_generic: Implement add_dai_link to filter HDMI PCMs Peter Ujfalusi
2025-06-19  8:42 ` [PATCH 4/4] ASoC: Intel: sof_sdw: " Peter Ujfalusi
2025-06-20 11:32 ` [PATCH 0/4] ASoC: core/topology/Intel: Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox