[PATCH v4] Sound: PXA: Fix settings of PXAxxx DMA

Daniel Mack daniel at zonque.org
Thu Jan 29 03:05:14 PST 2015


On 01/29/2015 12:02 PM, Daniel Mack wrote:
> On 01/29/2015 11:58 AM, Petr Cvek wrote:
>> Fix PXA DMA autoincrementation, so capture will not use playback settings
>> (incrementation in register space instead in target buffer).
>>
>> Signed-off-by: Petr Cvek <petr.cvek at tul.cz>
> 
> Yes, that's actually a regression from d65a14587 ("ASoC: pxa: use
> snd_dmaengine_dai_dma_data"). Your fix seems right to me, thanks for
> spotting this.
> 
> Acked-by: Daniel Mack <daniel at zonque.org>

However, as this should go through the ASoC tree, please make sure to
Cc: its maintainers.

Mark, do you need a resend of this patch?


Thanks,
Daniel

> 
> 
> Daniel
> 
>> ---
>>  sound/arm/pxa2xx-pcm-lib.c | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c
>> index 01f8fdc..f8ca3ca 100644
>> --- a/sound/arm/pxa2xx-pcm-lib.c
>> +++ b/sound/arm/pxa2xx-pcm-lib.c
>> @@ -45,7 +45,12 @@ int __pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
>>  	size_t period = params_period_bytes(params);
>>  	pxa_dma_desc *dma_desc;
>>  	dma_addr_t dma_buff_phys, next_desc_phys;
>> -	u32 dcmd = DCMD_INCSRCADDR | DCMD_FLOWTRG;
>> +	u32 dcmd = 0;
>> +
>> +	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
>> +		dcmd = DCMD_INCSRCADDR | DCMD_FLOWTRG;
>> +	else
>> +		dcmd = DCMD_INCTRGADDR | DCMD_FLOWSRC;
>>  
>>  	/* temporary transition hack */
>>  	switch (rtd->params->addr_width) {
>>
> 




More information about the linux-arm-kernel mailing list