ALSA/Pipewire:使内部扬声器和耳机插孔可见以供选择

ALSA/Pipewire:使内部扬声器和耳机插孔可见以供选择

我在笔记本电脑上运行 Fedora 35(之前为 34)。一切都很好,只是我无法让系统自动检测声卡。所以我手动创建了 ~/.asoundrc 文件:

defaults.pcm.card 0
defaults.pcm.device 5
defaults.ctl.card 0

这会将声音发送到内部扬声器。要将声音发送到耳机,我手动:

1/ 将.asoundrc的内容更改为:

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

2/重新启动pipewire服务:

systemctl --user restart pipewire.service

有没有办法在此文件(或其他地方)中指定设备 0 和设备 5,以便我可以从声音控制面板中选择一个或另一个?

非常感谢!!!

bash-5.1$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofrt5682 [sof-rt5682], device 0: Port1 (*) []
  Subdevices: 1/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
card 0: sofrt5682 [sof-rt5682], device 5: Speakers (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0


bash-5.1$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
sysdefault:CARD=sofrt5682
    sof-rt5682, 
    Default Audio Device

相关内容