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

    How to get sound from both Adafruit MAX98357 I2S Amp Raspberry pi zero HDMI

    Scheduled Pinned Locked Moved Help and Support
    soundmax98357hdmi sound
    2 Posts 1 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.
    • SuperPiBOyS
      SuperPiBOy
      last edited by

      Hello,

      Need help please :)

      How to get sound from both Adafruit MAX98357 I2S Class-D Mono Amp and Raspberry pi zero HDMI output on RETROPIE

      Here my hardware configuration :

      -PIGRRL ZERO with HDMI OUTPUT
      -Adafruit MAX98357 I2S Class-D Mono Amp with a speaker 0.5w 8ohm
      -RETROPIE 4.3

      For the video output, my PIGRRL ZERO Works with the PITFT 2.2 and HDMI out from the RASPBERY PI ZERO together.

      Now , the sound works from Adafruit MAX98357 I2S Class-D Mono Amp but not anymore from hdmi output.

      Here the sound card devices list :
      ##############################
      pi@retropie:~ $ aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
      card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      ##############################

      I think I have to modify /etc/asound.conf but I don’t know how.
      I was looking on Goolge but not found the solution.

      Here my original asound.conf which works with Adafruit MAX98357 I2S Class-D Mono Amp
      ##############################
      pcm.speakerbonnet {
      type hw card 0
      }

      pcm.dmixer {
      type dmix
      ipc_key 1024
      ipc_perm 0666
      slave {
      pcm "speakerbonnet"
      period_time 0
      period_size 1024
      buffer_size 8192
      rate 44100
      channels 2
      }
      }

      ctl.dmixer {
      type hw card 0
      }

      pcm.softvol {
      type softvol
      slave.pcm "dmixer"
      control.name "PCM"
      control.card 0
      }

      ctl.softvol {
      type hw card 0
      }

      pcm.!default {
      type plug
      slave.pcm "softvol"
      }
      ##############################

      Thank you very much for your help

      1 Reply Last reply Reply Quote 0
      • SuperPiBOyS
        SuperPiBOy
        last edited by

        Hi,
        Somebody knows about JACKD and how to run it ?:)
        i think it is a solution.

        Thanks

        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.