1,484
社区成员




如何dump出SW处理的标准输出(AudioHardware)节点的pcm数据?
adb root
adb remount
adb shell
cd /data/xxx.pcm –> 进入代码中创建dump文件的位置。
touch xxx.dump –> 创建dump文件,文件名和代码中必须保持一致。
添加下述patch到代码中
make编译相应的库audio.primary.msmxxxx.so,然后push到手机
adb reboot
复现问题
adb pull /data/xxx.pcm 本地目录(注:如果selinux导致文件不存在,需要解除selinux,解除命令为:adb shell进入系统,getenforce,setenforce 0即打开了权限)
利用 Audition/CoolEdit 听 dump 出来的 pcm 文件看是否有杂音/断续,如果已经有杂音/断续,说明在送入 dsp 之前问题就存在,可能需要软件先看一下。