Closed richardpringle closed 3 years ago
(I have two Pis and two DACs so I don't think any of the hardware is faulty)
To update: when I hardcode alsa_output.1.stereo-fallback
in the start.sh
script, everything works perfectly (although I still get one of those 24.11.20 13:39:49 (-0500) audio E: [pulseaudio] main.c: Sink alsa_output.dac.stereo-fallback does not exist.
instead of two).
I'm actually not quite sure what happens when I use the one-click-deploy with Balena-cloud. Before manually pushing edits, would Balena-Cloud have picked up new versions from this repo? Or would I have had to upgrade manually anyway?
And another question (feel free to get me to write this in a forum somewhere)... are there more configuration options? I see from this
Sink #1
State: SUSPENDED
Name: alsa_output.1.stereo-fallback
Description: Built-in Audio Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 7
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.1.stereo-fallback.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HiFiBerry DAC+ HD HiFi pcm179x-hifi-0"
alsa.id = "HiFiBerry DAC+ HD HiFi pcm179x-hifi-0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "snd_rpi_hifiberry_dacplushd"
alsa.long_card_name = "snd_rpi_hifiberry_dacplushd"
alsa.driver_name = "snd_soc_hifiberry_dacplushd"
device.bus_path = "/devices/platform/soc/soc:sound/sound/card1"
sysfs.path = "/devices/platform/soc/soc:sound/sound/card1"
device.form_factor = "internal"
device.string = "hw:1"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
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"
Ports:
analog-output: Analog Output (priority: 9900)
Active Port: analog-output
Formats:
pcm
that the resolution is 16bits and the sample rate is configured to 44.1kHz. From the datasheet, it looks like this board can handle a resolution of 24bits and a sample rate all the way up to 192kHz, is it possible to change these values?
@richardpringle did you change the dtparams to say audio=off instead of audio=on ?
i bet it's the latest pulseaudio update causing the problem. you can try to downgrade pulseaudio and restart: sudo apt install pulseaudio=12.2-4+deb10u1 libpulse0=12.2-4+deb10u1 pulseaudio-utils=12.2-4+deb10u1 libpulsedsp=12.2-4+deb10u1
@shawaj, tried, didn't help
@aandroide, I could downgrade, but that's just as much effort as hardcoding the name of the Sink
@richardpringle with the audio=off set is it still sink 1 not sink 0?
Aha I've spotted the issue I think.
The udev rules don't currently have an entry for snd-rpi-hifiberry-dacplushd
https://github.com/balenablocks/audio/blob/master/udev/95-balena-audio.rules
Relates to #296
Will submit a PR to fix this later.
@richardpringle until the PR is merged, you should be able to get this working by following the instructions here https://github.com/balenalabs/balena-sound/issues/377#issuecomment-752152387
Duplicate of #377
Closing this issue now in favour of #377
Necessary changes were pulled to the audio block in https://github.com/balenablocks/audio/pull/49
You can update by using git pull
and balena push -c
to rebuild if using balena CLI to build again without using cached images.
I had everything working beautifully before plugging in the DAC.
I tried some things from #296 to no avail. The aux output isn't working either anymore.
Here are the logs from the
audio
container:The audio jack doesn't seem to work either.
The output from running
pactl list sinks
in theaudio
container is as follows:... so the device is there as
Sink #1
(which is different than in #296 where it wasSink #0
). So it's being detected atalsa_output.1.stereo-fallback.monitor
instead ofalsa_output.dac.stereo-fallback.monitor
.Output from
http://<device_ip>:3000/support
And running
dmesg | grep hifi
and finally
dmesg | grep snd