Files
chromebox_10th_audio_driver/wireplumber/main.lua.d/60-kaisa-ucm.lua
jack bda6b60c15 docs(kaisa): make UCM HiFi the only supported path
Promote UCM2/HiFi (Jack-driven) as the primary delivery, add HISTORY.md,
remove ProAudio/REPRO docs and non-UCM scripts, and fix repo-wide references.

Made-with: Cursor
2026-04-08 15:22:45 +08:00

27 lines
1.2 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Kaisa (sof-rt5682): enable UCM + ACP so HiFi profile / Jack-driven ports work.
-- WirePlumber 0.4.x: appended after stock alsa rules.
--
-- 若仅启用 use-ucm 而不固定 profile栈常会默认选 stereo-fallback界面只剩模拟/耳机HDMI 消失。
--
-- 重要policy-device-profile.lua / findBestProfile若下面 KAISA_WP_DEVICE_PROFILE 设为 "HiFi"
-- 但 PipeWire 的 EnumProfile 里还没有名为 HiFi 的条目pactl「配置文件」仅有 off / pro-audio
-- WirePlumber 无法匹配 device.profile最终会把活动配置留在 off且 pactl set-card-profile HiFi
-- 报「无此实体」。此时请保持 "pro-audio" 先恢复输出;待 install-kaisa-ucm-overlay + 重启后 pactl 已出现
-- HiFi: 时,再把本变量改为 "HiFi" 并重启用户 pipewire 栈。
local KAISA_WP_DEVICE_PROFILE = "pro-audio" -- 或 "HiFi"
table.insert(alsa_monitor.rules, {
matches = {
{
{ "api.alsa.card.name", "equals", "sof-rt5682" },
},
},
apply_properties = {
["api.alsa.use-acp"] = true,
["api.alsa.use-ucm"] = true,
["api.acp.auto-profile"] = false,
["api.acp.auto-port"] = true,
["device.profile"] = KAISA_WP_DEVICE_PROFILE,
},
})