Skip to content

ALSA: hda: Unify codec construction

Cezary Rojewski alsa-devel 3 versions – Applied

Status from this message: Applied all patches now to for-next branch. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/26 patches 3 repliesApplied
  2. v2 posting 1/23 of 6 patches 8 repliesSuperseded
  3. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- dropped snd_hda_ext_core <-> snd_hda_codec dependency by calling snd_hda_codec_device_init() directly in skylake and sof drivers probe enumeration routines, as suggested by Takashi
- skylake/sof portion of the change has been split into two separate patches

- new functions that aim to replace hdac_ext codec init & exit functionality are added first - for skylake and sof drivers both
- third patch in the series now combines the "field -> pointer" change for hdac_hda_priv->codec plus the codec-enumeration adjustments for skylake and sof drivers
Both above are here to keep git bisect happy, as suggested by Pierre

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/6ASoC: Intel: Skylake: Introduce HDA codec init and exit routinessound/soc/intel/skylake/skl.c+29 -01 reply
2/6ASoC: SOF: Intel: Introduce HDA codec init and exit routinessound/soc/sof/intel/hda-codec.c+30 -00 replies
3/6ASoC: Intel: Drop hdac_ext usage for codec device creationsound/soc/codecs/hdac_hda.c sound/soc/codecs/hdac_hda.h sound/soc/intel/boards/hda_dsp_common.c +3 more+36 -510 replies
4/6ALSA: hda: Always free codec on the device releasesound/pci/hda/hda_codec.c+1 -70 replies
5/6ALSA: hda: Remove codec init and exit routinesinclude/sound/hda_codec.h include/sound/hdaudio_ext.h sound/hda/ext/hdac_ext_bus.c+0 -580 replies
6/6ALSA: hda: Fix page fault in snd_hda_codec_shutdown()sound/pci/hda/hda_codec.c+20 -210 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchKai VehmanenPierre-Louis BossartMark Brown
1/6R-b R-b A-b
2/6R-b R-b A-b
3/6R-b R-b A-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [RESEND PATCH v2 0/6] ALSA: hda: Unify codec construction

A follow up to the recent HDAudio fixes series [1]. Given the recently reported regression [2], before the page fault occurring on codec shutdown can be fixed, codec construction procedure needs to be updated for skylake and sof-intel drivers. Drivers: pci-hda and avs need no changes - already making use of snd_hda_codec_device_init().

As subject touches code used by the sof-driver, additional review has been conducted on thesofproject/linux [3].

Changes in v2:

- dropped snd_hda_ext_core <-> snd_hda_codec dependency by calling snd_hda_codec_device_init() directly in skylake and sof drivers probe enumeration routines, as suggested by Takashi
- skylake/sof portion of the change has been split into two separate patches

- new functions that aim to replace hdac_ext codec init & exit functionality are added first - for skylake and sof drivers both
- third patch in the series now combines the "field -> pointer" change for hdac_hda_priv->codec plus the codec-enumeration adjustments for skylake and sof drivers
Both above are here to keep git bisect happy, as suggested by Pierre

[1]: https://lore.kernel.org/alsa-devel/[email protected]/
[2]: https://lore.kernel.org/alsa-devel/[email protected]/
[3]: https://github.com/thesofproject/linux/pull/3775

Cezary Rojewski (6):
ASoC: Intel: Skylake: Introduce HDA codec init and exit routines
ASoC: SOF: Intel: Introduce HDA codec init and exit routines
ASoC: Intel: Drop hdac_ext usage for codec device creation
ALSA: hda: Always free codec on the device release
ALSA: hda: Remove codec init and exit routines
ALSA: hda: Fix page fault in snd_hda_codec_shutdown()

 include/sound/hda_codec.h                    |  2 -
 include/sound/hdaudio_ext.h                  |  3 --
 sound/hda/ext/hdac_ext_bus.c                 | 53 -------------------
 sound/pci/hda/hda_codec.c                    | 49 ++++++++---------
 sound/soc/codecs/hdac_hda.c                  | 26 ++++-----
 sound/soc/codecs/hdac_hda.h                  |  2 +-
 sound/soc/intel/boards/hda_dsp_common.c      |  2 +-
 sound/soc/intel/boards/skl_hda_dsp_generic.c |  2 +-
 sound/soc/intel/skylake/skl.c                | 53 ++++++++++++++-----
 sound/soc/sof/intel/hda-codec.c              | 55 ++++++++++++++------
 10 files changed, 113 insertions(+), 134 deletions(-)
Signature · 1 line
2.25.1