免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1562 | 回复: 0
打印 上一主题 下一主题

linux音频alsa-uda134x驱动分析之二(时钟) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-09 10:47 |只看该作者 |倒序浏览
Audio Clocking[color="Red"]音频时钟==============This text describes the audio clocking terms in ASoC and digital audio ingeneral. Note: Audio clocking can be complex![color="Red"]本文本总体描述ASoC和数字音频中的音频时钟条款。[color="#FF0000"]Note:Audio Clock 是一个很复杂的东东Master Clock[color="Red"]主时钟------------Every audio subsystem is driven by a master clock (sometimes referred to as MCLK or SYSCLK). This audio master clock can be derived from a number of sources (e.g. crystal, PLL, CPU clock) and is responsible for producing the correctaudio playback and capture sample rates.[color="Red"]每个数字音频子系统都是由主时钟来驱动的(有时称为MCLK或SYSCLK)。音频主时钟可以派生于多种源(如晶振,锁相环,处理器时钟)。负责产生正确的音频播放和捕获采样率。Some master clocks (e.g. PLLs and CPU based clocks) are configurable in thattheir speed can be altered by software (depending on the system use and to savepower). Other master clocks are fixed at a set frequency (i.e. crystals).[color="Red"]有些主时钟是可配置的(如基于锁相环或处理器的时钟),它们可以通过软件改变速度(依赖于系统应用和省电的考虑)。另一些主时钟则是固定于一个特定的频率值(如晶振)。[color="#FF0000"]
  • 主时钟驱动
  • 主时钟可配置
  • 可通过软件控制以达到省电的目的
[color="Red"]
数字音频时钟----------
  • DAI 通过位时钟BCLK驱动
  • DAI 也通过帧时钟驱动
  • 帧时钟 LRC 或者 frame。
  • 帧时钟和采样率是一样的
The Digital Audio Interface is usually driven by a Bit Clock (often referred as BCLK). This clock is used to drive the digital audio data across the linkbetween the codec and CPU.[color="Red"]数字音频接口往往是由一个位时钟来驱动的(通常记为BCLK)。这个时钟用于驱动数字音频数据在解码器与处理器间的传输。The DAI also has a frame clock to signal the start of each audio frame. Thisclock is sometimes referred to as LRC (left right clock) or FRAME. This clockruns at exactly the sample rate (LRC = Rate).[color="Red"]数字音频接口还有一个帧时钟,用来指示一帧音频的开始。该时钟有时记为LRC(left right clock)或FRAME。该时钟严格工作于采样率上。Bit Clock can be generated as follows:-[color="Red"]位时钟可以有如下产生方式:BCLK = MCLK / xorBCLK = LRC * xor
BCLK = LRC * Channels * Word SizeThis relationship depends on the codec or SoC CPU in particular. In generalit is best to configure BCLK to the lowest possible speed (depending on yourrate, number of channels and word size) to save on power.[color="Red"]这个关系依赖于解码器,特别是板上处理器。大体上讲,最好将位时钟尽可能低速(取决于你的采样率,通道数和字长)以省电。It is also desirable to use the codec (if possible) to drive (or master) theaudio clocks as it usually gives more accurate sample rates than the CPU.[color="Red"]可能的话,最好使用解码器来驱动(或控制)音频时钟,因为通常它给出的采样率比处理器更精确。
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/111072/showart_2180569.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP