Ubuntu 22.04 上的 ASUS STRIX RAID PRO 声卡 / alsamixer 和 5.1 通过 SPDIF 出现问题

Ubuntu 22.04 上的 ASUS STRIX RAID PRO 声卡 / alsamixer 和 5.1 通过 SPDIF 出现问题

我正在尝试从此卡上的 SDPIF 获取 5.1 声音。第一个障碍:

  1. alsamixer 给出此错误:

    alsamixer
    ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
    ALSA lib conf.c:5178:(_snd_config_evaluate) function 
    snd_func_card_inum returned error: Datei oder Verzeichnis 
    nicht gefunden
    ALSA lib confmisc.c:422:(snd_func_concat) error evaluating 
    strings
    ALSA lib conf.c:5178:(_snd_config_evaluate) function 
    snd_func_concat returned error: Datei oder Verzeichnis nicht 
    gefunden
    ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating 
    name
    ALSA lib conf.c:5178:(_snd_config_evaluate) function 
    snd_func_refer returned error: Datei oder Verzeichnis nicht  
    gefunden
    ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: Datei 
    oder Verzeichnis nicht gefunden
    ALSA lib control.c:1528:(snd_ctl_open_noupdate) Invalid CTL 
    default
    Fehler beim Öffen des Mixer-Gerätes: Datei oder Verzeichnis 
    nicht gefunden
    
  2. aplay -L 给出了以下结果:

    null
    Discard all samples (playback) or generate zero samples 
    (capture)
    default
    Playback/recording through the PulseAudio sound server
    samplerate
    Rate Converter Plugin Using Samplerate Library
    speexrate
    Rate Converter Plugin Using Speex Resampler
    jack
    JACK Audio Connection Kit
    oss
    Open Sound System
    pulse
    PulseAudio Sound Server
    upmix
    Plugin for channel upmix (4,6,8)
    vdownmix
    Plugin for channel downmix (stereo) with a simple 
    spacialization
    hw:CARD=CARD,DEV=0
        STRIX SOUND CARD, USB Audio
        Direct hardware device without any conversions
    hw:CARD=CARD,DEV=1
        STRIX SOUND CARD, USB Audio #1
    Direct hardware device without any conversions
        hw:CARD=CARD,DEV=2
    STRIX SOUND CARD, USB Audio #2
        Direct hardware device without any conversions
        plughw:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        Hardware device with all software conversions
        plughw:CARD=CARD,DEV=1
    STRIX SOUND CARD, USB Audio #1
        Hardware device with all software conversions
        plughw:CARD=CARD,DEV=2
    STRIX SOUND CARD, USB Audio #2
        Hardware device with all software conversions
        sysdefault:CARD=CARD
    STRIX SOUND CARD, USB Audio
        Default Audio Device
        front:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        Front output / input
        surround21:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        2.1 Surround output to Front and Subwoofer speakers
        surround40:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        4.0 Surround output to Front and Rear speakers
        surround41:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        4.1 Surround output to Front, Rear and Subwoofer speakers
        surround50:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        5.0 Surround output to Front, Center and Rear speakers
        surround51:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        5.1 Surround output to Front, Center, Rear and Subwoofer 
        speakers
        surround71:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        7.1 Surround output to Front, Center, Side, Rear and 
        Woofer speakers
    iec958:CARD=CARD,DEV=0
        STRIX SOUND CARD, USB Audio
        IEC958 (S/PDIF) Digital Audio Output
        iec958:CARD=CARD,DEV=1
    STRIX SOUND CARD, USB Audio #1
        IEC958 (S/PDIF) Digital Audio Output
        dmix:CARD=CARD,DEV=0
    STRIX SOUND CARD, USB Audio
        Direct sample mixing device
        dmix:CARD=CARD,DEV=1
    STRIX SOUND CARD, USB Audio #1
        Direct sample mixing device
        dmix:CARD=CARD,DEV=2
    STRIX SOUND CARD, USB Audio #2
        Direct sample mixing device
        usbstream:CARD=CARD
    STRIX SOUND CARD
        USB Stream Output
    

答案1

  1. 我只需在 bios 中启用板载声卡即可解决

为了从华硕 STRIX 的 SPDIF 中获得至少立体声,我遵循了以下步骤:

需要为这张卡启用第二个设备(1:1)

其中一个应该会给你声音:

aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:1,1 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:1,2 /usr/share/sounds/alsa/Front_Center.wav

对我来说是 1,1。

要在声音设置中启用该设备,请执行以下操作:

pacmd load-module module-alsa-sink device=hw:1,1

如果有效,请按照上面的帖子建议将其设为永久:

打开:/etc/pulse/default.pa

并在文件末尾添加:

load-module module-alsa-sink device=hw:1,1

重新启动后,“新”设备仍存在于sund设置中,并且我目前可以通过SPDIF获得立体声。

现在我需要弄清楚如何启用 5.1....

相关内容