![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
alsa
文章平均质量分 80
9527号缘
这个作者很懒,什么都没留下…
展开
-
ALsa Control 从上层到驱动的详解
alsa_control_interface控制接口对于许多开关(switch)和调节器(slider)应用广泛,它能被用户空间存取,从而读写CODEC相关寄存器alsa的架构是清晰了,但是一直不明白,alsa的控制接口是如何被上层调用的staticint wm8903_probe(struct platform_device *pdev){struct转载 2014-11-16 22:34:18 · 944 阅读 · 0 评论 -
PCM data flow之二:Frames and Periods
在开始之前,我们先了解下关于PCM数据的几个重要概念:Sample:样本长度,音频数据最基本的单位,常见的有8位和16位。Channel:声道数,分为单声道mono和立体声stereo。Frame:帧,构成一个声音单元,Frame = Sample * channel。Rate:又称Sample rate,采样率,即每秒的采样次数,针对帧而言。Interleaved:交错模式,转载 2015-10-10 19:39:22 · 1330 阅读 · 0 评论 -
PCM data flow之一:概述
音频驱动主要有三部分组成:1、 Platform:通常指某款SoC平台,如exynos、omap等等。Platform又可细分两部分:1.1、CPU DAI:在嵌入式系统里面通常指CPU的I2S、PCM总线接口,负责将音频数据从AIF FIFO搬运到CODEC(Playback的情形,Capture则方向相反)。CPU DAI通过snd_soc_register_dai()来注册。注:DA转载 2015-10-10 19:38:15 · 1180 阅读 · 0 评论 -
内核ASoC之path
ASoC的DAPM是怎么做到需要用户空间参与功耗最小的呢?以codec为例,它运行时的功耗 主要取决于:1. codec供电电压越低,功耗越低; 2. 将codec中没有使用的部件widget下电禁用。第1点和硬件设计有关,第2点就是DAPM最重要的工作内容了。那它是怎么做 到呢?widget与path下图是WM8750的框图。如上图,speaker右声道播放音频流时,流经与D转载 2015-09-10 19:56:51 · 630 阅读 · 0 评论 -
内核ALSA简览
“Being abstract is something profoundly different from being vague… The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise.” – Edsger转载 2015-09-09 16:45:08 · 738 阅读 · 0 评论 -
内核Alsa之ASoC
ASoC是Alsa System on Chip的缩写,用于实现那些集成了声音控制器 的CPU,像移动设备中的arm/mips/atom等。它的设计目标如下:解耦codec. codec的驱动不依赖具体的平台。简单易用的I2S/PCM配置接口。让soc和codec的配置相匹配。动态的电源管理DAPM。实现对用户空间透明的电源管理,各个widget按需供电,实现功耗最小化。消除pop音。控制转载 2015-09-09 17:07:42 · 825 阅读 · 0 评论 -
ALSA 用户空间之 TinyAlsa
“Of course you can just use it as a tool, but some people are interested in how it works, and want to change it, and it’s not doesn’t have to be just a tool.” – Dr. Seymour PapertTinyAlsa是 Android转载 2015-09-08 16:14:21 · 1324 阅读 · 0 评论 -
qualcomm Audio Code Structure
Audio code structure1.User space audio codeThe following is a list of directory paths in the user space where the code related to audio is located for the debugging and customization:转载 2015-04-24 17:49:04 · 5120 阅读 · 0 评论 -
How to verify the Playback/Recording on WCD9330 Codec using tinymix commands
1. PCM playback over Differential Stereo Speaker Device a. Enable adb shell "tinymix 'SLIM RX1 MUX' 'AIF1_PB'"adb shell "tinymix 'SLIM RX2 MUX' 'AIF1_PB'"adb shell "tinymix 'SLIM_0_RX Chan转载 2015-04-24 16:59:56 · 3175 阅读 · 0 评论 -
ALSA声音编程介绍
这里了解一下各个参数的含义以及一些基本概念。样本长度(sample):样本是记录音频数据最基本的单位,常见的有8位和16位。通道数(channel):该参数为1表示单声道,2则是立体声。桢(frame):桢记录了一个声音单元,其长度为样本长度与通道数的乘积。采样率(rate):每秒钟采样次数,该次数是针对桢而言。周期(period):音频设备一次处理所需要的桢数,对于音频设备的转载 2015-10-12 18:31:30 · 1266 阅读 · 0 评论