[pulseaudio-discuss] How to launch pulseaudio on embedded system

DIEHCO R&D electronique at diehco.com
Tue Sep 2 02:24:41 PDT 2014


Le 02/09/2014 10:57, Tanu Kaskinen a écrit :
>>>> (...)
>>>> I: [pulseaudio] module-udev-detect.c: Found 0 cards.
>>> The debug logs before this line should tell why there weren't any sound
>>> cards found.
>> module-udev-detect.so found. I don't see if there is problem in log below.
> Ok, so according to udev there are no sound devices. What does "ls
> -l /dev/snd" print?
>
root at eukrea-cpuimx25:~# ls -l /dev/snd
crw-rw----    1 root     root      116,   0 Sep  2 09:13 controlC0
crw-rw----    1 root     root      116,  24 Sep  2 09:13 pcmC0D0c
crw-rw----    1 root     root      116,  16 Sep  2 09:13 pcmC0D0p
crw-rw----    1 root     root      116,   1 Sep  2 09:13 seq
crw-rw----    1 root     root      116,  33 Sep  2 09:13 timer

and see attached the "pulseaudio --system -vvvv &" and "pactl list 
cards" outputs with the lines:
W: [pulseaudio] protocol-native.c: Denied access to client with invalid 
authorization data.
Connection failure: Access denied
-------------- next part --------------
root at eukrea-cpuimx25:~# pulseaudio --system -vvvv &
root at eukrea-cpuimx25:~# 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!
N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time!
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: setpriority() worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: Found user 'pulse' (UID 998) and group 'pulse' (GID 1000).
I: [pulseaudio] main.c: Successfully changed user to "pulse".
I: [pulseaudio] main.c: This is PulseAudio 5.0
D: [pulseaudio] main.c: Compilation host: arm-oe-linux-gnueabi
D: [pulseaudio] main.c: Compilation CFLAGS:  -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux armv5tejl 2.6.37.6 #18 PREEMPT Fri Mar 1 03:08:50 PST 2013
D: [pulseaudio] main.c: Found 1 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is b58e603397a605bce66ca0af53f618c8.
I: [pulseaudio] main.c: Using runtime directory /var/run/pulse.
I: [pulseaudio] main.c: Using state directory /var/lib/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-5.0/modules.
I: [pulseaudio] main.c: Running in system mode: yes
W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that.
W: [pulseaudio] main.c: If you do it nonetheless then it's your own fault if things don't work as expected.
W: [pulseaudio] main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for an explanation why system mode is usually a bad idea.
I: [pulseaudio] main.c: Fresh high-resolution timers available! Bon appetit!
D: [pulseaudio] memblock.c: Using private memory pool with 2 slots of size 64.0 KiB each, total size is 128.0 KiB, maximum usable slot size is 65496
I: [pulseaudio] cpu-arm.c: CPU flags: EDSP 
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-5.0/modules/module-udev-detect.so': success
I: [pulseaudio] module-udev-detect.c: Found 0 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #0; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-5.0/modules/module-esound-protocol-unix.so': failure
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #1; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/var/lib/pulse/b58e603397a605bce66ca0af53f618c8-stream-volumes'.
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added for object /org/pulseaudio/stream_restore1
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #2; argument: "").
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/var/lib/pulse/b58e603397a605bce66ca0af53f618c8-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #3; argument: "").
I: [pulseaudio] module-default-device-restore.c: Saved default sink 'auto_null' not existent, not restoring default sink setting.
I: [pulseaudio] module-default-device-restore.c: Saved default source 'auto_null.monitor' not existent, not restoring default source setting.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #4; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #5; argument: "").
D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     device.description = "Dummy Output"
I: [pulseaudio] sink.c:     device.class = "abstract"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Dummy Output"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
D: [null-sink] module-null-sink.c: Thread starting up
D: [pulseaudio] module-device-restore.c: Could not set format on sink auto_null
I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #7; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #6; argument: "").
D: [pulseaudio] module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5 seconds.
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #8; argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #9; argument: "").
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus system bus 18e11877eb78579538de3d3254058a61 as :1.3
D: [pulseaudio] main.c: Got org.pulseaudio.Server!
I: [pulseaudio] main.c: Daemon startup complete.

root at eukrea-cpuimx25:~# I: [pulseaudio] module-suspend-on-idle.c: Sink auto_null idle for too long, suspending ...
D: [pulseaudio] sink.c: Suspend cause of sink auto_null is 0x0004, suspending
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.

root at eukrea-cpuimx25:~# pactl list cards
I: [pulseaudio] client.c: Created 0 "Native client (UNIX socket client)"
D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29
I: [pulseaudio] protocol-native.c: Got credentials: uid=0 gid=0 success=0
W: [pulseaudio] protocol-native.c: Denied access to client with invalid authorization data.
Connection failure: Access denied
I: [pulseaudio] client.c: Freed 0 "Native client (UNIX socket client)"
I: [pulseaudio] protocol-native.c: Connection died.
root at eukrea-cpuimx25:~#


More information about the pulseaudio-discuss mailing list