Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83
需求:
当前默认一个普通的codec已经无法满足需求了,如回声消除,降噪,唤醒等功能。
RK3399平台的I2S0通道提供最高8路通道录音支持。如果拿到一个麦克阵列,那么可以添加到此路通道上。
I2S1就接普通codec.
代码实现:
firefly平台也有对应的实现,可参考。
这部分代码是由rockchip罗工实现,感谢他,也让我对audio有了进一步了解。
/*
* rk_pcm_codec.c -- Rockchip PCM codecs driver
*
* Copyright (c) 2016, ROCKCHIP CORPORATION. All rights reserved.
* Author: Xiaotan Luo <lxt@rock-chips.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See