Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132823
b: refs/heads/master
c: 0664678
h: refs/heads/master
i:
  132821: 8ea9887
  132819: 758dddd
  132815: 5ae5b46
v: v3
  • Loading branch information
Philipp Zabel authored and Mark Brown committed Feb 4, 2009
1 parent fb68244 commit 31b50c5
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: 5b2474425ed2a625b75dcd8d648701e473b7d764
refs/heads/master: 0664678a84c653bde844c7d91646259a25c6188b
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 @@ -21,6 +21,8 @@
#include <linux/clk.h>
#include <linux/io.h>

#include <asm/irq.h>

#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/initval.h>
Expand Down Expand Up @@ -221,9 +223,9 @@ static int pxa_ssp_startup(struct snd_pcm_substream *substream,
int ret = 0;

if (!cpu_dai->active) {
ret = ssp_init(&priv->dev, cpu_dai->id + 1, SSP_NO_IRQ);
if (ret < 0)
return ret;
priv->dev.port = cpu_dai->id + 1;
priv->dev.irq = NO_IRQ;
clk_enable(priv->dev.ssp->clk);
ssp_disable(&priv->dev);
}
return ret;
Expand All @@ -238,7 +240,7 @@ static void pxa_ssp_shutdown(struct snd_pcm_substream *substream,

if (!cpu_dai->active) {
ssp_disable(&priv->dev);
ssp_exit(&priv->dev);
clk_disable(priv->dev.ssp->clk);
}
}

Expand Down Expand Up @@ -751,7 +753,7 @@ static int pxa_ssp_probe(struct platform_device *pdev,
if (!priv)
return -ENOMEM;

priv->dev.ssp = ssp_request(dai->id, "SoC audio");
priv->dev.ssp = ssp_request(dai->id + 1, "SoC audio");
if (priv->dev.ssp == NULL) {
ret = -ENODEV;
goto err_priv;
Expand Down

0 comments on commit 31b50c5

Please sign in to comment.