Files
chromebox_10th_audio_driver/wireplumber/main.lua.d/60-kaisa-ucm.lua
jack 60b7cd389f docs/scripts(kaisa): add doctor verify mode and HDMI readiness checks
Add a more detailed --verify flow to capture Jack/ELD/subdevices, route per sink, and collect kernel error windows. Improve --fix with readiness gating, retries, and connected-only selection; document single-monitor pcm mapping behavior and ignore local logs/artifacts.

Made-with: Cursor
2026-04-09 22:26:35 +08:00

30 lines
1.4 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 栈。
--
-- 当前仓库主交付为 UCM/HiFi当你已验证 `pactl list cards` 的「配置文件」里出现 `HiFi:`
-- 就应默认固定为 "HiFi",避免重启后回退到 stereo-fallback只剩 3.5mm)。
local KAISA_WP_DEVICE_PROFILE = "HiFi" -- 或 "pro-audio"(仅用于临时排障对照)
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,
},
})