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
This commit is contained in:
Takashi Iwai 2025-12-16 15:11:48 +01:00
commit 4a91da4afc
2 changed files with 5 additions and 12 deletions