Die Sounds des Pulse-Audiosystems funktionieren nicht, aber die Karten funktionieren mit Alsa

Die Sounds des Pulse-Audiosystems funktionieren nicht, aber die Karten funktionieren mit Alsa

Ich reiße mir die Haare aus. Ich habe über einen Tag lang ununterbrochen daran gearbeitet und jeden Artikel verfolgt, den ich finden konnte.

Geschichte:

Ich habe für den Lockdown eine neue Maschine gebaut (ausschließlich Ubuntu 20.04). Ziemlich High-End, aber Standard.

  • Aktivlautsprecher über den hinteren Line-Out-Anschluss und eine generische USB-Webcam (für Zoom-Meetings, relevant, da die Kamera ein eingebautes Mikrofon hat). Soweit, so gut, funktioniert alles, irgendwie.
  • Das Mikrofon der Webcam war von schlechter Qualität, also kaufte ich ein billiges USB-Mikrofon, ebenfalls von schlechter Qualität, aber es funktionierte.
  • Ich habe mich entschieden, ein vorhandenes Nierenmikrofon zu verwenden, das ich hatte. Also habe ich mir ein Shure Motiv MVI XLR-zu-USB-Gerät besorgt. Hier fingen die Probleme an. Egal, was ich tat (da das Shure einen Kopfhörerausgang für Überwachungszwecke hatte), Ubuntu sah es als gültigen Empfänger an und stellte es, da es USB war, immer auf den Standardausgang ein.

Ich habe zahlreiche Dinge ausprobiert und bin schließlich auf die Tricklösung gestoßen, Folgendes als Startanwendung auszuführen:

pactl set-default-sink pactl set-default-sink

(Sieht komisch aus, wurde aber in einem Forum empfohlen und hat funktioniert.) Ein paar Monate später, nach vielen Systemupdates, stellte ich fest, dass ich die „Startanwendung“ nicht mehr brauchte und deaktivierte sie.

Schneller Vorlauf zu gestern und meinem aktuellen Problem. Ich habe beschlossen, einen externen DAC (Cambridge Audio Dacmagic Plus) zu kaufen, und jetzt bekomme ich überhaupt keine Systemtöne, Webbrowser usw. mehr. Auf dem settings > soundsBildschirm werden die Standardgeräte korrekt aufgelistet, aber wenn ich auf „Test“ klicke und die Lautsprechertasten drücke, kommt kein Ton.

Wenn es ausgeführt wird lsUSB, kann ich die Geräte sehen.

Wenn Sie ausführen aplay -L, werden die Geräte aufgelistet:

surround21
    2.1 Surround output to Front and Subwoofer speakers
surround40
    4.0 Surround output to Front and Rear speakers
surround41
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50
    5.0 Surround output to Front, Center and Rear speakers
surround51
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
    Discard all samples (playback) or generate zero samples (capture)
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
default
    Playback/recording through the PulseAudio sound server
sysdefault:CARD=C10
    Cambridge Audio USB Audio 1.0, USB Audio
    Default Audio Device
front:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    Front speakers
surround21:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    Direct sample mixing device
dsnoop:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    Direct sample snooping device
hw:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    Direct hardware device without any conversions
plughw:CARD=C10,DEV=0
    Cambridge Audio USB Audio 1.0, USB Audio
    Hardware device with all software conversions
usbstream:CARD=C10
    Cambridge Audio USB Audio 1.0
    USB Stream Output
sysdefault:CARD=PCH
    HDA Intel PCH, ALC1220 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1220 Digital
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1220 Digital
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1220 Digital
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1220 Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1220 Digital
    Hardware device with all software conversions
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Hardware device with all software conversions
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
sysdefault:CARD=MVi
    Shure MVi, USB Audio
    Default Audio Device
front:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    Front speakers
surround21:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    Direct sample mixing device
dsnoop:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    Direct sample snooping device
hw:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    Direct hardware device without any conversions
plughw:CARD=MVi,DEV=0
    Shure MVi, USB Audio
    Hardware device with all software conversions
usbstream:CARD=MVi
    Shure MVi
    USB Stream Output
usbstream:CARD=Camera
    UVC Camera
    USB Stream Output
  • Läuft aplay -D plughw:C10 /usr/share/sounds/alsa/Front_Center.wavund spielt (C10 ist der DAC-Name)
  • Beim Laufen speaker-test -c 2 -D plughw:C10kommt aus jedem Lautsprecher nacheinander Ton.
  • Auch beim Zoomen funktioniert alles einwandfrei, wenn ich in den Einstellungen den DAC auswähle
  • speaker-test -c 2 -D defaultWenn ich jedoch „oder“ ausführe speaker-test -c 2 -D pulse, erhalte ich Folgendes:
speaker-test 1.2.2 

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
ALSA lib pcm_pulse.c:752:(pulse_prepare) PulseAudio: Unable to create stream: No such entity 

Unable to set hw params for playback: Input/output error
Setting of hwparams failed: Input/output error

Wenn ich laufe, aplay -D default /usr/share/sounds/alsa/Front_Center.waverhalte ich:

ALSA lib pcm_pulse.c:752:(pulse_prepare) PulseAudio: Unable to create stream: No such entity

aplay: set_params:1407: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: [0 0]
  • Ich habe zahlreiche Vorschläge ausprobiert, wie z . B. Neuinstallation und Neuinitialisierung pulseaudiousw.alsa_base
  • Ich habe auf Basis verschiedener Threads und Posts zahlreiche Anpassungen an den Konfigurationsdateien isoliert vorgenommen.
  • Ich habe es geprüft pavucontrolund verwendet alsamixer. Verschiedene „Fixes“ haben die Dinge verschlimmert und wurden rückgängig gemacht, aber das Problem besteht immer noch.
  • Ich habe mehrmals versucht, den Pulse-Daemon neu zu starten, und er startet ohne Fehler.

Ich weiß, dass es etwas Dummes und Offensichtliches sein wird. :)

Für jede Hilfe bin ich sehr dankbar.

Antwort1

Ich kann deine Frage nicht beantworten. Allerdings habe ich schon einmal eine ähnliche Frage gestellt und keine Antworten erhalten. Versuche es mithttps://paste.ubuntu.com/oder einen ähnlichen Dienst und stellen Sie Links zu Ihrer Terminalausgabe bereit. Ich glaube, diese Fragen mit viel Text schrecken die Leute eher ab.

verwandte Informationen