随笔分类 - Linux音频相关
摘要:参考:https://blog.csdn.net/haohenghai/article/details/24255451 alsa-lib如何解析asound.conf https://www.xuebuyuan.com/1043778.html 一.打开代码流程分析 无论是在录音还是在放音,都要打
阅读全文
摘要:参考: https://blog.csdn.net/tronteng/article/details/7355977 当一个widget的状态改变后,该widget会被加入dapm_dirty链表,然后通过dapm_power_widgets函数来改变整个音频路径上的电源状态 一.dapm触发的情况
阅读全文
摘要:参考: https://blog.csdn.net/u013531497/article/details/48290195 http://www.echojb.com/hardware/2016/12/21/283392.htm https://blog.csdn.net/droidphone/ar
阅读全文
摘要:一.Tinycap分析使用命令:tinycap /sdcard/test.wav -D card0 -d device0 -c 2 -r 48000 -b 16 -p 1024 -n 16Tinycap.c (external\tinyalsa)录音流程: #define ID_RIFF 0x464
阅读全文
摘要:一.tinymix调用,主要是控制接口,调用到底层的control操作方法:tinymix 0 SPKTinymix.c (external\tinyalsa)int main(int argc, char **argv) mixer = mixer_open(card); snprintf(fn,
阅读全文
摘要:一.tinyplay播放操作命令:tinyplay /sdcard/test.wavTinyplay.c (external\tinyalsa) file = fopen(filename, "rb"); //对应的音频文件 fread(&riff_wave_header, sizeof(riff_
阅读全文
摘要:Rk_i2s.c (sound\soc\rockchip) 1.入口函数subsys_initcall_sync(rockchip_i2s_init); //在module_init前面加载i2s1: i2s1@100b0000 { compatible = "rockchip-i2s"; reg
阅读全文
摘要:Es8323.c (sound\soc\codecs) 1.入口函数dts里面 status = "okay"; es8323: es8323@11 { status = "okay"; compatible = "es8323"; reg = <0x11>; pa-en1 = <&gpio1 GP
阅读全文
摘要:找到突破口,machine相关代码,因为它是连接platform和codec的桥梁 Rk_es8323.c (sound\soc\rockchip) 一.入口函数: 1.重要结构体 static const struct of_device_id rockchip_es8323_of_match[]
阅读全文
摘要:一.耳机的基本知识 1.手机全部使用了标准的3.5mm接口,对于一款采用3段式3.5mm接口的耳机来说是不存在兼容问题了,但采用四段式的线控耳机仍旧是有不兼容情况。常见的三段式接口叫做TRS端子,四段式为TRRS端子 2. 智能手机所使用四段式的3.5mm TRRS端子是有两种接口定义标准的,OMT
阅读全文

浙公网安备 33010602011771号