FS#71814 - PulseAudio Not Working with Gstreamer

Attached to Project: Arch Linux
Opened by Jithin Daggy (linux_jd) - Thursday, 12 August 2021, 14:51 GMT
Last edited by Jan Alexander Steffens (heftig) - Sunday, 19 June 2022, 10:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
David Runge (dvzrv)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Once I run the GStreamer command for audio playback, the command gets executed without any errors but no audio from the headset jack.
Gstreamer command
-----------------
gst-launch-1.0 filesrc location=/data/test.wav ! wavparse ! audioconvert ! pulsesink

On checking the PulseAudio log i could find that the below errors popping up. Attached are full logs of PulseAudio.
LOGS
----
D: [pulseaudio] reserve-wrap.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY
I: [pulseaudio] (alsa-lib)utils.c: could not open configuration file /usr/share/alsa/ucm/kona-iot-snd-card/kona-iot-snd-card.conf
I: [pulseaudio] (alsa-lib)parser.c: error: could not parse configuration for card kona-iot-snd-card
I: [pulseaudio] (alsa-lib)utils.c: could not open configuration file /usr/share/alsa/ucm/kona-iot-snd-card/kona-iot-snd-card.conf
I: [pulseaudio] (alsa-lib)parser.c: error: could not parse configuration for card kona-iot-snd-card
I: [pulseaudio] (alsa-lib)main.c: error: failed to import kona-iot-snd-card use case configuration -2
I: [pulseaudio] alsa-ucm.c: UCM not available for card kona-iot-snd-card

When i checked the path /usr/share/alsa/ucm/kona-iot-snd-card/kona-iot-snd-card.conf , it was not present. So I just copied configuration from /usr/share/pulseaudio/qahw/configs/ , but still issue pesists.

Any help would be really appreciated as I am really stuck on this issue.

Additional info:
* log files -attached.

Steps to reproduce:
1)Execute GStreamer pipeline command.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Sunday, 19 June 2022, 10:05 GMT
Reason for closing:  No response
Comment by Magnus (DeArchDev) - Sunday, 09 January 2022, 14:35 GMT
You should probably use pipewire instead. Pulseaudio, sometimes messes things up and causes errors like these
Comment by Marcell Meszaros (MarsSeed) - Thursday, 24 February 2022, 15:11 GMT
@DeArchDev that is not a helpful response at all.

@linux_jd I cannot reproduce the problem.
Did you report it to PulseAudio devs? (Please reply with the issue ticket link if you did.)

This kind of issue seems like upstream related, not something Arch maintainers can do much about.

What is kona-iot-snd-card btw? You should have mentioned specific hardware in the title, as the problem is not affecting everyone in general.

I don't have kona-iot-snd-card, GStreamer works for me with PulseAudio:

$ gst-launch-1.0 filesrc location=/home/user/tests/test.wav ! wavparse ! audioconvert ! pulsesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstPulseSinkClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.102405535
Setting pipeline to NULL ...
Freeing pipeline ...

So I cannot reproduce the problem on my end.

Loading...