mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
ASoC: SOF: PM: add check before setting d0_substate
Add check before seeting d0_substate and return success if Audio DSP is already in the target substate. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
1e6a45dd53
commit
031bea594f
|
|
@ -416,6 +416,9 @@ int snd_sof_set_d0_substate(struct snd_sof_dev *sdev,
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (sdev->d0_substate == d0_substate)
|
||||
return 0;
|
||||
|
||||
/* do platform specific set_state */
|
||||
ret = snd_sof_dsp_set_power_state(sdev, d0_substate);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user