VICE no sound with HIFIBERRY
-
Hi guys, I am using vice plus4 on my RPI 3 using v4.1 retropie which is installed using the image from the retropie site. I wanted to get all of my old plus4 games going again. I own an original plus4 but I like the idea of being able to fire up my pi cabinet and play quickly. I have got VICE emulator installed and changed the emulator to use the plus 4 variant but I am having issues getting sound working.
I have the hifiberry mini amp installed on the GPIO pins of the pi and for everything else it works lovely. With VICE I am getting an error when the emulator loads. The error is "VICE ERROR - sound initialization failed for device @alsa". The games load of but with no sound. Looking at the sound settings in the emulator, the output driver is set to ALSA the output mode is set to System. Does anyone know what is going on here? Is there any further logs I could provide to help troubleshoot?
-
I had the exact same issue. All other emulators had sound except vice. Unfortunately my RPi is mounted in a new-production C= 64c case. Not having VICE working right was unacceptable :(
I'm not sure if this is an issue unique to the HiFiBerry, but I suspect that any secondary card will do the same thing. The trick is to reorder the modules.
For example:
pi@retropie:~ $ cat /proc/asound/modules
0 snd_bcm2835
1 snd_soc_hifiberry_dacplusAnyway, you want:
pi@retropie:~ $ cat /proc/asound/modules
0 snd_soc_hifiberry_dacplus
1 snd_bcm2835The trick is to create the following file:
pi@retropie:~ $ cat /etc/modprobe.d/alsa-base.conf
This sets the index value of the cards but doesn't reorder.
options snd_soc_hifiberry_dacplus index=0
options snd_bcm2835 index=1Does the reordering.
options snd slots=snd_soc_hifiberry_dacplus,snd_bcm2835
Finally, if you have a /home/pi/.asoundrc then rename or get rid of that.
I hope that helps...
-
This post is deleted! -
I have the same problem (same ALSA error initializing Vice) with Hifiberry DAC+ Standard, but it seems that I only have one sound module. I was hoping somebody could hint a solution because everything works except Vice (and it is my favourite computer)
If I type
cat /proc/asound/modules
I get
0 snd_soc_hifiberry_dacplus
The rest of my configs:
etc/asound.conf
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}pi@retropie:~ $ cat /boot/config.txt
hdmi_group=2
hdmi_mode=9(comment) Enable audio (loads snd_bcm2835)
(comment) dtparam=audio=on
dtoverlay=hifiberry-dacplus
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256
overscan_scale=1aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0Edit: bad formatting
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.