Re: [PATCH] ASoC: atmel-pcm-dma: won't check direction when configure dma
On Mon, Feb 02, 2015 at 02:44:46PM +0800, Bo Shen wrote: > As DMA framework request DMA using direction only in prep_slave > function, (The At91 xdma driver has adapted to this request). > So won't check direction when do DMA configuration. Applied, thanks. signature.asc Description: Digital signature
Re: [PATCH] ASoC: atmel-pcm-dma: won't check direction when configure dma
On Mon, Feb 02, 2015 at 02:44:46PM +0800, Bo Shen wrote: As DMA framework request DMA using direction only in prep_slave function, (The At91 xdma driver has adapted to this request). So won't check direction when do DMA configuration. Applied, thanks. signature.asc Description: Digital signature
[PATCH] ASoC: atmel-pcm-dma: won't check direction when configure dma
As DMA framework request DMA using direction only in prep_slave function, (The At91 xdma driver has adapted to this request). So won't check direction when do DMA configuration. Signed-off-by: Bo Shen --- sound/soc/atmel/atmel-pcm-dma.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sound/soc/atmel/atmel-pcm-dma.c b/sound/soc/atmel/atmel-pcm-dma.c index 33fb3bb..b8e7bad 100644 --- a/sound/soc/atmel/atmel-pcm-dma.c +++ b/sound/soc/atmel/atmel-pcm-dma.c @@ -105,13 +105,11 @@ static int atmel_pcm_configure_dma(struct snd_pcm_substream *substream, return ret; } - if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { - slave_config->dst_addr = ssc->phybase + SSC_THR; - slave_config->dst_maxburst = 1; - } else { - slave_config->src_addr = ssc->phybase + SSC_RHR; - slave_config->src_maxburst = 1; - } + slave_config->dst_addr = ssc->phybase + SSC_THR; + slave_config->dst_maxburst = 1; + + slave_config->src_addr = ssc->phybase + SSC_RHR; + slave_config->src_maxburst = 1; prtd->dma_intr_handler = atmel_pcm_dma_irq; -- 2.3.0.rc0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] ASoC: atmel-pcm-dma: won't check direction when configure dma
As DMA framework request DMA using direction only in prep_slave function, (The At91 xdma driver has adapted to this request). So won't check direction when do DMA configuration. Signed-off-by: Bo Shen voice.s...@atmel.com --- sound/soc/atmel/atmel-pcm-dma.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sound/soc/atmel/atmel-pcm-dma.c b/sound/soc/atmel/atmel-pcm-dma.c index 33fb3bb..b8e7bad 100644 --- a/sound/soc/atmel/atmel-pcm-dma.c +++ b/sound/soc/atmel/atmel-pcm-dma.c @@ -105,13 +105,11 @@ static int atmel_pcm_configure_dma(struct snd_pcm_substream *substream, return ret; } - if (substream-stream == SNDRV_PCM_STREAM_PLAYBACK) { - slave_config-dst_addr = ssc-phybase + SSC_THR; - slave_config-dst_maxburst = 1; - } else { - slave_config-src_addr = ssc-phybase + SSC_RHR; - slave_config-src_maxburst = 1; - } + slave_config-dst_addr = ssc-phybase + SSC_THR; + slave_config-dst_maxburst = 1; + + slave_config-src_addr = ssc-phybase + SSC_RHR; + slave_config-src_maxburst = 1; prtd-dma_intr_handler = atmel_pcm_dma_irq; -- 2.3.0.rc0 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/