Merge branch 'asoc-omap' into for-3.7
This commit is contained in:
commit
75d8f2931a
647 changed files with 7170 additions and 5277 deletions
|
@ -383,14 +383,20 @@ static void mcasp_start_tx(struct davinci_audio_dev *dev)
|
|||
static void davinci_mcasp_start(struct davinci_audio_dev *dev, int stream)
|
||||
{
|
||||
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
|
||||
if (dev->txnumevt) /* enable FIFO */
|
||||
if (dev->txnumevt) { /* enable FIFO */
|
||||
mcasp_clr_bits(dev->base + DAVINCI_MCASP_WFIFOCTL,
|
||||
FIFO_ENABLE);
|
||||
mcasp_set_bits(dev->base + DAVINCI_MCASP_WFIFOCTL,
|
||||
FIFO_ENABLE);
|
||||
}
|
||||
mcasp_start_tx(dev);
|
||||
} else {
|
||||
if (dev->rxnumevt) /* enable FIFO */
|
||||
if (dev->rxnumevt) { /* enable FIFO */
|
||||
mcasp_clr_bits(dev->base + DAVINCI_MCASP_RFIFOCTL,
|
||||
FIFO_ENABLE);
|
||||
mcasp_set_bits(dev->base + DAVINCI_MCASP_RFIFOCTL,
|
||||
FIFO_ENABLE);
|
||||
}
|
||||
mcasp_start_rx(dev);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue