Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335636
b: refs/heads/master
c: f55f147
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Nov 2, 2012
1 parent 009bc4b commit 94f33ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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: 9f4c3f1cde541d477633479a0203ef8a834ee5f9
refs/heads/master: f55f14752ecaccf7d6a52fd13929b73fcb191f19
16 changes: 12 additions & 4 deletions trunk/sound/soc/mxs/mxs-saif.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,16 +523,24 @@ static int mxs_saif_trigger(struct snd_pcm_substream *substream, int cmd,

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
/*
* write a data to saif data register to trigger
* the transfer
* write data to saif data register to trigger
* the transfer.
* For 24-bit format the 32-bit FIFO register stores
* only one channel, so we need to write twice.
* This is also safe for the other non 24-bit formats.
*/
__raw_writel(0, saif->base + SAIF_DATA);
__raw_writel(0, saif->base + SAIF_DATA);
} else {
/*
* read a data from saif data register to trigger
* the receive
* read data from saif data register to trigger
* the receive.
* For 24-bit format the 32-bit FIFO register stores
* only one channel, so we need to read twice.
* This is also safe for the other non 24-bit formats.
*/
__raw_readl(saif->base + SAIF_DATA);
__raw_readl(saif->base + SAIF_DATA);
}

master_saif->ongoing = 1;
Expand Down

0 comments on commit 94f33ce

Please sign in to comment.