]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/common: Use cleanup macros for PM controls
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Aug 2025 07:28:45 +0000 (09:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 09:52:14 +0000 (11:52 +0200)
commit8dad6b3dac2794c52d63b2336138392eddc17936
treea8e506cb2c915ee66d7b8398dc1e02a3ab6a6013
parentcee9102fcdf4d2bff4ea4b46f70cba1ff7c8accb
ALSA: hda/common: Use cleanup macros for PM controls

The new macro CLASS(snd_hda_power_pm) can replace the manual
snd_hda_power_up_pm() and _down() calls gracefully.

A part of the code in codec_exec_verb() is factored out to a function,
so that the auto-cleanup can be well scoped.

Merely cleanups and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250827072916.31933-6-tiwai@suse.de
sound/hda/common/codec.c
sound/hda/common/proc.c
sound/hda/common/sysfs.c