Commit graph

12 commits

Author SHA1 Message Date
Hector Martin a901278264 Cargo.toml: Upgrade configparser and enable indexmap
We need this to keep speaker order stable for blackbox dumps to have
meaning.

Signed-off-by: Hector Martin <marcan@marcan.st>
2023-12-07 20:06:13 +09:00
Hector Martin 8fed89e8e5 Bump to 0.1.5
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-12-04 22:55:23 +09:00
Hector Martin 60752494cd main: Trap SIGQUIT to trigger a blackbox
The signal_hook crate makes this easy, but unfortunately insists on
hardcoding SA_RESTART. So we have to then use libc directly to patch
that out...

Still worth using signal_hook for the atomic flag helper though.

Signed-off-by: Hector Martin <marcan@marcan.st>
2023-12-04 18:40:46 +09:00
Hector Martin 7fbb53df51 blackbox: Add black-box debug functionality
On any panic, we dump out the last ~30 seconds of IVSENSE data along
with the starting state and panic reason.

Also add a feature to panic if the gain reduces too much. This can be
used to try to catch badness.

Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-29 00:28:08 +09:00
Hector Martin cfde41c18e Bump to 0.1.3
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-15 08:41:52 +09:00
Hector Martin 063db4854b Downgrade more deps
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-15 08:41:34 +09:00
Hector Martin bc318e0687 Bump to 0.1.2
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-15 08:35:11 +09:00
Hector Martin b91dacb7a6 Drop unused half dependency
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-15 08:34:57 +09:00
Hector Martin 557b74a03b Cargo.toml: Bump alsa-rs version
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-14 10:17:06 +09:00
James Calligeros 391cf6231f
alsa: remove local version of crate
the bindings we rely on were merged in v0.7.1, so we
no longer need to carry the crate downstream.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2023-08-01 17:23:02 +10:00
Hector Martin 21b3e49456 Wheee it works
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-02-24 01:17:41 +09:00
James Calligeros e8a37a847b initial commit
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2022-12-02 13:54:41 +10:00