Files
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

62 lines
2.8 KiB
Markdown
Raw Permalink 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 UCM2 overlay`sof-rt5682`
本目录为 **alsa-ucm-conf** 风格的 **UCM2** 草稿,目标:**Jack off 时 HDMI 路由对 ACP/桌面不表现为可随意可用的输出**(与强制 **`pro-audio`** 的 WirePlumber 策略不同;主交付文档见 **[UCM 操作文档](../../docs/linux-hdmi/OPERATION_PipeWire_Kaisa_UCM_HiFi.md)**)。
## 布局
| 路径(相对 `ucm2/` 根) | 说明 |
|-------------------------|------|
| `conf.d/sof-rt5682/sof-rt5682.conf` | 卡入口,匹配 ALSA **card name** `sof-rt5682` |
| `GoogleKaisa/sof-rt5682/HiFi.conf` | HiFi**`SectionVerb` + `Value.TQ "HiFi"`** + **`Port1` / HDMI1/2/3****JackControl** + **`IEC958',N`**(供 PipeWire 注册 **`HiFi:`** profile |
上游 **alsa-ucm-conf** 若日后增加同名 `conf.d/sof-rt5682/`,与 **本 overlay** 可能冲突 — 优先 **合并上游****改名/拆包**(与 [UCM 文档](../../docs/linux-hdmi/OPERATION_PipeWire_Kaisa_UCM_HiFi.md) 的互斥说明一致)。
## 手工安装(调试)
**推荐(仓库根目录)**:先禁用强制 pro-audio 的 WirePlumber 片段,再一键安装 UCM + Lua
```bash
./scripts/disable-kaisa-pro-audio-wireplumber.sh
./scripts/install-kaisa-ucm-overlay.sh
```
等价手工步骤:
```bash
sudo cp -a reference/ucm2/conf.d/sof-rt5682 /usr/share/alsa/ucm2/conf.d/
sudo cp -a reference/ucm2/GoogleKaisa /usr/share/alsa/ucm2/
sudo install -D -m0644 wireplumber/main.lua.d/60-kaisa-ucm.lua /usr/share/wireplumber/main.lua.d/60-kaisa-ucm.lua
sudo alsactl init # 或重登 / 重启 pipewire
systemctl --user restart wireplumber pipewire pipewire-pulse
```
## 与 WirePlumber **`50-kaisa-sof-rt5682-hdmi.conf` 的互斥**
- **UCM 模式(本 overlay**:依赖 **ACP** 的 profile/端口;**请勿**再使用强制 **`device.profile = pro-audio`** 的片段,否则仍易出现 **多路 `pro-output-*` 常驻**
- **过渡 pro-audio 模式**:保留现有 `wireplumber.conf.d` 片段;**不要**同时叠加本 UCM 覆盖(二选一)。
## 校验(可选)
若已安装 **`alsa-utils`**
```bash
alsaucm -c sof-rt5682 list _verbs
alsaucm -c sof-rt5682 set _verb HiFi list _devices
```
插拔 HDMI 时对照 **`amixer -c0`** 中 **`HDMI/DP,pcm=N` Jack** 与 **`IEC958',N`**。
(可选)环境采集脚本已从仓库移除;建议直接按 **[UCM 操作文档](../../docs/linux-hdmi/OPERATION_PipeWire_Kaisa_UCM_HiFi.md)** 的验收命令(`alsaucm` / `pactl` / `wpctl` / `amixer`)逐项核对。
## 实机验收表(勾选)
| 步骤 | 预期 |
|------|------|
| 仅接模拟 / 不接 HDMI | HDMI 相关输出不对「可用路由」误导(依桌面实现) |
| 接 HDMIJack on | 对应 **IEC958** on 后有声 |
| 拔线 Jack off | 该路不应再被选为有效 HDMI 输出 |
---
_控件名以本机 `amixer` 为准;若 `Headphone`/`IEC958` 命名不同,需改 `HiFi.conf` 后重测。_