24 Apr
2015
24 Apr
'15
7:33 p.m.
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.