[pulseaudio-discuss] Unable to run pulseaudio on embedded platform

Rinaldo Rex rinaldorexg at gmail.com
Thu Feb 2 11:59:49 UTC 2017


Hi,

I'm working on an embedded platform which runs automotive grade Linux. I'm
trying to use pulseaudio for a while now and it keeps failing. I've tried
modifying the configuration files and also by removing them to regenerate
the default values. Neither worked in an usable setup.

Please find the attached file as to what I've tried doing so far and please
guide me in proper direction.

Please let me know of any information you need to better understand my
problem.

Pulseaudio version: 6
ALSA version: 1.0.29

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170202/0d389113/attachment.html>
-------------- next part --------------
--------------Pulseaudio------------

Running pulseaudio

root at salvator-x:~# pulseaudio -vvvv --system
W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set!
W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set!
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode!
E: [pulseaudio] main.c: Daemon startup failed.
root at salvator-x:~#

--------------------------------
Conf file for PulseAudio (/etc/pulse/default.pa)

No changes made to default.pa, system.pa, client.conf, daemon.conf

-------------------------------
Trying to play a sample through aplay with default conf (NOTE: There is no sound output)

root at salvator-x:~# aplay -D hw:0,0 a2002011001-e02.wav 
Playing WAVE 'a2002011001-e02.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
root at salvator-x:~# 

----------------------------------
Conf file for default ALSA conf (/etc/asound.conf)

pcm.!default {
  type hw
  card 0
}

ctl.!default {
  type hw
  card 0
}

----------------------------------

Trying to play a sample through aplay configured for PulseAudio

root at salvator-x:~# aplay a2002011001-e02.wav 
ALSA lib /home/teltvm2038/M3_GDP_Jan11/genivi-dev-platform/gdp-src-build/tmp/work/aarch64-poky-linux/alsa-plugins/1.0.29-r0/alsa-plugins-1.0.29/pulse/pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

aplay: main:730: audio open error: Connection refused
root at salvator-x:~# 

------------------------------------------

Conf file for the above 

pcm.pulse {
  type pulse
}

ctl.pulse {
  type pulse
}

pcm.!default {
  type pulse
}

ctl.!default {
  type pulse
}
---------------------------

Other relevant info

root at salvator-x:~# pulseaudio -k
E: [pulseaudio] main.c: Failed to kill daemon: No such file or directory
root at salvator-x:~# pulseaudio --start
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
N: [pulseaudio] main.c: User-configured server at 127.0.0.1, refusing to start/autospawn.
root at salvator-x:~# pulseaudio 
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
[ 1076.575300] ak4613-codec 2-0010: unexpected counter error
[ 1076.581500] ak4613-codec 2-0010: unexpected counter error
[ 1076.594134] ak4613-codec 2-0010: unexpected counter error
[ 1076.600660] ak4613-codec 2-0010: unexpected counter error
[ 1076.656122] ak4613-codec 2-0010: unexpected counter error
[ 1076.662043] ak4613-codec 2-0010: unexpected counter error
[ 1076.668094] ak4613-codec 2-0010: unexpected counter error
[ 1076.674331] ak4613-codec 2-0010: unexpected counter error
root at salvator-x:~# pulseaudio 
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [pulseaudio] main.c: Daemon startup failed.
root at salvator-x:~# 


-------------------------
root at salvator-x:~# pulseaudio -k
E: [pulseaudio] main.c: Failed to kill daemon: No such process
root at salvator-x:~# pulseaudio --start -vvvv
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
D: [pulseaudio] conf-parser.c: scandir("/etc/pulse/client.conf.d") failed: No such file or directory
D: [pulseaudio] conf-parser.c: Parsing configuration file '/etc/pulse/client.conf'
N: [pulseaudio] main.c: User-configured server at 127.0.0.1, refusing to start/autospawn.
root at salvator-x:~# 
--------------------------



More information about the pulseaudio-discuss mailing list