Advertisement
zmatt

simple audio card dts example

Oct 25th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. / {
  2.     sound {
  3.         compatible = "simple-audio-card";
  4.         simple-audio-card,name = "DSP";
  5.  
  6.         // "off-codec widgets"
  7.         // simple-audio-card,widgets { };
  8.  
  9.         // simple-audio-card,routing { };
  10.  
  11.         // if mclk-fs is set then:
  12.         //  - cpu is sysclk master
  13.         //  - sysclk is dynamically configured to mclk-fs * fs
  14.         // so this is almost never what you want!
  15.         // simple-audio-card,mclk-fs = <..>;
  16.  
  17.         simple-audio-card,dai-link@0 {
  18.             format = "i2s";
  19.             frame-master = <&audio_master>;
  20.             bitclock-master = <&audio_master>;
  21.  
  22. #if AUDIO_MASTER
  23.             audio_master: cpu {
  24.                 sound-dai = <&mcasp0>;
  25.                 clocks = <&audio_osc_ck>;
  26.             };
  27.  
  28.             codec {
  29.                 sound-dai = <&codec>;
  30.             };
  31. #else
  32.             cpu {
  33.                 sound-dai = <&mcasp0>;
  34.             };
  35.  
  36.             audio_master: codec {
  37.                 sound-dai = <&codec>;
  38.                 clocks = <&audio_osc_ck>;
  39.             };
  40. #endif
  41.         };
  42.     };
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement