^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) Name prefix:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Card implementing the routing property define the connection between
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) audio components as list of string pair. Component using the same
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) sink/source names may use the name prefix property to prepend the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) name of their sinks/sources with the provided string.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Optional name prefix property:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - sound-name-prefix : string using as prefix for the sink/source names of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) the component.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Example: Two instances of the same component.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) amp0: analog-amplifier@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) compatible = "simple-audio-amplifier";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) enable-gpios = <&gpio GPIOH_3 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) sound-name-prefix = "FRONT";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) amp1: analog-amplifier@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) compatible = "simple-audio-amplifier";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) enable-gpios = <&gpio GPIOH_4 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) sound-name-prefix = "BACK";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) };