Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332156
b: refs/heads/master
c: e7736cd
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Takashi Iwai committed Sep 24, 2012
1 parent e4a76f9 commit b02048d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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: 9d069dc00b02b886abe3cab5e369140f7cd78965
refs/heads/master: e7736cdea223f3a5b867c359fb35cf08250dd771
3 changes: 2 additions & 1 deletion trunk/include/linux/dmaengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_rio_sg(

static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_cyclic(
struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
size_t period_len, enum dma_transfer_direction dir)
size_t period_len, enum dma_transfer_direction dir,
unsigned long flags)
{
return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len,
period_len, dir, flags, NULL);
Expand Down
6 changes: 5 additions & 1 deletion trunk/sound/soc/soc-dmaengine-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,18 @@ static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
struct dma_chan *chan = prtd->dma_chan;
struct dma_async_tx_descriptor *desc;
enum dma_transfer_direction direction;
unsigned long flags = DMA_CTRL_ACK;

direction = snd_pcm_substream_to_dma_direction(substream);

if (!substream->runtime->no_period_wakeup)
flags |= DMA_PREP_INTERRUPT;

prtd->pos = 0;
desc = dmaengine_prep_dma_cyclic(chan,
substream->runtime->dma_addr,
snd_pcm_lib_buffer_bytes(substream),
snd_pcm_lib_period_bytes(substream), direction);
snd_pcm_lib_period_bytes(substream), direction, flags);

if (!desc)
return -ENOMEM;
Expand Down

0 comments on commit b02048d

Please sign in to comment.