ALSA: hda/tas2781: add lock to system_suspend
BugLink: https://bugs.launchpad.net/bugs/2060097
[ Upstream commit c58e6ed55a1bb9811d6d936d001b068bb0419467 ]
Add the missing lock around tasdevice_tuning_switch().
Fixes: 5be27f1e3e ("ALSA: hda/tas2781: Add tas2781 HDA driver")
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <c666da13d4bc48cd1ab1357479e0c6096541372c.1709918447.git.soyer@irl.hu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit dd68ea813d0a996e73bce4c7ca15c5f078659bee)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
committed by
Roxana Nicolescu
parent
fdc5e3db8a
commit
25a7537e33
@@ -885,9 +885,13 @@ static int tas2781_system_suspend(struct device *dev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
mutex_lock(&tas_hda->priv->codec_lock);
|
||||
|
||||
/* Shutdown chip before system suspend */
|
||||
tasdevice_tuning_switch(tas_hda->priv, 1);
|
||||
|
||||
mutex_unlock(&tas_hda->priv->codec_lock);
|
||||
|
||||
/*
|
||||
* Reset GPIO may be shared, so cannot reset here.
|
||||
* However beyond this point, amps may be powered down.
|
||||
|
||||
Reference in New Issue
Block a user