Skip to content

Commit 9944ebb

Browse files
committed
ASoC: SOF: hda: set autosuspend delay for hda bus device
Set the autosuspend delay for hda bus device. This prevents the hda codec device from entering runtime suspend when running stress tests involving opening/closing streams one after the other. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent d807d30 commit 9944ebb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/soc/sof/intel/hda-codec.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ static int hda_codec_probe(struct snd_sof_dev *sdev, int address)
8989

9090
return ret;
9191
#endif
92+
93+
/* set autosuspend delay for hda bus device */
94+
snd_hda_set_power_save(hbus, SND_SOF_SUSPEND_DELAY_MS);
9295
}
9396

9497
/* Codec initialization */

0 commit comments

Comments
 (0)