RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    VICE no sound with HIFIBERRY

    Scheduled Pinned Locked Moved Help and Support
    vicehifiberry ampno soundretropie 4.1
    4 Posts 4 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bruceiow
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • B
        BinaryBond007
        last edited by

        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_dacplus

        Anyway, you want:

        pi@retropie:~ $ cat /proc/asound/modules
        0 snd_soc_hifiberry_dacplus
        1 snd_bcm2835

        The 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=1

        Does 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...

        C 1 Reply Last reply Reply Quote 0
        • edmaul69E
          edmaul69
          last edited by edmaul69

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • C
            cubelindo @BinaryBond007
            last edited by cubelindo

            @binarybond007

            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=1

            aplay -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 #0

            Edit: bad formatting

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.