DAI.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ASoC currently supports the three main Digital Audio Interfaces (DAI) found on
  2. SoC controllers and portable audio CODECs today, namely AC97, I2S and PCM.
  3. AC97
  4. ====
  5. AC97 is a five wire interface commonly found on many PC sound cards. It is
  6. now also popular in many portable devices. This DAI has a reset line and time
  7. multiplexes its data on its SDATA_OUT (playback) and SDATA_IN (capture) lines.
  8. The bit clock (BCLK) is always driven by the CODEC (usually 12.288MHz) and the
  9. frame (FRAME) (usually 48kHz) is always driven by the controller. Each AC97
  10. frame is 21uS long and is divided into 13 time slots.
  11. The AC97 specification can be found at :-
  12. http://www.intel.com/p/en_US/business/design
  13. I2S
  14. ===
  15. I2S is a common 4 wire DAI used in HiFi, STB and portable devices. The Tx and
  16. Rx lines are used for audio transmission, whilst the bit clock (BCLK) and
  17. left/right clock (LRC) synchronise the link. I2S is flexible in that either the
  18. controller or CODEC can drive (master) the BCLK and LRC clock lines. Bit clock
  19. usually varies depending on the sample rate and the master system clock
  20. (SYSCLK). LRCLK is the same as the sample rate. A few devices support separate
  21. ADC and DAC LRCLKs, this allows for simultaneous capture and playback at
  22. different sample rates.
  23. I2S has several different operating modes:-
  24. o I2S - MSB is transmitted on the falling edge of the first BCLK after LRC
  25. transition.
  26. o Left Justified - MSB is transmitted on transition of LRC.
  27. o Right Justified - MSB is transmitted sample size BCLKs before LRC
  28. transition.
  29. PCM
  30. ===
  31. PCM is another 4 wire interface, very similar to I2S, which can support a more
  32. flexible protocol. It has bit clock (BCLK) and sync (SYNC) lines that are used
  33. to synchronise the link whilst the Tx and Rx lines are used to transmit and
  34. receive the audio data. Bit clock usually varies depending on sample rate
  35. whilst sync runs at the sample rate. PCM also supports Time Division
  36. Multiplexing (TDM) in that several devices can use the bus simultaneously (this
  37. is sometimes referred to as network mode).
  38. Common PCM operating modes:-
  39. o Mode A - MSB is transmitted on falling edge of first BCLK after FRAME/SYNC.
  40. o Mode B - MSB is transmitted on rising edge of FRAME/SYNC.