Skip to content

Commit 3ca52a0

Browse files
tmon-nordicdleach02
authored andcommitted
dt-bindings: usb: uac2: Add Feature Unit bindings
Add initial Feature Unit bindings allowing user to place the Feature Unit inside UAC2 instance description. Currently the bindings facilitate only specifying which controls are available on the Primary channel 0 and on each Logical channel. The number of Logical channels has to be derived from data-source property. Signed-off-by: Tomasz Moń <[email protected]>
1 parent d5bcfc7 commit 3ca52a0

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: USB Audio Class 2 Feature Unit entity
5+
6+
compatible: "zephyr,uac2-feature-unit"
7+
8+
# string-array properties start with Primary channel 0 and follow with Logical
9+
# channel(s). The "not-present" value is allowed to facilitate having controls
10+
# that are not present on the Primary channel, but only present at the Logical
11+
# channel(s).
12+
13+
properties:
14+
data-source:
15+
type: phandle
16+
description: Unit or Terminal to which this Feature Unit is connected
17+
18+
mute-control:
19+
type: string-array
20+
description: Mute Control capabilities
21+
enum:
22+
- "read-only"
23+
- "host-programmable"
24+
- "not-present"
25+
26+
volume-control:
27+
type: string-array
28+
description: Volume Control capabilities
29+
enum:
30+
- "read-only"
31+
- "host-programmable"
32+
- "not-present"
33+
34+
bass-control:
35+
type: string-array
36+
description: Bass Control capabilities
37+
enum:
38+
- "read-only"
39+
- "host-programmable"
40+
- "not-present"
41+
42+
mid-control:
43+
type: string-array
44+
description: Mid Control capabilities
45+
enum:
46+
- "read-only"
47+
- "host-programmable"
48+
- "not-present"
49+
50+
treble-control:
51+
type: string-array
52+
description: Treble Control capabilities
53+
enum:
54+
- "read-only"
55+
- "host-programmable"
56+
- "not-present"
57+
58+
graphic-equalizer-control:
59+
type: string-array
60+
description: Graphic Equalizer capabilities
61+
enum:
62+
- "read-only"
63+
- "host-programmable"
64+
- "not-present"
65+
66+
automatic-gain-control:
67+
type: string-array
68+
description: Automatic Gain Control capabilities
69+
enum:
70+
- "read-only"
71+
- "host-programmable"
72+
- "not-present"
73+
74+
delay-control:
75+
type: string-array
76+
description: Delay Control capabilities
77+
enum:
78+
- "read-only"
79+
- "host-programmable"
80+
- "not-present"
81+
82+
bass-boost-control:
83+
type: string-array
84+
description: Bass Boost Control capabilities
85+
enum:
86+
- "read-only"
87+
- "host-programmable"
88+
- "not-present"
89+
90+
loundness-control:
91+
type: string-array
92+
description: Loundness Control capabilities
93+
enum:
94+
- "read-only"
95+
- "host-programmable"
96+
- "not-present"
97+
98+
input-gain-control:
99+
type: string-array
100+
description: Input Gain Control capabilities
101+
enum:
102+
- "read-only"
103+
- "host-programmable"
104+
- "not-present"
105+
106+
input-gain-pad-control:
107+
type: string-array
108+
description: Input Gain Pad Control capabilities
109+
enum:
110+
- "read-only"
111+
- "host-programmable"
112+
- "not-present"
113+
114+
phase-inverter-control:
115+
type: string-array
116+
description: Phase Inverter Control capabilities
117+
enum:
118+
- "read-only"
119+
- "host-programmable"
120+
- "not-present"
121+
122+
underflow-control:
123+
type: string-array
124+
description: Underflow Control capabilities
125+
enum:
126+
- "read-only"
127+
- "not-present"
128+
129+
overflow-control:
130+
type: string-array
131+
description: Overflow Control capabilities
132+
enum:
133+
- "read-only"
134+
- "not-present"

0 commit comments

Comments
 (0)