1.打开kernel log
echo -n "file q6afe.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file q6asm.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file q6adm.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file msm-pcm-routing-v2.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file msm-dai-q6-v2.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file soc-compress.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file soc-dapm.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file soc-pcm.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file soc-core.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file msm8952.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file msm8x16-wcd.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file pcm_lib.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file pcm.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file pcm_native.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file compress_offload.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file msm8952-slimbus.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file q6voice.c +p" > /sys/kernel/debug/dynamic_debug/control
echo -n "file msm-pcm-voice-v2.c +p" > /sys/kernel/debug/dynamic_debug/control
//抓取log
# adb shell cat /proc/kmsg | tee kernel.log