Commit 21fb472
fix(audio): stop postNetwork waiting 15s on boards with no audio hardware
Two stacked boot-time waits fired on a board with no audio at all:
- AudioOutput gets canonicalized to the synthetic snd-dummy card's ID
("Dummy") when no real card exists, and the next boot then waited the
full 10 seconds for a card named Dummy to register -- which can never
happen, because snd-dummy is only modprobed after that wait. Treat
"Dummy" as an explicit selection: load snd-dummy immediately so every
wait is already satisfied, and skip the hardware-bind wait since the
user asked for no real audio.
- deviceTreeDeclaresSoundCard() only checked that a sound node exists.
Some device trees (e.g. AM62x boards) ship the simple-audio-card node
with status "disabled" until an audio cape overlay enables it; a
disabled node can never bind, so it burned the 5-second bind wait on
every capeless board. Honor the status property (absent means enabled
per the DT spec).
Also keep the preloaded Dummy card out of the noRealSoundcard
computation so the PipeWire skip-probe fast paths still fire, and skip
the later "No Soundcard Detected" modprobe when Dummy is already
registered. Verified on a capeless PocketBeagle2: the postNetwork audio
path drops from ~15s to ~1s, and a board with real cape audio (DT
status "okay") still gets the bind wait.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent c90c4b0 commit 21fb472
1 file changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
1108 | 1114 | | |
1109 | 1115 | | |
1110 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1111 | 1126 | | |
1112 | 1127 | | |
1113 | 1128 | | |
| |||
1164 | 1179 | | |
1165 | 1180 | | |
1166 | 1181 | | |
1167 | | - | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1168 | 1186 | | |
1169 | 1187 | | |
1170 | 1188 | | |
| |||
1201 | 1219 | | |
1202 | 1220 | | |
1203 | 1221 | | |
1204 | | - | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1205 | 1225 | | |
1206 | 1226 | | |
1207 | 1227 | | |
| |||
1225 | 1245 | | |
1226 | 1246 | | |
1227 | 1247 | | |
1228 | | - | |
| 1248 | + | |
1229 | 1249 | | |
1230 | 1250 | | |
1231 | 1251 | | |
| |||
0 commit comments