mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-01 05:23:29 +01:00
framework/13-inch: fix enhanced audio device priority
On framework laptops, ensure that the "enhanced audio" sink for the laptop speakers has a lower priority than bluetooth speakers (by giving it the same priority as the laptop speakers, 1009 [1]). Bluetooth speakers have a priority of 1010 [2] by default. NOTE: the existing comment in the code claiming that higher values mean lower priority is incorrect; lower priorities values mean lower priority. [1] https://gitlab.freedesktop.org/pipewire/wireplumber/-/blob/7fa44ef8d0b2f603bd826d399718cef8cf6a800a/src/scripts/monitors/alsa.lua#L218 [2] https://gitlab.freedesktop.org/pipewire/wireplumber/-/blob/7fa44ef8d0b2f603bd826d399718cef8cf6a800a/src/scripts/monitors/bluez.lua#L275
This commit is contained in:
1 parent
08018c7217
commit
e7358cddb9
1 file changed
+5
-6
@@ -315,12 +315,11 @@ in
|
||||
"device.api" = "dsp";
|
||||
"node.virtual" = "false";
|
||||
|
||||
# Lower seems to mean "more preferred",
|
||||
# bluetooth devices seem to be ~1000, speakers seem to be ~2000
|
||||
# since this is between the two, bluetooth devices take over when they connect,
|
||||
# and hand over to this instead of the speakers when they disconnect.
|
||||
"priority.session" = 1500;
|
||||
"priority.driver" = 1500;
|
||||
# 1009 is the default priority of the "first" analog audio device.
|
||||
# Higher priorities (e.g., 1010 for bluetooth and 1100 for usb audio)
|
||||
# are preferred.
|
||||
"priority.session" = 1009;
|
||||
"priority.driver" = 1009;
|
||||
"state.default-volume" = 0.343;
|
||||
"device.icon-name" = "audio-card-analog-pci";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user