forked from stitchy/dotfiles
please
This commit is contained in:
parent
38cb13e81e
commit
f170364400
1 changed files with 38 additions and 2 deletions
|
@ -56,13 +56,49 @@ in
|
||||||
unmanaged = [ "rndis0" "usb0" ];
|
unmanaged = [ "rndis0" "usb0" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.pipewire.wireplumber.configPackages = [
|
/*services.pipewire.wireplumber.configPackages = [
|
||||||
(pkgs.writeTextDir "share/wireplumber/quailcum.lua.d/51-qcom-sdm845.lua" ''
|
(pkgs.writeTextDir "share/wireplumber/quailcum.lua.d/51-qcom-sdm845.lua" ''
|
||||||
${builtins.readFile (pkgs.fetchurl {
|
${builtins.readFile (pkgs.fetchurl {
|
||||||
url = "https://gitlab.com/postmarketOS/pmaports/-/raw/0aa9524204e9c9c002c860b87c972bc2ebf025f3/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua";
|
url = "https://gitlab.com/postmarketOS/pmaports/-/raw/0aa9524204e9c9c002c860b87c972bc2ebf025f3/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua";
|
||||||
hash = "sha256-56oNJJyuZZe1Iig1xskDuyazw3PbRZtmU/YRFUTqjwk=";
|
hash = "sha256-56oNJJyuZZe1Iig1xskDuyazw3PbRZtmU/YRFUTqjwk=";
|
||||||
})}
|
})}
|
||||||
'')
|
'')
|
||||||
|
];*/
|
||||||
|
|
||||||
|
services.pipewire.wireplumber.configPackages = [
|
||||||
|
(pkgs.writeTextDir "share/wireplumber/quailcum.lua.d/51-qcom-sdm845.lua" ''
|
||||||
|
-- PipeWire's S24LE default audio format is broken in the kernel driver
|
||||||
|
alsa_monitor.rules = [
|
||||||
|
{
|
||||||
|
matches = {
|
||||||
|
{ "node.name" = "alsa_output.*.HiFi*__sink" },
|
||||||
|
{ "node.name" = "alsa_input.*.HiFi*__source" }
|
||||||
|
]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
audio.format = "S16LE",
|
||||||
|
audio.rate = 48000,
|
||||||
|
api.alsa.period-size = 4096,
|
||||||
|
api.alsa.period-num = 6,
|
||||||
|
api.alsa.headroom = 512,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
|
||||||
|
-- Disable suspend for Voice Call devices
|
||||||
|
alsa_monitor.rules = [
|
||||||
|
{
|
||||||
|
matches = {
|
||||||
|
{ "node.name" = "alsa_output.*.Voice_Call*__sink" },
|
||||||
|
{ "node.name" ="alsa_input.*.Voice_Call*__source" }
|
||||||
|
}
|
||||||
|
actions.update=props = {
|
||||||
|
audio.format = "S16LE",
|
||||||
|
session.suspend-timeout-seconds = 0,
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
|
|
Loading…
Reference in a new issue