linux音頻alsa-uda134x驅動文檔閱讀之二(時鐘)

來源:互聯網
上載者:User

轉自:http://blog.chinaunix.net/uid-22917448-id-1765503.html


Audio Clocking
音頻時鐘
==============

This text describes the audio clocking terms in ASoC and digital audio in
general. Note: Audio clocking can be complex!
本文本總體描述ASoC和數字音頻中的音頻時鐘條款。

Master Clock
主時鐘
------------

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 correct
audio playback and capture sample rates.
每個數字音頻子系統都是由主時鐘來驅動的(有時稱為MCLK或SYSCLK)。音頻主時鐘可以派生於多種源(如晶振,鎖相環,處理器時鐘)。負責產生正確的音頻播放和捕獲採樣率。

Some master clocks (e.g. PLLs and CPU based clocks) are configurable in that
their speed can be altered by software (depending on the system use and to save
power). 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 to
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

BCLK = LRC * Channels * Word Size

This relationship depends on the codec or SoC CPU in particular. In general
it is best to configure BCLK to the lowest possible speed (depending on your
rate, number of channels and word size) to save on power.
這個關係依賴於解碼器,特別是板上處理器。大體上講,最好將位時鐘儘可能低速(取決於你的採樣率,通道數和字長)以省電。

It is also desirable to use the codec (if possible) to drive (or master) the
audio clocks as it usually gives more accurate sample rates than the CPU.
可能的話,最好使用解碼器來驅動(或控制)音頻時鐘,因為通常它給出的採樣率比處理器更精確。

君子注:
您現在所閱讀的,是君子閱讀Linux音頻SoC驅動時,寫下的文檔譯文。
君子寫些譯文,一方面是作為自己的筆記,協助記憶,另一方面也希望能對他人有所協助。
如果您能於君子的譯文中有所收穫,則吾心甚慰。
所有這幾個文檔原文,是見於linux-2.6.30/Documentation/sound/alsa/soc目錄下的全部內容。
由於君子對音頻方面的內容瞭解也不多,很多地方我自己也不理解,只是照著原文生硬的譯出來。
其中錯誤願來來訪者之賓不吝指正。
張君再拜.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.