Skip to content

Commit 5655ce6

Browse files
keyonjiebroonie
authored andcommitted
ASoC: SOF: return -ENOTSUPP if D0I3 is not supported
No set_power_state ops means that the platform doesn't support D0i3, return -ENOTSUPP for the case. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191025224122.7718-25-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 66e4087 commit 5655ce6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎sound/soc/sof/ops.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ static inline int snd_sof_dsp_set_power_state(struct snd_sof_dev *sdev,
199199
if (sof_ops(sdev)->set_power_state)
200200
return sof_ops(sdev)->set_power_state(sdev, substate);
201201

202-
return 0;
202+
/* D0 substate is not supported */
203+
return -ENOTSUPP;
203204
}
204205

205206
/* debug */

0 commit comments

Comments
 (0)