nibbo
Posts: 3
Joined: Fri Jan 30, 2015 11:45 am

Raspbian and surround sound (5.1) with ALSA

Sun Feb 22, 2015 11:59 am

Hi there,

I've got a problem setting up my surround sound. At this point I'm even doubting it be possible anyway. Perhaps you can get me in the right direction.

What I have:
- RPi 2 B with Raspbian (2015-02-16-raspbian-wheezy) with no additional hardware of any kind attached.
- Connection over HDMI to a 5.1 receiver for test, later 7.1 for production, both with not necessarily a TV connected to said receiver.

What I want:
- Being able to use 5.1 (or 7.1) surround preferably using just ALSA, not PulseAudio or consorts, over HDMI
- I want to play sounds using BASS and MONO for a dynamic sound-show in a (non-profit) museum. With BASS I can play samples to a specific channel, therefore my RPi needs to report them first. Which also means just PCM, no DTS/Dolby, though i'm not sure me saying this makes any sense. (I have the software ready, works like a charm on a Windows machine but I need it to be more embedded ;-))

The problem:
At this moment using "speakertest -c 6" only plays on left and right (so stereo) channels. "alsamixer" is only reporting a single PCM channel.

What I did so far:
Besides breaking my head, installing PulseAudio, being more puzzled after that and purged it, "reinstalling" Raspbian multiple times to get fresh start.

I already set this in the /boot/config.txt:

Code: Select all

hdmi_drive=2
hdmi_force_edid_audio=1
Believing this might be related to not getting the right EDID info from the receiver.

"aplay -l" output:

Code: Select all

**** 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
So far I've been trying everything over SSH, not sure if that makes any difference. I also tried it with a RPi 1 B but had the same problems. I'm quite puzzled on what to do, since I find a lot of info about the mediacentre distro's but thats not what I want.

Would be really grateful I you guys can help me out or point me in the right direction!

Kind regards, nibbo

potuz
Posts: 7
Joined: Sun Jul 23, 2017 10:47 am

Re: Raspbian and surround sound (5.1) with ALSA

Sat Nov 17, 2018 11:10 am

I'm having exactly the same problem with the same outputs for all commands, did you find an answer?

nibbo
Posts: 3
Joined: Fri Jan 30, 2015 11:45 am

Re: Raspbian and surround sound (5.1) with ALSA

Sat Nov 17, 2018 11:21 am

Unfortunately not, I solved it by using an external USB 7.1 sound card, I believe it was of the Renkforce brand. Then suddenly it reported all channels fine, so must be related to Raspbian? I didnt have a chance to try it on a more recent version of Raspbian, but I figure since you're posting this now, you have the latest raspbian version.

Havent got my hands on a pi 3 yet, so don't know if it works on that...

potuz
Posts: 7
Joined: Sun Jul 23, 2017 10:47 am

Re: Raspbian and surround sound (5.1) with ALSA

Sun Nov 18, 2018 12:07 am

I'm running gentoo, so it's not a Raspbian issue

Return to “Troubleshooting”