|
| 1 | +scale max 800 height |
| 2 | + |
| 3 | +skinparam rectangle { |
| 4 | + backgroundColor<<dai>> #6fccdd |
| 5 | + backgroundColor<<dma>> #f6ed80 |
| 6 | + backgroundColor<<stream>> #d6d6de |
| 7 | + borderColor<<stream>> #d6d6de |
| 8 | + borderColor<<ppl>> #a1a1ca |
| 9 | + |
| 10 | + backgroundColor<<event>> #f05772 |
| 11 | + stereotypeFontColor<<event>> #ffffff |
| 12 | + fontColor<<event>> #ffffff |
| 13 | + |
| 14 | + backgroundColor<<cpu>> #f0f0f0 |
| 15 | +} |
| 16 | + |
| 17 | +together { |
| 18 | + ' ssp dais |
| 19 | + rectangle "ssp-dai #0" as ssp_0 <<dai>> |
| 20 | + rectangle "ssp-dai #1" as ssp_1 <<dai>> |
| 21 | + ' hda dais |
| 22 | + rectangle "hda-dai #0" as hda_0 <<dai>> |
| 23 | +} |
| 24 | + |
| 25 | +rectangle "core #0" <<cpu>> { |
| 26 | + |
| 27 | + together { |
| 28 | + rectangle "hda-dma\nhost output #0" as hda_dma_ho_0 <<dma>> |
| 29 | + rectangle "hda-dma\nhost input #0" as hda_dma_hi_0 <<dma>> |
| 30 | + } |
| 31 | + together { |
| 32 | + rectangle "dw-dma #0" as dw_dma_0 <<dma>> |
| 33 | + rectangle "dw-dma #1" as dw_dma_1 <<dma>> |
| 34 | + } |
| 35 | + |
| 36 | + rectangle "playback #0" <<stream>> { |
| 37 | + |
| 38 | + rectangle "ppl #0" as ppl_0 <<ppl>> { |
| 39 | + rectangle "host comp" as host_0 |
| 40 | + rectangle "vol" as vol_0 |
| 41 | + rectangle "mix-in" as mix_in_0 |
| 42 | + |
| 43 | + host_0 --> vol_0 |
| 44 | + vol_0 --> mix_in_0 |
| 45 | + } |
| 46 | + |
| 47 | + rectangle "ppl #1" as ppl_1 <<ppl>> { |
| 48 | + rectangle "mix-out" as mix_out_1 |
| 49 | + rectangle "dai comp" as dai_1 |
| 50 | + |
| 51 | + mix_out_1 --> dai_1 |
| 52 | + } |
| 53 | + mix_in_0 --> mix_out_1 |
| 54 | + } |
| 55 | + hda_dma_ho_0 --> host_0 |
| 56 | + |
| 57 | + dai_1 --> dw_dma_0 |
| 58 | + dw_dma_0 --> ssp_0 |
| 59 | + |
| 60 | + rectangle "capture #0" <<stream>> { |
| 61 | + rectangle "ppl #3" as ppl_3 <<ppl>> { |
| 62 | + rectangle "host comp" as host_3 |
| 63 | + rectangle "dai comp" as dai_3 |
| 64 | + host_3 <-- dai_3 |
| 65 | + } |
| 66 | + } |
| 67 | + hda_dma_hi_0 <-- host_3 |
| 68 | + dai_3 <-- dw_dma_1 |
| 69 | + dw_dma_1 <-- ssp_1 |
| 70 | + |
| 71 | + ' now let's show who's driving |
| 72 | + rectangle "work queue #0\n@core_0" as wq_0 <<event>> |
| 73 | + wq_0 .[#green]> mix_in_0 |
| 74 | + wq_0 .[#green]> dw_dma_0 : new |
| 75 | + wq_0 .[#green]> dw_dma_1 : new |
| 76 | +} |
| 77 | + |
| 78 | +rectangle "core #1" <<cpu>> { |
| 79 | + |
| 80 | + rectangle "hda-dma\nhost output #1" as hda_dma_ho_1 <<dma>> |
| 81 | + rectangle "hda-dma\nlink input #0" as hda_dma_li_0 <<dma>> |
| 82 | + |
| 83 | + |
| 84 | + rectangle "playback #1" <<stream>> { |
| 85 | + rectangle "ppl #2" as ppl_2 <<ppl>> { |
| 86 | + |
| 87 | + rectangle "host comp" as host_2 |
| 88 | + rectangle "dai comp" as dai_2 |
| 89 | + |
| 90 | + host_2 --> dai_2 |
| 91 | + } |
| 92 | + } |
| 93 | + hda_dma_ho_1 --> host_2 |
| 94 | + dai_2 --> hda_dma_li_0 |
| 95 | + hda_dma_li_0 --> hda_0 |
| 96 | + |
| 97 | + rectangle "work queue #1\n@core_1" as wq_1 <<event>> |
| 98 | + wq_1 .[#green]> hda_dma_li_0 |
| 99 | +} |
0 commit comments