YMMV

* your mileage may vary

Saturday, 16 January 2016

ALSA Configuration for Jessie (Raspberry Pi or BBB)

For ALSA audio under Jessie update the .asoundrc file in the home directory

pi@raspberrypi:~ $ 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: Device [USB Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Create or modify .ascoundrc to align card number with output from aplay -l.
nano .asoundrc
///

pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw
        card 1
}

No comments:

Post a Comment