XRUN Debug
来源:互联网 发布:自定义端口号范围 编辑:程序博客网 时间:2024/06/13 12:20
This page describes the build-in ALSA driver tool to debug PCM ring buffer positions.
/proc/asound/card#/pcm0p/xrun_debug
Replace '#' with your card number (usually 0). This proc file can enable various debugging tools. The CONFIG_SND_PCM_XRUN_DEBUG, CONFIG_SND_VERBOSE_PROCFS, CONFIG_SND_DEBUG options must be enabled in your kernel (if xrun_debug proc file is present - this feature is enabled).
1 Basic debugging - show xruns in ksyslog interface 2 Dump stack - dump stack for basic debugging 4 Jiffies check - compare the position with kernel jiffies (a sort of in-kernel monotonic clock), show what's changed when basic debugging is enabled 8 Dump positions on each period update call 16 Dump positions on each hardware pointer update call 32 Enable logging of last 10 ring buffer positions 64 Show the last 10 ring buffer position only once (when first error situation occured)
To enable more features just do sum values of above (for example 1+2=3).
Some good value combinations:
# Enable basic debugging and dump stack # Usefull to just see, if PCM stream is stopped for a reason (usually wrong audio process timing from scheduler) echo 3 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging and dump stack, check hardware pointer on the period update # Usefull to just see, if PCM stream is stopped for a reason (usually wrong audio process timing from scheduler) # And to check the values from driver echo 11 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging and dump stack, check hardware pointer on all updates # Usefull to just see, if PCM stream is stopped for a reason (usually wrong audio process timing from scheduler) # And to do the exact check the values from driver echo 27 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging, do jiffies check and enable one shot dump of last 10 ring buffer positions # Usefull, when the position is broken only after some of time (to reduce ksyslog messages) echo 101 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging, do jiffies check and dump position on each period and hardware pointer update calls # Usefull when the lowlevel (specific) hardware driver is somehow broken echo 29 > /proc/asound/card0/pcm0p/xrun_debug
0 0
- XRUN DEBUG
- XRUN Debug
- iOS开发 - Xcode使用 - xb、xRun
- 对Audio Xrun的一点了解
- mac 安装gcc,提示missing xrun的处理办法
- DEBUG
- debug
- DEBUG
- debug
- debug
- debug
- DEBUG
- Debug
- Debug
- debug
- debug
- DEBUG
- debug
- java.util.concurrent 并发框架,异步执行器 Executor
- svn主备实现
- Android Studio 出现 Error: NDK integration is deprecated in the current plugin.
- Android的消息机制
- mybatis分页的实现(mysql)
- XRUN Debug
- 如何终止java线程
- PS教程:如何设计整洁的页面布局与漂亮的背景
- 排序和查找-计数排序(Counting Sort)
- java的Calendar类
- ASP.NET MVC ActionResult的其它返回值
- 产品经理工作日记
- 应该怎样理解<T extends Comparable<? super T>>
- 可拖拽 GridView