]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/hdmi: Rewrite to new probe method
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Jul 2025 16:04:26 +0000 (18:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Jul 2025 07:55:38 +0000 (09:55 +0200)
commitad781b550f9a8829e3dae4bd3d18c4a126a53d04
tree5ad7385b44d2a38f01f4c039553481be2de4fa02
parent6cce08122f7096c045ed72b734e2e00ab46fd111
ALSA: hda/hdmi: Rewrite to new probe method

Convert the HDMI codec drivers to use the new hda_codec_ops probe.

The Intel and Nvidia-MCP HDMI drivers needed slightly more changes to
deal with the unified callbacks among all models.

Also another non-trivial change is Intel driver's set_power_state
callback.  An additional NULL check of codec->spec is needed there
since the set_power_state() may be called before the probe gets called
(e.g. in ASoC hda codec hda_codec_probe()).

Other than that, no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-24-tiwai@suse.de
sound/hda/codecs/hdmi/atihdmi.c
sound/hda/codecs/hdmi/hdmi.c
sound/hda/codecs/hdmi/hdmi_local.h
sound/hda/codecs/hdmi/intelhdmi.c
sound/hda/codecs/hdmi/nvhdmi-mcp.c
sound/hda/codecs/hdmi/nvhdmi.c
sound/hda/codecs/hdmi/simplehdmi.c
sound/hda/codecs/hdmi/tegrahdmi.c