Re: [PATCH] ALSA: pcm: Add xrun counter for snd_pcm_substream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 09 Aug 2024 16:06:45 +0200,
Norman Bintang wrote:
> 
> This patch adds an xrun counter to snd_pcm_substream as an alternative
> to using logs from XRUN_DEBUG_BASIC. The counter provides a way to track
> the number of xrun occurences, accessible through the /proc interface.
> 
> The counter is enabled when CONFIG_SND_PCM_XRUN_DEBUG is set.
> 
> Example output:
> 
> $ cat /proc/asound/card0/pcm9p/sub0/status
> 
> owner_pid   : 1425
> trigger_time: 235.248957291
> tstamp      : 0.000000000
> delay       : 1912
> avail       : 480
> avail_max   : 1920
> -----
> hw_ptr      : 672000
> appl_ptr    : 673440
> xrun_counter: 3  # (new row)
> 
> Signed-off-by: Norman Bintang <normanbt@xxxxxxxxxxxx>
> Reviewed-by: Chih-Yang Hsia <paulhsia@xxxxxxxxxxxx>
> Tested-by: Chih-Yang Hsia <paulhsia@xxxxxxxxxxxx>
> Reviewed-by: David Riley <davidriley@xxxxxxxxxxxx>

Applied to for-next branch.  Thanks.


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux