198 lines
7.1 KiB
Plaintext
198 lines
7.1 KiB
Plaintext
uname -a
|
||
aplay -l
|
||
amixer -c0 sset 'IEC958',0 on
|
||
amixer -c0 sset 'IEC958',1 on
|
||
amixer -c0 sset 'IEC958',2 on
|
||
speaker-test -D pipewire -c2 -t sine -f 440 -l 2
|
||
|
||
ubuntu@ubuntu:~$ uname -a
|
||
aplay -l
|
||
amixer -c0 sset 'IEC958',0 on
|
||
amixer -c0 sset 'IEC958',1 on
|
||
amixer -c0 sset 'IEC958',2 on
|
||
speaker-test -D pipewire -c2 -t sine -f 440 -l 2
|
||
Linux ubuntu 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
|
||
**** List of PLAYBACK Hardware Devices ****
|
||
card 0: sofrt5682 [sof-rt5682], device 0: Port1 (*) []
|
||
Subdevices: 0/1
|
||
Subdevice #0: subdevice #0
|
||
card 0: sofrt5682 [sof-rt5682], device 2: HDMI1 (*) []
|
||
Subdevices: 1/1
|
||
Subdevice #0: subdevice #0
|
||
card 0: sofrt5682 [sof-rt5682], device 3: HDMI2 (*) []
|
||
Subdevices: 1/1
|
||
Subdevice #0: subdevice #0
|
||
card 0: sofrt5682 [sof-rt5682], device 4: HDMI3 (*) []
|
||
Subdevices: 1/1
|
||
Subdevice #0: subdevice #0
|
||
Simple mixer control 'IEC958',0
|
||
Capabilities: pswitch pswitch-joined
|
||
Playback channels: Mono
|
||
Mono: Playback [on]
|
||
Simple mixer control 'IEC958',1
|
||
Capabilities: pswitch pswitch-joined
|
||
Playback channels: Mono
|
||
Mono: Playback [on]
|
||
Simple mixer control 'IEC958',2
|
||
Capabilities: pswitch pswitch-joined
|
||
Playback channels: Mono
|
||
Mono: Playback [on]
|
||
|
||
speaker-test 1.2.9
|
||
|
||
Playback device is pulse
|
||
Stream parameters are 48000Hz, S16_LE, 2 channels
|
||
Sine wave rate is 440.0000Hz
|
||
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM pulse
|
||
Playback open error: -2,No such file or directory
|
||
ubuntu@ubuntu:~$ ^C
|
||
ubuntu@ubuntu:~$
|
||
|
||
|
||
------------------------------------------------------------
|
||
./scripts/install-kaisa-ucm-overlay.sh
|
||
systemctl --user restart wireplumber pipewire pipewire-pulse
|
||
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$ ./scripts/install-kaisa-ucm-overlay.sh
|
||
systemctl --user restart wireplumber pipewire pipewire-pulse
|
||
>>> 安装 UCM2 -> /usr/share/alsa/ucm2/
|
||
>>> 安装 WirePlumber Lua -> /usr/share/wireplumber/main.lua.d/
|
||
>>> 重启用户 pipewire 栈
|
||
完成。请先验证 UCM 能解析(应列出 HiFi,不应报 parse 错误):
|
||
alsaucm -c sof-rt5682 list _verbs
|
||
再按 docs/linux-hdmi/OPERATION_PipeWire_Kaisa_UCM_HiFi.md 验收 pactl / GNOME。
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$
|
||
|
||
---------------------------------------------------------
|
||
pactl set-card-profile "$(pactl list cards short | awk '/cml_rt5682/ {print $2; exit}')" HiFi
|
||
|
||
chromebox_10th_audio_driver$ pactl set-card-profile "$(pactl list cards short | awk '/cml_rt5682/ {print $2; exit}')" HiFi
|
||
Command 'pactl' not found, but can be installed with:
|
||
sudo apt install pulseaudio-utils
|
||
Command 'pactl' not found, but can be installed with:
|
||
sudo apt install pulseaudio-utils
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$
|
||
|
||
|
||
|
||
|
||
$ alsaucm -c sof-rt5682 list _verbs
|
||
pactl list cards
|
||
0: HiFi
|
||
Kaisa (sof-rt5682): Port1 + HDMI1/2/3 (Jack-driven)
|
||
Card #44
|
||
Name: alsa_card.pci-0000_00_1f.3-platform-cml_rt5682_def
|
||
Driver: alsa
|
||
Owner Module: n/a
|
||
Properties:
|
||
api.acp.auto-port = "true"
|
||
api.acp.auto-profile = "false"
|
||
api.alsa.card = "0"
|
||
api.alsa.card.longname = "Google-Kaisa-rev4"
|
||
api.alsa.card.name = "sof-rt5682"
|
||
api.alsa.path = "hw:0"
|
||
api.alsa.use-acp = "true"
|
||
api.alsa.use-ucm = "true"
|
||
api.dbus.ReserveDevice1 = "Audio0"
|
||
device.api = "alsa"
|
||
device.bus = "pci"
|
||
device.bus_path = "pci-0000:00:1f.3-platform-cml_rt5682_def"
|
||
device.description = "Comet Lake PCH-LP cAVS"
|
||
device.enum.api = "udev"
|
||
device.icon_name = "audio-card-analog-pci"
|
||
device.name = "alsa_card.pci-0000_00_1f.3-platform-cml_rt5682_def"
|
||
device.nick = "sof-rt5682"
|
||
device.plugged.usec = "9856418"
|
||
device.product.id = "0x02c8"
|
||
device.product.name = "Comet Lake PCH-LP cAVS"
|
||
device.profile = "pro-audio"
|
||
device.subsystem = "sound"
|
||
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/cml_rt5682_def/sound/card0"
|
||
device.vendor.id = "0x8086"
|
||
device.vendor.name = "Intel Corporation"
|
||
media.class = "Audio/Device"
|
||
factory.id = "14"
|
||
client.id = "37"
|
||
object.id = "44"
|
||
object.serial = "44"
|
||
object.path = "alsa:pcm:0"
|
||
alsa.card = "0"
|
||
alsa.card_name = "sof-rt5682"
|
||
alsa.long_card_name = "Google-Kaisa-rev4"
|
||
alsa.driver_name = "snd_soc_sof_rt5682"
|
||
alsa.mixer_name = "Intel Kabylake HDMI"
|
||
alsa.components = "HDA:8086280b,80860101,00100000"
|
||
alsa.id = "sofrt5682"
|
||
device.string = "0"
|
||
Profiles:
|
||
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
|
||
pro-audio: Pro Audio (sinks: 4, sources: 3, priority: 1, available: yes)
|
||
Active Profile: pro-audio
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$
|
||
|
||
|
||
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$ pactl list cards
|
||
Card #44
|
||
Name: alsa_card.pci-0000_00_1f.3-platform-cml_rt5682_def
|
||
Driver: alsa
|
||
Owner Module: n/a
|
||
Properties:
|
||
api.acp.auto-port = "true"
|
||
api.acp.auto-profile = "false"
|
||
api.alsa.card = "0"
|
||
api.alsa.card.longname = "Google-Kaisa-rev4"
|
||
api.alsa.card.name = "sof-rt5682"
|
||
api.alsa.path = "hw:0"
|
||
api.alsa.use-acp = "true"
|
||
api.alsa.use-ucm = "true"
|
||
api.dbus.ReserveDevice1 = "Audio0"
|
||
device.api = "alsa"
|
||
device.bus = "pci"
|
||
device.bus_path = "pci-0000:00:1f.3-platform-cml_rt5682_def"
|
||
device.description = "Comet Lake PCH-LP cAVS"
|
||
device.enum.api = "udev"
|
||
device.icon_name = "audio-card-analog-pci"
|
||
device.name = "alsa_card.pci-0000_00_1f.3-platform-cml_rt5682_def"
|
||
device.nick = "sof-rt5682"
|
||
device.plugged.usec = "9856418"
|
||
device.product.id = "0x02c8"
|
||
device.product.name = "Comet Lake PCH-LP cAVS"
|
||
device.profile = "pro-audio"
|
||
device.subsystem = "sound"
|
||
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/cml_rt5682_def/sound/card0"
|
||
device.vendor.id = "0x8086"
|
||
device.vendor.name = "Intel Corporation"
|
||
media.class = "Audio/Device"
|
||
factory.id = "14"
|
||
client.id = "37"
|
||
object.id = "44"
|
||
object.serial = "44"
|
||
object.path = "alsa:pcm:0"
|
||
alsa.card = "0"
|
||
alsa.card_name = "sof-rt5682"
|
||
alsa.long_card_name = "Google-Kaisa-rev4"
|
||
alsa.driver_name = "snd_soc_sof_rt5682"
|
||
alsa.mixer_name = "Intel Kabylake HDMI"
|
||
alsa.components = "HDA:8086280b,80860101,00100000"
|
||
alsa.id = "sofrt5682"
|
||
device.string = "0"
|
||
Profiles:
|
||
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
|
||
pro-audio: Pro Audio (sinks: 4, sources: 3, priority: 1, available: yes)
|
||
Active Profile: pro-audio
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$ pactl list short sinks
|
||
45 alsa_output.pci-0000_00_1f.3-platform-cml_rt5682_def.pro-output-0 PipeWire s24-32le 2ch 48000Hz IDLE
|
||
46 alsa_output.pci-0000_00_1f.3-platform-cml_rt5682_def.pro-output-2 PipeWire s32le 2ch 48000Hz SUSPENDED
|
||
47 alsa_output.pci-0000_00_1f.3-platform-cml_rt5682_def.pro-output-3 PipeWire s32le 2ch 48000Hz SUSPENDED
|
||
48 alsa_output.pci-0000_00_1f.3-platform-cml_rt5682_def.pro-output-4 PipeWire s32le 2ch 48000Hz SUSPENDED
|
||
ubuntu@ubuntu:/media/ubuntu/5911bd26-2b5e-4275-a627-b51f558cfd38/home/jack/文档/
|
||
chromebox_10th_audio_driver$
|
||
|