Double_digit
Posts: 4
Joined: Sun Mar 08, 2015 7:11 am

Raspberry and 5.1 audio

Sun Mar 08, 2015 7:24 am

Hello everyone!

First of all just wanted to say it's my first post here and wanted to thank you all for a fantastic job. I think the raspberry pi is an amazing little machine that can revolutionize computing at its core.

On with my request. I currently own a raspberry pi that I have connected to my secondary tv running raspBMC and I love it.

Now I'm consedering buying another one for my main TV running the same software to replace the pc I have connected to the tv. The thing is I have a 5.1 speaker system connected to a subwoofer with RCA cables and then from there to my PC through TRS jacks.

Is it possible to connect this somehow to the raspberry? With some kind of HDMI splitter?

Thank you very much!

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5144
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry and 5.1 audio

Sun Mar 08, 2015 3:17 pm

Just to confirm your 5.1 amp only has RCA inputs? No optical/spdif?

If so, then it's a bit of a niche product required (RCA 5.1 is quite old, vs the much newer hdmi, and therefore is more expensive that HDMI/optical splitter.
Something like this would probably work:
http://www.amazon.com/ViewHD-Extractor- ... B00L0XIHEC

Double_digit
Posts: 4
Joined: Sun Mar 08, 2015 7:11 am

Re: Raspberry and 5.1 audio

Sun Mar 08, 2015 5:16 pm

So to be more specific (sorry, im not a big audio guy).

I have Creative Labs 5300 Inspire 5.1 Computer Speakers.

I know they are a bit old, but i think i can still get more time out of them

And these are the connections:
From speakers to Subwoofer Through RCA
ImageImage

And from there to my PC with TRS jacks.
Image

Im not sure the one you sent me will work because I assume the splitter should have 3 TRS connections. Could this be right?
If so which splitter should I get?
I know the speakers are a bit old, but i still think i can get some more time out of them before getting new ones.

Thank you!

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5144
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry and 5.1 audio

Sun Mar 08, 2015 5:34 pm

Yes, you don't that hdmi splitter.

You may be able to do this with a USB alsa device. Something like this.
But it's really making a lot of assumptions about whether you can mix and match the alsa card with speakers, and it's not always clear how well usb alsa devices will be supported by linux.

fruitoftheloom
Posts: 16914
Joined: Tue Mar 25, 2014 12:40 pm

Re: Raspberry and 5.1 audio

Sun Mar 08, 2015 5:35 pm

On you PC you have 3 ouputs which presume are Front, Rear and Centre to the Creative Sound

This USB Sound Card has also Front, Rear and Centre output

http://www.amazon.co.uk/External-Sound- ... B003TO3KHY

This for under £15.00 is worth a try, but have another tried myself ;)
Adieu

Double_digit
Posts: 4
Joined: Sun Mar 08, 2015 7:11 am

Re: Raspberry and 5.1 audio

Sun Mar 08, 2015 5:49 pm

Thank you very much!!

I will buy this one and see if it works:

http://www.amazon.co.uk/External-Sound- ... uctDetails

TeriBear
Posts: 1
Joined: Wed Jul 29, 2015 10:28 am

Re: Raspberry and 5.1 audio

Wed Jul 29, 2015 10:29 am

Hello,

Have you tried it with the external audio card?
I am facing the same issue and want to know if it works properly.

Double_digit
Posts: 4
Joined: Sun Mar 08, 2015 7:11 am

Re: Raspberry and 5.1 audio

Thu Jul 30, 2015 5:19 am

Hi! I bought that one I mentioned, and it works perfectly!

SzaChe
Posts: 1
Joined: Sun Jan 29, 2017 1:41 pm

Re: Raspberry and 5.1 audio

Sun Jan 29, 2017 1:47 pm

Hi,

Can you give me some instruction how can i use usb 5.1 sound card? I've used it with computer, butit wasnt big deal to configure it. With Rpi 3 i have major issues, if i change sound output to 5.1 usb kodi cannot play any sound.

Do you haveany recommendation?

