Hi @chrisys and thanks a lot for detailed reply. Good to hear there is hope for getting audio out of my RPi 4. Here is the information you requested:
First, I have removed RPI_HEADPHONES
from AUDIO_OUTPUT
. DT params is currently "i2c_arm=on","spi=on","audio=on"
. I have not connected HDMI.
Support logs:
{"config":{"mode":"MULTI_ROOM","device":{"ip":"192.168.0.16","type":"raspberrypi4-64"},"multiroom":{"master":"192.168.0.16","forced":false},"audioBlock":{"_events":{},"_eventsCount":2,"pulseCookie":{"type":"Buffer","data":[0,0,0,0,128,200,244,2,248,200,244,2,248,174,244,2,0,0,0,0,40,175,244,2,0,0,0,0,0,0,0,0,0,0,0,0,0,175,244,2,72,175,244,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,96,173,244,2,109,101,115,115,97,103,101,0,24,142,219,2,40,175,244,2,7,0,0,0,74,62,20,111,1,175,244,2,24,175,244,2,150,0,0,0,38,1,32,0,0,0,0,0,1,0,0,0,1,0,0,0,150,0,0,0,255,255,255,255,2,0,0,0,136,175,244,2,112,174,244,2,0,0,0,0,0,0,0,0,0,0,0,0,224,167,244,2,0,0,0,0,0,0,0,0,20,142,219,2,88,174,244,2,0,0,0,0,0,0,0,0,150,0,0,0,1,0,0,0,112,176,244,2,0,0,0,0,72,175,244,2,168,175,244,2,24,101,219,2,8,172,244,2,32,123,27,57,72,170,244,2,72,172,244,2,65,230,249,27,0,0,0,0,0,0,0,0,0,0,0,0,88,174,244,2,112,176,244,2,147,57,185,56]},"connected":true,"chunks":[],"requests":[],"lastRequestId":14,"pulseAddress":{"port":4317,"host":"192.168.0.16"},"address":"tcp:192.168.0.16:4317","subToEvents":true,"name":"BalenaAudio","socket":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":false,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":true,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"defaultSink":"balena-sound.input"}},"audio":{"name":"pulseaudio","version":"14.1","user":"root","hostname":"b138a700ea78","sampleSpec":{"format":3,"channels":2,"rate":44100},"defaultSink":"balena-sound.input","defaultSource":"balena-sound.input.monitor","cookie":451986766,"channelMap":{"channels":2,"types":[1,2]}},"sinks":[{"index":0,"name":"alsa_output.bcm2835-jack.stereo-fallback","description":"Built-in Audio Stereo","sampleSpec":{"format":3,"channels":2,"rate":44100},"channelMap":{"channels":2,"types":[1,2]},"moduleIndex":6,"channelVolumes":{"channels":2,"volumes":[56210,56210]},"isMuted":false,"monitorSourceIndex":0,"monitorSourceName":"alsa_output.bcm2835-jack.stereo-fallback.monitor","latency":"0n","driverName":"module-alsa-card.c","flagsRaw":183,"properties":[["alsa.resolution_bits","16"],["device.api","alsa"],["device.class","sound"],["alsa.class","generic"],["alsa.subclass","generic-mix"],["alsa.name","bcm2835 Headphones"],["alsa.id","bcm2835 Headphones"],["alsa.subdevice","0"],["alsa.subdevice_name","subdevice #0"],["alsa.device","0"],["alsa.card","0"],["alsa.card_name","bcm2835 Headphones"],["alsa.long_card_name","bcm2835 Headphones"],["alsa.driver_name","snd_bcm2835"],["device.bus_path","/devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0"],["sysfs.path","/devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0"],["device.form_factor","internal"],["device.string","hw:0"],["device.buffering.buffer_size","131072"],["device.buffering.fragment_size","131072"],["device.access_mode","mmap+timer"],["device.profile.name","stereo-fallback"],["device.profile.description","Stereo"],["device.description","Built-in Audio Stereo"],["module-udev-detect.discovered","1"],["device.icon_name","audio-card"]],"configLatency":"0n","baseVolume":56210,"state":2,"volumeSteps":65537,"cardIndex":0,"ports":1,"activePortName":"analog-output-headphones","formats":"Headphones"},{"index":9900,"name":0,"description":"analog-output-headphones","sampleSpec":[{"encoding":1,"properties":[]}],"channelMap":1,"moduleIndex":"balena-sound.input","channelVolumes":"Null Output","isMuted":{"format":3,"channels":2,"rate":44100},"monitorSourceIndex":{"channels":2,"types":[1,2]},"monitorSourceName":21,"latency":{"channels":2,"volumes":[49152,49152]},"driverName":false,"flagsRaw":1,"properties":"balena-sound.input.monitor","configLatency":"6588n","baseVolume":"module-null-sink.c","state":418,"volumeSteps":[["device.description","Null Output"],["device.class","abstract"],["device.icon_name","audio-card"]],"cardIndex":"66666n","ports":65536,"activePortName":0,"formats":65537},{"index":4294967295,"name":0,"description":"","sampleSpec":[{"encoding":1,"properties":[]}],"channelMap":2,"moduleIndex":"balena-sound.output","channelVolumes":"Null Output","isMuted":{"format":3,"channels":2,"rate":44100},"monitorSourceIndex":{"channels":2,"types":[1,2]},"monitorSourceName":22,"latency":{"channels":2,"volumes":[65536,65536]},"driverName":false,"flagsRaw":2,"properties":"balena-sound.output.monitor","configLatency":"6300n","baseVolume":"module-null-sink.c","state":418,"volumeSteps":[["device.description","Null Output"],["device.class","abstract"],["device.icon_name","audio-card"]],"cardIndex":"66666n","ports":65536,"activePortName":1,"formats":65537},{"index":4294967295,"name":0,"description":"","sampleSpec":[{"encoding":1,"properties":[]}],"channelMap":3,"moduleIndex":"snapcast","channelVolumes":"Null Output","isMuted":{"format":3,"channels":2,"rate":44100},"monitorSourceIndex":{"channels":2,"types":[1,2]},"monitorSourceName":23,"latency":{"channels":2,"volumes":[65536,65536]},"driverName":false,"flagsRaw":3,"properties":"snapcast.monitor","configLatency":"29709n","baseVolume":"module-null-sink.c","state":418,"volumeSteps":[["device.description","Null Output"],["device.class","abstract"],["device.icon_name","audio-card"]],"cardIndex":"23219n","ports":65536,"activePortName":0,"formats":65537}],"volume":75,"constants":{"debug":false,"port":3000,"coteDelay":5000,"mode":"MULTI_ROOM","balenaDeviceType":"raspberrypi4-64","multiroom":{"forced":false},"volume":75}}
Audio block startup log:
22.02.21 21:41:11 (+0100) audio Routing 'balena-sound.input' to 'snapcast'.
22.02.21 21:41:11 (+0100) audio Routing 'balena-sound.output' to 'alsa_output.bcm2835-jack.stereo-fallback'.
22.02.21 21:41:11 (+0100) audio W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
22.02.21 21:41:12 (+0100) audio E: [pulseaudio] module-bluetooth-policy.c: Failed to parse module arguments
22.02.21 21:41:12 (+0100) audio E: [pulseaudio] module.c: Failed to load module "module-bluetooth-policy" (argument: "a2dp_source=true hfgw=true auto_switch=2"): initialization failed.
22.02.21 21:41:12 (+0100) audio 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
22.02.21 21:41:12 (+0100) audio 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
Also, I tried running paplay /usr/share/sounds/alsa/Front_Center.wav
from the audio terminal and no audio where produced.