mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
raspberry-pi/4: Include tsched=0 fix in audio module
This applies a commonly suggested fix for pulseaudio sound glitches.
This commit is contained in:
parent
745dd44071
commit
e45d775c93
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# set tsched=0 in pulseaudio config to avoid audio glitches
|
||||||
|
# see https://wiki.archlinux.org/title/PulseAudio/Troubleshooting#Glitches,_skips_or_crackling
|
||||||
|
hardware.pulseaudio.configFile = lib.mkDefault pkgs.runCommand "default.pa" {} ''
|
||||||
|
sed 's/module-udev-detect$/module-udev-detect tsched=0/' ${config.hardware.pulseaudio.package}/etc/pulse/default.pa > $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue