Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda/tas2781: add lock to system_suspend

Add the missing lock around tasdevice_tuning_switch().

Fixes: 5be27f1e3ec9 ("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>

authored by

Gergo Koteles and committed by
Takashi Iwai
c58e6ed5 c850c912

+4
+4
sound/pci/hda/tas2781_hda_i2c.c
··· 885 885 if (ret) 886 886 return ret; 887 887 888 + mutex_lock(&tas_hda->priv->codec_lock); 889 + 888 890 /* Shutdown chip before system suspend */ 889 891 tasdevice_tuning_switch(tas_hda->priv, 1); 892 + 893 + mutex_unlock(&tas_hda->priv->codec_lock); 890 894 891 895 /* 892 896 * Reset GPIO may be shared, so cannot reset here.