[Sound-open-firmware] [PATCH] FIX: Add dma_stop when receive trigger stop cmd in host

Pan, Xiuli xiuli.pan at linux.intel.com
Wed May 2 15:09:49 CEST 2018



On 5/2/2018 18:11, Liam Girdwood wrote:
> On Wed, 2018-05-02 at 09:56 +0000, Jie, Yang wrote:
>>> -----Original Message-----
>>> From: sound-open-firmware-bounces at alsa-project.org [mailto:sound-open-
>>> firmware-bounces at alsa-project.org] On Behalf Of Wu Zhigang
>>> Sent: Wednesday, May 2, 2018 5:34 PM
>>> To: sound-open-firmware at alsa-project.org
>>> Cc: Wu Zhigang <zhigang.wu at linux.intel.com>; Wu, Zhigang
>>> <zhigang.wu at intel.com>
>>> Subject: [Sound-open-firmware] [PATCH] FIX: Add dma_stop when receive
>>> trigger
>>> stop cmd in host
>>>
>>> when ALSA lib detect xrun issue, it will send stop and start command to DSP
>>> without reset. it will hit error in hds_dma_start, if we did not add the
>>> dma_stop in
>> Small typo. Should be 'hda_dma_start'.
>>
>> Others looks good to me.
>>
>>
> Can someone confirm on BYT too.
BYT did not need this handler. The host dma for BYT is also GP-DMA and 
need to assign the DMA every host copy. When we trigger the host comp 
stop, there will no more host DMA.
This problem is only shown on the APL/CNL platforms.

BTW, this bug is hit by the ALSA pcm lib xrun recovery. When ALSA trace 
the dma pointer position, it will wrongly though the DSP is in xrun and 
try to recover it by STOP/START pattern.
Will the DSP be recovered from this kind of STOP/START?

Thanks
Xiuli
> Thanks
>
> Liam
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> _______________________________________________
> Sound-open-firmware mailing list
> Sound-open-firmware at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware



More information about the Sound-open-firmware mailing list