[LINUX] HOW-TO get Digital Audio Pass-Through Output working on Linux with XBMC
#16
Hi mate thanks for replying, ill test as soon as I can.
Reply
#17
I checked my output from aplay -l, and after each reboot it still says:

Code:
xbmc@xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [USB Sound Device        ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
xbmc@xbmc:~$

first two being my internal card, last one being the one i need to use.

I reinstalled today as well (because i updated the alsa driver to 1.0.23 and that totally hangs the computer)

In my gnome alsa mixer i have four columns for my usb card, speaker, PCM, line and mic. Mic the only one being muted.
I have two chcekboxes, "PCM Capture source" & "IEC958 in". Last one is checked.

I followed the guide again and i only get silence or buzzes (different kinds of buzzes depending on what movie clip i play)

(oh and the only thing that is connected through usb on the machines is the sound card, mouse and keyboard)

Thanks for you help guys.

br,

Ravee
Reply
#18
In (Gnome-)Alsamixer, could you have a look at the menu: "Tools > Properties of soundcard"? I hope that you can tick, and activate, more properties of your sound card. This because you did not mention an IEC958 (= digital audio passtru) OUT (you did mention the IN, however).

If Alsamixer does not report an OUT then dig. passtru is not (yet?) supported for your audio card. You could have a look at the box your card came to see if it is even advertised. Also, you could boot into Windows, install the drivers the card came with and try to determine if s/pdif OUT is supported in Win. If it ain't, then it will probably never be supported...

Good luck Smile
Reply
#19
Hi!

Thanks for reply, yeh the sound card was brought only for this and as advertised on the box:
* Full digital sound
* For 2.1, 5.1 and 7.1 speaker sets
* S/PDIF optical digital input and output
* Full-duplex recording and play-back
* Powered by USB, no power adapter required

I dont even have a menu option that is called "tools". I have edit but nothing i can change in there.

Oh well, going to windows then... Sad

Ty for the help

br,

Ravee
Reply
#20
I have been able to get it working for intel HDA cards on two systems

o Make pulseaudio output go to analog out
o in alsamixer, unmute spdif and spdif default pcm

This way, I easily get both passthrough and pulseaudio working smmothly side
by side.
Reply
#21
mowgli80 Wrote:I have been able to get it working for intel HDA cards on two systems

o Make pulseaudio output go to analog out
o in alsamixer, unmute spdif and spdif default pcm

This way, I easily get both passthrough and pulseaudio working smmothly side
by side.
Thanks for the super tip. How exactly did you setup PA to use alalog out? Doet PA have a setup prog?
Reply
#22
I noticed in your first post that you said you weren't able to to get passthrough working on Live. I believe I know how to get passthrough to work on Live (Dharma beta 3 tested) on an ION-based box (I've used two Revo 1600 boxes to test this) via HDMI connection.

1) SSH into your box, then type the following:

Code:
sudo apt-get update

2)

Code:
sudo apt-get install wget

3)

Code:
sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf

4)

Code:
sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf

5) In the system audio settings, I believe everything is set to HDMI (including passthrough device) and then make sure the DTS (and whatever the other one is) is checked.

6) Reboot

Works now?
Reply
#23
@Alexpigment: thank you very much for the Howto. Do you know how it works if one does not have an intel soundcard, but a C-Media CMI8738 based one?
Reply
#24
is there any sense to use passthrough for mp3/aac streams ?
Does passtrough improve the quality of sound in this case ?
Nvidia Shield
kodi 18.1 RC1
Reply
#25
Wow i've been struggling for hours/days to get XBMC with DTS working on my ION system which is connected through HDMI to my Denon receiver. All i've tried failed but removing pulse audio seems to work a little bit. Cause when i start a DTS movie i have DTS sound, but the image is stuttering so hard that its impossible to watch.
But before i removed pulse audio the image was smooth but just no DTS sound.

Still i don't know how to fix it Sad
Reply
#26
Wimploo Wrote:Still i don't know how to fix it Sad

http://forum.xbmc.org/showthread.php?tid=34655
OpenElec Standalone --> Asus Chromebox 'Panther' --> Onkyo TX-NR709 --> Sony 55" X85C Android TV (also with Kodi!)
Asus Chromebox EZ Script
Kodi on Sony Bravia Android TVs
Reply
#27
alexpigment Wrote:I noticed in your first post that you said you weren't able to to get passthrough working on Live. I believe I know how to get passthrough to work on Live (Dharma beta 3 tested) on an ION-based box (I've used two Revo 1600 boxes to test this) via HDMI connection.

1) SSH into your box, then type the following:

Code:
sudo apt-get update

2)

Code:
sudo apt-get install wget

3)

Code:
sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf

4)

Code:
sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf

5) In the system audio settings, I believe everything is set to HDMI (including passthrough device) and then make sure the DTS (and whatever the other one is) is checked.

6) Reboot

Works now?

Running Dharma Beta 4 Live, I tried all these steps on asus AT3ION-I Deluxe and cannot get audio via HDMI. Without these steps, I can get audio via spdif and only get "static" via hdmi. After these steps applied I get the same behavior. So no go on AT3ION-I.
Reply
#28
tafypz Wrote:Running Dharma Beta 4 Live, I tried all these steps on asus AT3ION-I Deluxe and cannot get audio via HDMI. Without these steps, I can get audio via spdif and only get "static" via hdmi. After these steps applied I get the same behavior. So no go on AT3ION-I.
1. You're usng the 'live' variant of xbmc: one may read in my first post that I didn't get it to work either w/ s/pdif.

2. HDMI audio? Depends on the status of your hardware driver. I am under the impression that hdmi audio out (= dig. au. out) is still being very actively developed by the various driver programmers. See if you can find a website or forum topic anywhere (Google!) on your specific hardware setup. You may have to upgrade (software or drivers) to get it to work.

Good luck Smile
Reply
#29
P.S. Added the following remark to my top post:
"Geting dig. au. out via HDMI seems to be difficult too. I do not own hdmi hardware so I heve no personal experience w/ that. But it seems to me that drivers for the hdmi part of video cards are still in active development and that it depends on Alsa supporting it. A separate sticky How To about hdmi and dig. au out may be necessary."
Reply
#30
I wanted to add my experience and thank the OP for this awesome thread!

Following the directions in Ubuntu 10.10 produced the expected results. I could get audio and passthrough, but no menu sounds. Also Mupen64Plus did not work at all after removing pulse (it didn't have sound in the first place).

The magic touch was this:
Code:
sudo apt-get install libsdl1.2debian-alsa
Note: Installing that will also remove libsdl1.2debian-pulseaudio

But once libsdl1.2debian-alsa was installed, mupen64plus worked, and so did all of the xbmc menu sounds, as well as mp3s, and digital passthrough. Amazing!!!!



Under Ubuntu 10.10, here were my steps to get my SPDIF passthrough (to hdmi) working with all sounds:
removed ~/.asoundrc
sudo apt-get purge pulseaudio gstreamer0.10-pulseaudio
sudo apt-get autoremove
sudo apt-get install alsa-base alsa-tools alsa-tools-gui alsa-utils alsa-oss linux-sound-base alsamixergui
sudo apt-get install esound esound-clients esound-common libesd0 gnome-alsamixer
sudo apt-get install libsdl1.2debian-alsa

reboot

run gstreamer-properties
Plugin: alsa
Device: default

xbmc settingsOptical/Coax
Audio Device: Defaults
Audio Passthrough: plughw:0,0
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO get Digital Audio Pass-Through Output working on Linux with XBMC2