[alsa-devel] [PATCH 17/26] ASoC: SOF: PM: add helpers for setting D0 substate for ADSP
Cezary Rojewski
cezary.rojewski at intel.com
Tue Oct 29 11:44:45 CET 2019
On 2019-10-26 00:41, Pierre-Louis Bossart wrote:
> +int snd_sof_set_d0_substate(struct snd_sof_dev *sdev,
> + enum sof_d0_substate d0_substate)
> +{
> + int ret;
> +
> + /* do platform specific set_state */
> + ret = snd_sof_dsp_set_power_state(sdev, d0_substate);
> + if (ret < 0)
> + return ret;
> +
> + /* update dsp D0 sub-state */
> + sdev->d0_substate = d0_substate;
> +
> + return 0;
> +}
> +EXPORT_SYMBOL(snd_sof_set_d0_substate);
Are reason for not merging this directly with snd_sof_dsp_set_power_state?
More information about the Alsa-devel
mailing list