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

    Swap from USB audio to speaker in PiBoy DMG?

    Scheduled Pinned Locked Moved Help and Support
    usb audiopiboy dmg
    5 Posts 2 Posters 694 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.
    • F
      Firebird_WS6
      last edited by

      Pi Model or other hardware: Pi4 4Gb
      RetroPie Version Used: 4.6
      Built From: Experimental Pi, PiBoy DMG image

      There is a low level hiss both via the speaker and the headphone jack (although it's more noticeable via the headphone jack). To eliminate this hiss when using headphones, I got a USB audio dongle working using the following method:

      sudo nano /etc/modprobe.d/alsa-base.conf
      typed the following lines:  
      
      options snd_usb_audio index=0
      options snd_bcm2835 index=1
      options snd slots=snd-usb-audio,snd-bcm2835
      
      Ctrl+X to exit and answered Yes when prompted to save
      

      My problem is that the PiBoy DMG speaker is still disabled if the USB dongle is unplugged. I thought the Pi4 would use the next available audio card with no USB dongle present?

      Is there a way to swap between USB audio and built in speaker without having to go in and edit config files each time?

      1 Reply Last reply Reply Quote 0
      • brandflake11B
        brandflake11
        last edited by

        I really wish there was an easy way to switch sound cards with retropie. Is there a way to get emulationstation to have the ability of doing that through its audio settings menu? I want to say that KODI has the ability of switching sound cards easily. How do we get this working with retropie?

        F 1 Reply Last reply Reply Quote 0
        • F
          Firebird_WS6 @brandflake11
          last edited by

          @brandflake11 I couldn't find any way to switch audio cards easily from emulation station, other than writing a script to perform the edit of the alsa-base.conf file since it's unique to changing the sound card order. Sadly I stalled at that since my Linux skills are not really up to writing scripts.

          brandflake11B 1 Reply Last reply Reply Quote 0
          • brandflake11B
            brandflake11 @Firebird_WS6
            last edited by brandflake11

            @Firebird_WS6
            You could probably do a diff to do it. What are the differences between the two configurations?

            F 1 Reply Last reply Reply Quote 0
            • F
              Firebird_WS6 @brandflake11
              last edited by

              @brandflake11 One is with the alsa-base.conf file present as above (for USB audio), the other is with alsa-base.conf either deleted or commands commented out (for no USB audio and default built in speaker). I'm not familiar with a diff unfortunately.

              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.