Add luminance and external monitor kernel modules

This commit is contained in:
Natsu Kagami 2024-12-12 01:49:42 +01:00
parent 56a8c33f9c
commit ea331093bb
Signed by: nki
GPG key ID: 55A032EB38B49ADB
5 changed files with 41 additions and 12 deletions

View file

@ -1,5 +1,5 @@
{ config, pkgs, lib, ... }: {
environment.etc = {
"wireplumber/main.lua.d/51-sdac.lua".source = ./sdac.lua;
"wireplumber/wireplumber.conf.d/51-sdac.conf".source = ./sdac.conf.json;
};
}

View file

@ -0,0 +1,19 @@
monitor.alsa.rules = [
{
matches = [
{
device.name = "alsa_output.usb-Grace_Design_SDAC-00.*"
}
]
actions = {
update-props = {
# audio.format = "S24_3LE"
audio.rate = 88200
api.alsa.period-size = 2
api.alsa.headroom = 0
api.alsa.disable-batch = true
}
}
}
]

View file

@ -6,7 +6,7 @@ rule = {
},
apply_properties = {
["audio.format"] = "S24_3LE",
["audio.rate"] = 96000,
["audio.rate"] = 44100,
["api.alsa.period-size"] = 2,
["api.alsa.headroom"] = 0,
["api.alsa.disable-batch"] = true