[RK3399][Android7.1] 调试笔记 --- 虚拟声卡驱动添加

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
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值