Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
OS: Android 6.0
Kernel: 3.10.92
之前有提到上层可以通过dump pcm数据查看波形来确定录音采样的数据是否正常,这里给出驱动层查看方法。
http://blog.csdn.net/kris_fei/article/details/72763579
static void dmaengine_pcm_dma_complete(void *arg)
{
struct snd_pcm_substream *substream = arg;
struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
//本文件中被undef了,要自己打开。
#ifdef CONFIG_ARCH_ROCKCHIP
if(debug_audio_timeout){
struct snd_pcm_runtime *runtime = substream->runtime;
static ktime_t before = {0},after = {0};
s64 t