[pulseaudio-discuss] Can't get Pulseadio to playback stream on Raspbian with HifiBerry DAC+

David Martinez david at sojournmusic.net
Wed Mar 18 10:19:00 PDT 2015


Working with a Raspberry Pi B+ with Hifiberry DAC+ on a fresh Raspbian
install.

I can't seem to get Pulseaudio to use the Hifiberry to play an incoming
stream. When I run pulseaudio -v, among other things, I see the following:

CODE: SELECT ALL
SNDRV_PCM_IOCTL_START failed (-77)


This was the only thing I saw in the output that looked significant to me.
I am not sure what this means and there does not appear to be any
references to this error (at least with regards to Raspberry Pi). I know
that the sound card works because I can use mplayer to playback an MP3 file
on it.

Any help would be greatly appreciated. Thanks


Here is my entire pulseaudio output:

I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation
not permitted
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling:
Permission denied
I: [pulseaudio] main.c: This is PulseAudio 2.0
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is eae5fe1648c5902fa7c038f954e1edbf.
I: [pulseaudio] main.c: Using runtime directory
/home/pi/.pulse/eae5fe1648c5902fa7c038f954e1edbf-runtime.
I: [pulseaudio] main.c: Using state directory /home/pi/.pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-2.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: Fresh high-resolution timers available! Bon appetit!
I: [pulseaudio] cpu-arm.c: CPU flags: V6 V7 VFP EDSP
I: [pulseaudio] svolume_arm.c: Initialising ARM optimized volume functions.
I: [pulseaudio] module-device-restore.c: Successfully opened database file
'/home/pi/.pulse/eae5fe1648c5902fa7c038f954e1edbf-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0;
argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file
'/home/pi/.pulse/eae5fe1648c5902fa7c038f954e1edbf-stream-volumes'.
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1;
argument: "").
I: [pulseaudio] module-card-restore.c: Successfully opened database file
'/home/pi/.pulse/eae5fe1648c5902fa7c038f954e1edbf-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2;
argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3;
argument: "").
I: [pulseaudio] alsa-sink.c: Successfully opened device default.
I: [pulseaudio] alsa-sink.c: Device doesn't support mmap(), falling back to
UNIX read/write mode.
I: [pulseaudio] alsa-sink.c: Cannot enable timer-based scheduling, falling
back to sound IRQ scheduling.
I: [pulseaudio] sink.c: Created sink 0 "alsa_output.default" with sample
spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     alsa.resolution_bits = "16"
I: [pulseaudio] sink.c:     device.api = "alsa"
I: [pulseaudio] sink.c:     device.class = "sound"
I: [pulseaudio] sink.c:     alsa.class = "generic"
I: [pulseaudio] sink.c:     alsa.subclass = "generic-mix"
I: [pulseaudio] sink.c:     alsa.name = ""
I: [pulseaudio] sink.c:     alsa.id = "HiFiBerry DAC+ HiFi pcm512x-hifi-0"
I: [pulseaudio] sink.c:     alsa.subdevice = "0"
I: [pulseaudio] sink.c:     alsa.subdevice_name = "subdevice #0"
I: [pulseaudio] sink.c:     alsa.device = "0"
I: [pulseaudio] sink.c:     alsa.card = "0"
I: [pulseaudio] sink.c:     alsa.card_name = "snd_rpi_hifiberry_dacplus"
I: [pulseaudio] sink.c:     alsa.long_card_name =
"snd_rpi_hifiberry_dacplus"
I: [pulseaudio] sink.c:     alsa.driver_name = "snd_soc_hifiberry_dacplus"
I: [pulseaudio] sink.c:     device.bus_path = "platform-sound"
I: [pulseaudio] sink.c:     sysfs.path = "/devices/sound/sound/card0"
I: [pulseaudio] sink.c:     device.string = "default"
I: [pulseaudio] sink.c:     device.buffering.buffer_size = "17632"
I: [pulseaudio] sink.c:     device.buffering.fragment_size = "4408"
I: [pulseaudio] sink.c:     device.access_mode = "serial"
I: [pulseaudio] sink.c:     device.description = "snd_rpi_hifiberry_dacplus"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "alsa_output.default.monitor"
with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of
snd_rpi_hifiberry_dacplus"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
I: [pulseaudio] alsa-sink.c: Using 4.0 fragments of size 4408 bytes
(24.99ms), buffer size is 17632 bytes (99.95ms)
I: [alsa-sink] core-util.c: Successfully enabled SCHED_RR scheduling for
thread, with priority 5.
I: [alsa-sink] alsa-sink.c: Starting playback.
I: [alsa-sink] (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_START failed (-77)
I: [pulseaudio] module.c: Loaded "module-alsa-sink" (index: #4; argument:
"").
I: [pulseaudio] module-udev-detect.c: Found 1 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #5; argument:
"").
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #6;
argument: "").
I: [pulseaudio] module-default-device-restore.c: Restored default sink
'alsa_output.default'.
I: [pulseaudio] module-default-device-restore.c: Restored default source
'alsa_output.default.monitor'.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index:
#7; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #8;
argument: "").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #9; argument:
"").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #10;
argument: "").
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #11;
argument: "").
I: [pulseaudio] module.c: Loaded "module-console-kit" (index: #12;
argument: "").
I: [pulseaudio] module.c: Loaded "module-systemd-login" (index: #13;
argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index:
#14; argument: "").
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #15; argument:
"").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #16;
argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #17;
argument: "").
I: [pulseaudio] module.c: Loaded "module-dbus-protocol" (index: #18;
argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index:
#19; argument: "").
I: [pulseaudio] module.c: Loaded "module-rtp-recv" (index: #20; argument:
"").
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus:
org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon
without a $DISPLAY for X11
W: [pulseaudio] main.c: Unable to contact D-Bus:
org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon
without a $DISPLAY for X11
I: [pulseaudio] main.c: Daemon startup complete.
I: [pulseaudio] resampler.c: Using resampler 'speex-fixed-3'
I: [pulseaudio] resampler.c: Using s16le as working format.
I: [pulseaudio] resampler.c: Choosing speex quality setting 3.
I: [pulseaudio] sink-input.c: Created input 0 "RTP Stream (PulseAudio RTP
Stream on linuxbox)" on alsa_output.default with sample spec s16be 2ch
48000Hz and channel map front-left,front-right
I: [pulseaudio] sink-input.c:     media.role = "stream"
I: [pulseaudio] sink-input.c:     media.name = "RTP Stream (PulseAudio RTP
Stream on linuxbox)"
I: [pulseaudio] sink-input.c:     rtp.session = "PulseAudio RTP Stream on
linuxbox"
I: [pulseaudio] sink-input.c:     rtp.origin = "MYNAME 3635426253 0 IN IP4
SERVERIP"
I: [pulseaudio] sink-input.c:     rtp.payload = "127"
I: [pulseaudio] sink-input.c:     module-stream-restore.id =
"sink-input-by-media-role:stream"
I: [pulseaudio] module-rtp-recv.c: New session 'PulseAudio RTP Stream on
linuxbox'



Any help would be really appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150318/3bd93adf/attachment.html>


More information about the pulseaudio-discuss mailing list