Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120206
b: refs/heads/master
c: 2bef901
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Nov 14, 2008
1 parent 250b260 commit 4777365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 0b6048561d5f505e3a027a519a6d0f488ba9a2bb
refs/heads/master: 2bef901071448e0c86af8edb4797cd5f81b6240d
12 changes: 4 additions & 8 deletions trunk/sound/soc/s3c24xx/s3c24xx-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,15 @@ struct s3c24xx_runtime_data {
* place a dma buffer onto the queue for the dma system
* to handle.
*/
static void s3c24xx_pcm_enqueue(struct snd_pcm_substream *substream,
int dma_max)
static void s3c24xx_pcm_enqueue(struct snd_pcm_substream *substream)
{
struct s3c24xx_runtime_data *prtd = substream->runtime->private_data;
dma_addr_t pos = prtd->dma_pos;
int ret;

DBG("Entered %s\n", __func__);

if (!dma_max)
dma_max = prtd->dma_limit;

while (prtd->dma_loaded < dma_max) {
while (prtd->dma_loaded < prtd->dma_limit) {
unsigned long len = prtd->dma_period;

DBG("dma_loaded: %d\n", prtd->dma_loaded);
Expand Down Expand Up @@ -136,7 +132,7 @@ static void s3c24xx_audio_buffdone(struct s3c2410_dma_chan *channel,
spin_lock(&prtd->lock);
if (prtd->state & ST_RUNNING) {
prtd->dma_loaded--;
s3c24xx_pcm_enqueue(substream, 0);
s3c24xx_pcm_enqueue(substream);
}

spin_unlock(&prtd->lock);
Expand Down Expand Up @@ -253,7 +249,7 @@ static int s3c24xx_pcm_prepare(struct snd_pcm_substream *substream)
prtd->dma_pos = prtd->dma_start;

/* enqueue dma buffers */
s3c24xx_pcm_enqueue(substream, 1);
s3c24xx_pcm_enqueue(substream);

return ret;
}
Expand Down

0 comments on commit 4777365

Please sign in to comment.