]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/tas2781: Clean up runtime PM with guard()
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Dec 2025 14:11:48 +0000 (15:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Dec 2025 09:51:58 +0000 (10:51 +0100)
commit4a91da4afc7db944d17234e4ecc164df8252b23b
tree81db929ebbf4b3eac4bb9d2526c7038e2f91609f
parent0ff22680e51f4c636f9fa98a1357f21310cb2a9a
ALSA: hda/tas2781: Clean up runtime PM with guard()

Use guard(pm_runtime_active_auto) for replacing the manual calls of
pm_runtime_get_sync() and pm_runtime_put_autosuspend().

Along with this, we can use guard() for the tas_priv->codec_lock mutex
in tasdev_fw_ready(), too (that aligns both i2c and spi codes).

Merely code cleanups and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251216141154.172218-4-tiwai@suse.de
sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
sound/hda/codecs/side-codecs/tas2781_hda_spi.c