Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178111
b: refs/heads/master
c: 4e30b69
h: refs/heads/master
i:
  178109: fd398e5
  178107: 0aa9c03
  178103: 3b46fb4
  178095: 91816e3
  178079: 587488e
  178047: cffdf18
v: v3
  • Loading branch information
Russell King authored and Takashi Iwai committed Dec 18, 2009
1 parent 3020b40 commit 18fece4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 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: 6ca867c827c84d21316e9dc4035abe9480f8347c
refs/heads/master: 4e30b69108b20eca80f1a323f969bf7629c7795f
18 changes: 7 additions & 11 deletions trunk/sound/arm/aaci.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,18 +438,14 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream,

err = snd_pcm_lib_malloc_pages(substream,
params_buffer_bytes(params));
if (err < 0)
goto out;

err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
params_channels(params),
aacirun->pcm->r[0].slots);
if (err)
goto out;
if (err >= 0) {
err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
params_channels(params),
aacirun->pcm->r[0].slots);

aacirun->pcm_open = 1;
aacirun->pcm_open = err == 0;
}

out:
return err;
}

Expand All @@ -458,7 +454,7 @@ static int aaci_pcm_prepare(struct snd_pcm_substream *substream)
struct snd_pcm_runtime *runtime = substream->runtime;
struct aaci_runtime *aacirun = runtime->private_data;

aacirun->start = (void *)runtime->dma_area;
aacirun->start = runtime->dma_area;
aacirun->end = aacirun->start + snd_pcm_lib_buffer_bytes(substream);
aacirun->ptr = aacirun->start;
aacirun->period =
Expand Down

0 comments on commit 18fece4

Please sign in to comment.