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

    error writing /etc/modprobe.d/alsa-base.conf

    Scheduled Pinned Locked Moved Help and Support
    usb audio
    3 Posts 2 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.
    • D
      darky2003
      last edited by

      Hi,

      I'm trying to install an usb audio device but when i follow this tutorial:
      link text
      (Alternate USB Audio Method)
      i keep getting
      error writing /etc/modprobe.d/alsa-base.conf
      After i added these lines:
      options snd_usb_audio index=0
      options snd_bcm2835 index=1
      options snd slots=snd-usb-audio,snd-bcm2835
      And try to save.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @darky2003
        last edited by

        @darky2003 Are you using sudo before running the editor ? It could be a permission problem, since a regular user is not able to write to that file. How are you editing the file ?

        D 1 Reply Last reply Reply Quote 0
        • D
          darky2003 @mitu
          last edited by darky2003

          **
          hey mitu, finaly got it working!
          But now i noticed the snes sounds are stille crackling,
          Am i missing something?**

          Followd this guide:
          link text

          Guide from link:

          Ok, first delete the file /etc/modprobe.d/alsa-base.conf Raspbian Jessie does not use this config file like Wheezy did.

          To find what address your device uses you need to first enter the command aplay -l this shows all audio output devices, and their address. For example, my USB sound card comes up as device 1 in the output which looks like this.

          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 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
          Subdevices: 0/1
          Subdevice #0: subdevice #0
          Now, to set the device to your default card you will need to edit the file /usr/share/alsa/alsa.conf with the command sudo nano /usr/share/alsa/alsa.conf scroll down until you find the lines

          defaults.ctl.card 0
          defaults.pcm.card 0
          and change them to (if your device is also listed as device 1, if not change the 1 to whatever address it was listed at)

          defaults.ctl.card 1
          defaults.pcm.card 1
          Explanation: USB sound cards are registered as card 1 on Raspbian Jessie. On Wheezy they would be registered as card -2 by default and editing /etc/modprobe.d/alsa-base.conf would change that.

          I do not know if this next step is necessary but without it my card wouldn't work.

          Create and edit the file ~/.asoundrc by using the command sudo nano ~/.asoundrc and change it so that it only reads this:

          pcm.!default {
          type hw
          card 1
          }

          ctl.!default {
          type hw
          card 1
          }
          Now your default audio out (speakers) and audio in (mic) are your usb device.

          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.