[alsa-devel] [RFC 9/9] ASoC: hda: Export API to change DSP power state
Mark Brown
broonie at kernel.org
Fri Apr 24 19:33:04 CEST 2015
On Fri, Apr 17, 2015 at 06:46:07PM +0530, Vinod Koul wrote:
> + if (state == SST_DSP_POWER_D0)
> + ret = ctx->ops.set_state_D0(ctx);
> + else if (state == SST_DSP_POWER_D3)
> + ret = ctx->ops.set_state_D3(ctx);
> + else
> + dev_err(ctx->dev, "Power State=%x not supported", state);
Can we have a switch statement please? I'm a bit unclear why this is
being exported as it is, shouldn't things be wrapped up more so that the
DSP code owns its own power state.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150424/829c6e1e/attachment.sig>
More information about the Alsa-devel
mailing list