thanks

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5144
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry and 5.1 audio

Mon Jan 30, 2017 1:25 pm

SzaChe wrote: Can you give me some instruction how can i use usb 5.1 sound card? I've used it with computer, butit wasnt big deal to configure it. With Rpi 3 i have major issues, if i change sound output to 5.1 usb kodi cannot play any sound.
spdif (optical/toslink) only supports two physical channels. That can be used for stereo PCM or compressed AC3 (DDP) or DTS passthrough.

If you are using this interface the set "number of channels" to 2.0. Enable AC3 and DTS passthrough. Enable AC3 transcode.
You should now get multichannel audio output.

User avatar
flatmax
Posts: 336
Joined: Thu May 26, 2016 10:36 pm

Re: Raspberry and 5.1 audio

Wed Feb 01, 2017 11:41 am

Another approach is to use a multichannel GPIO sound card. Would have a few advantages.
You can see a short list of available GPIO sound cards here.
The Ultra 2 sound card - Preview now on kickstarter : https://kck.st/2H95YIz
Sound card for the Raspberry Pi with inbuilt microphone : http://www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card : http://www.audioinjector.net

loadbang
Posts: 33
Joined: Mon Aug 13, 2012 4:56 pm

Re: Raspberry and 5.1 audio

Thu Mar 16, 2017 8:58 pm

I just use a HDMI to toslink converter. Also has HDMI passthru.

https://www.amazon.co.uk/s/ref=nb_sb_ss ... 2F0O11PQUN

RPi also powers these devices via HDMI, so no need for an external PSU. :D

I use this one: https://www.amazon.co.uk/Converter-Adap ... to+toslink

Just set it to 5.1 audio on the device (there is a switch) as it sets EDID to tell the RPi it is connected to a device which supports 5.1 (DTS or DD work). Set Kodi, VLC or whatever to output as 'passthru'.

timbo89
Posts: 2
Joined: Mon Sep 04, 2017 11:37 pm

Re: Raspberry and 5.1 audio

Wed Sep 06, 2017 10:49 pm

loadbang wrote:
Thu Mar 16, 2017 8:58 pm
I just use a HDMI to toslink converter. Also has HDMI passthru.

https://www.amazon.co.uk/s/ref=nb_sb_ss ... 2F0O11PQUN

RPi also powers these devices via HDMI, so no need for an external PSU. :D

I use this one: https://www.amazon.co.uk/Converter-Adap ... to+toslink

Just set it to 5.1 audio on the device (there is a switch) as it sets EDID to tell the RPi it is connected to a device which supports 5.1 (DTS or DD work). Set Kodi, VLC or whatever to output as 'passthru'.
Do you know if these support CEC passthrough?

I'm trying t decide how to set up something similar myself, but i'd hate to have to lose the CEC function.

Roken
Posts: 195
Joined: Sun Dec 31, 2017 4:35 pm

Re: Raspberry and 5.1 audio

Tue Apr 24, 2018 5:11 am

You suggest that you already have a PC plugged into the screen you wish to use. If so, (notwithstanding sharing the display) you can get the audio for free, if the PC is running Linux.

  • Ensure that the PC is using properly configured pulseaudio for sound.
  • On the Pi, install pulseaudio, and modify /etc/pulse/client.conf
  • Uncomment default_server and add "tcp:IP_OF_PC" after the equals (no quotes). Obviously replace IP_OF_PC with the actual local IP
  • Restart pulse on the Pi (or just restart the Pi)

You should now have 5:1 audio from the Pi via the PC.
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10708
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry and 5.1 audio

Tue Apr 24, 2018 9:34 am

Dolby Pro logic II 5.1 Audio is just encoded into a stereo signal (phase behavior between the two signals).
So any device that can play a stereo signal should be able to play a 5.1 audio signal.
Obviously the 5.1 signal must be encoded into the stereo signal before you will notice a surround sound effect.
https://en.wikipedia.org/wiki/Dolby_Pro ... o_Logic_II

Return to “Media centres”

Who is online

Users browsing this forum: No registered users and 6 guests