fsl-asoc-card.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Freescale Generic ASoC Sound Card with ASRC support
  2. The Freescale Generic ASoC Sound Card can be used, ideally, for all Freescale
  3. SoCs connecting with external CODECs.
  4. The idea of this generic sound card is a bit like ASoC Simple Card. However,
  5. for Freescale SoCs (especially those released in recent years), most of them
  6. have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
  7. this is a specific feature that might be painstakingly controlled and merged
  8. into the Simple Card.
  9. So having this generic sound card allows all Freescale SoC users to benefit
  10. from the simplification of a new card support and the capability of the wide
  11. sample rates support through ASRC.
  12. Note: The card is initially designed for those sound cards who use AC'97, I2S
  13. and PCM DAI formats. However, it'll be also possible to support those non
  14. AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as
  15. long as the driver has been properly upgraded.
  16. The compatible list for this generic sound card currently:
  17. "fsl,imx-audio-ac97"
  18. "fsl,imx-audio-cs42888"
  19. "fsl,imx-audio-wm8962"
  20. (compatible with Documentation/devicetree/bindings/sound/imx-audio-wm8962.txt)
  21. "fsl,imx-audio-sgtl5000"
  22. (compatible with Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt)
  23. Required properties:
  24. - compatible : Contains one of entries in the compatible list.
  25. - model : The user-visible name of this sound complex
  26. - audio-cpu : The phandle of an CPU DAI controller
  27. - audio-codec : The phandle of an audio codec
  28. - audio-routing : A list of the connections between audio components.
  29. Each entry is a pair of strings, the first being the
  30. connection's sink, the second being the connection's
  31. source. There're a few pre-designed board connectors:
  32. * Line Out Jack
  33. * Line In Jack
  34. * Headphone Jack
  35. * Mic Jack
  36. * Ext Spk
  37. * AMIC (stands for Analog Microphone Jack)
  38. * DMIC (stands for Digital Microphone Jack)
  39. Note: The "Mic Jack" and "AMIC" are redundant while
  40. coexsiting in order to support the old bindings
  41. of wm8962 and sgtl5000.
  42. Optional properties:
  43. - audio-asrc : The phandle of ASRC. It can be absent if there's no
  44. need to add ASRC support via DPCM.
  45. Example:
  46. sound-cs42888 {
  47. compatible = "fsl,imx-audio-cs42888";
  48. model = "cs42888-audio";
  49. audio-cpu = <&esai>;
  50. audio-asrc = <&asrc>;
  51. audio-codec = <&cs42888>;
  52. audio-routing =
  53. "Line Out Jack", "AOUT1L",
  54. "Line Out Jack", "AOUT1R",
  55. "Line Out Jack", "AOUT2L",
  56. "Line Out Jack", "AOUT2R",
  57. "Line Out Jack", "AOUT3L",
  58. "Line Out Jack", "AOUT3R",
  59. "Line Out Jack", "AOUT4L",
  60. "Line Out Jack", "AOUT4R",
  61. "AIN1L", "Line In Jack",
  62. "AIN1R", "Line In Jack",
  63. "AIN2L", "Line In Jack",
  64. "AIN2R", "Line In Jack";
  65. };