xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/name-prefix.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunName prefix:
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunCard implementing the routing property define the connection between
4*4882a593Smuzhiyunaudio components as list of string pair. Component using the same
5*4882a593Smuzhiyunsink/source names may use the name prefix property to prepend the
6*4882a593Smuzhiyunname of their sinks/sources with the provided string.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunOptional name prefix property:
9*4882a593Smuzhiyun- sound-name-prefix : string using as prefix for the sink/source names of
10*4882a593Smuzhiyun		      the component.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunExample: Two instances of the same component.
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunamp0: analog-amplifier@0 {
15*4882a593Smuzhiyun	compatible = "simple-audio-amplifier";
16*4882a593Smuzhiyun	enable-gpios = <&gpio GPIOH_3 0>;
17*4882a593Smuzhiyun	sound-name-prefix = "FRONT";
18*4882a593Smuzhiyun};
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunamp1: analog-amplifier@1 {
21*4882a593Smuzhiyun	compatible = "simple-audio-amplifier";
22*4882a593Smuzhiyun	enable-gpios = <&gpio GPIOH_4 0>;
23*4882a593Smuzhiyun	sound-name-prefix = "BACK";
24*4882a593Smuzhiyun};
25