Thanks for your input. I will give it a try. Thanks Keqiao -----Original Message----- From: Takashi Iwai [mailto:tiwai@xxxxxxx] Sent: Tuesday, August 8, 2017 10:20 PM To: Zhang, Keqiao <keqiao.zhang@xxxxxxxxx> Cc: alsa-devel@xxxxxxxxxxxxxxxx; Girdwood, Liam R <liam.r.girdwood@xxxxxxxxx>; Keyon Jie <yang.jie@xxxxxxxxxxxxxxx> Subject: Re: XRUN support in alsabat On Tue, 08 Aug 2017 16:15:22 +0200, Zhang, Keqiao wrote: > > Hi Takashi and all, > > Sorry to bother you. I'm trying to get alsabat(alsa-utils:BAT) to > support XRUN for driver testing and there have been no effective > solutions on how to inject XRUN for playback or capture. So could you > give me some suggestions on this? Thanks in advance~ You can inject xrun by writing to a proc file, /proc/sound/card*/pcm*/sub*/xrun_injection, when CONFIG_SND_PCM_XRUN_DEBUG is set. Takashi _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel