Skip to content

Commit bec7760

Browse files
soyersoyertiwai
authored andcommitted
ALSA: hda/tas2781: do not reset cur_* values in runtime_suspend
The amplifier doesn't loose register state in software shutdown mode, so there is no need to reset the cur_* values. Without these resets, the amplifier can be turned on after runtime_suspend without waiting for the program and profile to be restored. Fixes: 5be27f1 ("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: <aa27ae084150988bf6a0ead7e3403bc485d790f8.1709918447.git.soyer@irl.hu>
1 parent c58e6ed commit bec7760

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,6 @@ static void tas2781_hda_i2c_remove(struct i2c_client *clt)
832832
static int tas2781_runtime_suspend(struct device *dev)
833833
{
834834
struct tas2781_hda *tas_hda = dev_get_drvdata(dev);
835-
int i;
836835

837836
dev_dbg(tas_hda->dev, "Runtime Suspend\n");
838837

@@ -843,12 +842,6 @@ static int tas2781_runtime_suspend(struct device *dev)
843842
tas_hda->priv->playback_started = false;
844843
}
845844

846-
for (i = 0; i < tas_hda->priv->ndev; i++) {
847-
tas_hda->priv->tasdevice[i].cur_book = -1;
848-
tas_hda->priv->tasdevice[i].cur_prog = -1;
849-
tas_hda->priv->tasdevice[i].cur_conf = -1;
850-
}
851-
852845
mutex_unlock(&tas_hda->priv->codec_lock);
853846

854847
return 0;

0 commit comments

Comments
 (0)