Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182872
b: refs/heads/master
c: 026384d
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Mark Brown committed Feb 2, 2010
1 parent c23985f commit f5e97f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59cdd9bc057a54384a7838231dd2672a89dff2ac
refs/heads/master: 026384d614b827f368834860c9b623ce08439b7e
12 changes: 7 additions & 5 deletions trunk/sound/soc/pxa/pxa-ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,25 @@ static int pxa_ssp_suspend(struct snd_soc_dai *cpu_dai)
struct ssp_priv *priv = cpu_dai->private_data;

if (!cpu_dai->active)
return 0;
clk_enable(priv->dev.ssp->clk);

ssp_save_state(&priv->dev, &priv->state);
clk_disable(priv->dev.ssp->clk);

return 0;
}

static int pxa_ssp_resume(struct snd_soc_dai *cpu_dai)
{
struct ssp_priv *priv = cpu_dai->private_data;

if (!cpu_dai->active)
return 0;

clk_enable(priv->dev.ssp->clk);
ssp_restore_state(&priv->dev, &priv->state);
ssp_enable(&priv->dev);

if (cpu_dai->active)
ssp_enable(&priv->dev);
else
clk_disable(priv->dev.ssp->clk);

return 0;
}
Expand Down

0 comments on commit f5e97f5

Please sign in to comment.