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
30 lines
1.4 KiB
Lua
30 lines
1.4 KiB
Lua
-- 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,
|
||
},
|
||
})
|