chore(alsa): lower device enumeration logs to debug, add 5th retry

Reduce log noise by demoting ALSA device enumeration from info to debug.
Add a 5th backoff retry at 800ms for both hw and plughw paths as a
safety net for any EBUSY cases that slip through the lifecycle fix.

cc
This commit is contained in:
vicrodh committed 2026-04-07 11:53:23 -06:00
1 parent 426a4d0dba
commit c8a3a648f5
1 file changed
+4 -4
+4 -4
View File
@@ -492,9 +492,9 @@ impl AlsaBackend {
}
}
log::info!("[ALSA Backend] Enumerated {} ALSA devices", devices.len());
log::debug!("[ALSA Backend] Enumerated {} ALSA devices", devices.len());
for (idx, dev) in devices.iter().enumerate() {
log::info!(
log::debug!(
" [{}] {} - {} (max_rate: {:?}, rates: {:?})",
idx,
dev.name,
@@ -621,7 +621,7 @@ impl AlsaBackend {
.args(["suspend-sink", "@DEFAULT_SINK@", "1"])
.output();
let retry_delays_ms = [50, 100, 200, 400];
let retry_delays_ms = [50, 100, 200, 400, 800];
for (i, delay_ms) in retry_delays_ms.iter().enumerate() {
std::thread::sleep(std::time::Duration::from_millis(*delay_ms));
@@ -716,7 +716,7 @@ impl AlsaBackend {
.args(["suspend-sink", "@DEFAULT_SINK@", "1"])
.output();
let retry_delays_ms = [50, 100, 200, 400];
let retry_delays_ms = [50, 100, 200, 400, 800];
for (i, delay_ms) in retry_delays_ms.iter().enumerate() {
std::thread::sleep(std::time::Duration::from_millis(*delay_ms));