📄 clocking.txt
字号:
Audio Clocking==============This text describes the audio clocking terms in ASoC and digital audio ingeneral. Note: Audio clocking can be complex!Master Clock------------Every audio subsystem is driven by a master clock (sometimes referred to as MCLKor 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.Some master clocks (e.g. PLL's 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).DAI Clocks----------The Digital Audio Interface is usually driven by a Bit Clock (often referred toas BCLK). This clock is used to drive the digital audio data across the linkbetween the codec and CPU.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).Bit Clock can be generated as follows:-BCLK = MCLK / x orBCLK = LRC * x orBCLK = LRC * Channels * Word SizeThis relationship depends on the codec or SoC CPU in particular. In generalit's best to configure BCLK to the lowest possible speed (depending on yourrate, number of channels and wordsize) to save on power.It's also desirable to use the codec (if possible) to drive (or master) theaudio clocks as it's usually gives more accurate sample rates than the CPU.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -