1. 程式人生 > >linux音訊alsa驅動分析之二 時鐘

linux音訊alsa驅動分析之二 時鐘

  • 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 link
between the codec and CPU.
數字音訊介面往往是由一個位時鐘來驅動的(通常記為BCLK)。這個時鐘用於驅動數字音訊資料在解碼器與處理器間的傳輸。


The DAI also has a frame clock to signal the start of each audio frame. This
clock is sometimes referred to as LRC (left right clock) or FRAME. This clock
runs at exactly the sample rate (LRC = Rate).
數字音訊介面還有一個幀時鐘,用來指示一幀音訊的開始。該時鐘有時記為LRC(left right clock)或FRAME。該時鐘嚴格工作於取樣率上。

Bit Clock can be generated as follows:-
位時鐘可以有如下產生方式:


BCLK = MCLK / x

or

BCLK = LRC * x

or