Hector Martin
12ecb8c6dd
Bump to 0.1.1
2023-10-14 11:12:28 +09:00
Hector Martin
1007463e60
Add udev rules
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-14 11:12:17 +09:00
Hector Martin
5708edf68d
Cargo.toml: Add homepage
2023-10-14 10:42:00 +09:00
Hector Martin
cad5c81a68
Cargo.toml: Add missing fields
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-14 10:30:40 +09:00
Hector Martin
5d420dfe44
Update README
2023-10-14 10:22:05 +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
Hector Martin
8fb7c31f88
Make mixer element names configurable
...
Doesn't really matter for us since all machines we plan to use so far
have the same chip, but might matter in the future.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-14 10:15:55 +09:00
Hector Martin
7e8d634f64
Add unit file
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-13 15:18:54 +09:00
Hector Martin
a250a73dd6
Clean up warnings
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-13 13:39:34 +09:00
Hector Martin
f33417573f
Move config files under apple/
...
Take the vendor from the DT compatible, since in principle other
manufacturers could use this code too.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-13 13:36:20 +09:00
Hector Martin
c43b8b752b
fixup! Implement flag file for optimistic cold boot state
2023-10-13 13:35:31 +09:00
Hector Martin
f382ce7a5c
Verbosely report all gain changes
...
Just reporting the first nonzero change isn't really useful. Be spammy,
we can always reduce this later.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-13 13:34:46 +09:00
Hector Martin
ffa5af391d
Implement flag file for optimistic cold boot state
...
If this is the first time the daemon runs, we assume 99C (just under the
limit, which means no reduction). Otherwise, we assume the max
temperature, and therefore max limit.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-13 13:34:41 +09:00
Hector Martin
910124421b
conf: Add j413 config
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 17:21:14 +09:00
Hector Martin
8932696541
Move j314.conf into conf/ dir
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 17:20:57 +09:00
Hector Martin
fa4f763d05
Implement catchup/skipping the model forward
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 17:18:31 +09:00
Hector Martin
7ab0fed6d3
main: Report when gains go back to nominal
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:53:35 +09:00
Hector Martin
64e6710dac
main: Be less spammy about sample rates
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:53:27 +09:00
Hector Martin
5c1fd2b60b
main: Reset gains to 0dB on startup
...
This is mostly to avoid a sudden jump up in volume on the common case where the
first sound happens after enough catchup has occurred (once we implement
catchup...)
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:52:37 +09:00
Hector Martin
3660fd85d8
main: Implement main magic unlock control
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:52:12 +09:00
Hector Martin
6cb6c45083
types: Fix worst case initial magnet temp calculation
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:51:37 +09:00
Hector Martin
14c3ef0b7e
types: Add write_int() helper
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:51:29 +09:00
Hector Martin
e19970b5e0
types: Lock all elements we interact with
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:51:15 +09:00
Hector Martin
7dc04ccb1d
helpers: Add lock_el helper
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-10-12 16:51:00 +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
James Calligeros
2e853a1851
README: revamp to reflect recent progress
...
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2023-06-11 12:48:15 +10:00
Hector Martin
b07584e1fd
Grab current sample rate from mixer control
2023-05-09 19:12:43 +09:00
Hector Martin
5c47bc3e94
Automatically select the sample rate if zero
...
This allows the sense PCM to be opened at the correct current rate if
playback is active, or otherwise arbitrarily picks the lowest rate.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-05-09 19:12:02 +09: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
1bb490871f
block on empty buffer
...
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2023-02-14 22:37:47 +10:00
James Calligeros
bc49ea2887
some fixes
...
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2023-02-14 22:02:30 +10:00
James Calligeros
a7ca735707
implement skeleton temp model
...
wip, probably horrible
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2023-02-14 20:30:57 +10:00
James Calligeros
a557c956d3
add mit license
...
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2023-02-07 21:19:54 +10:00
James Calligeros
e8a37a847b
initial commit
...
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2022-12-02 13:54:41 +10:00