Kodi Community Forum
Unable to get HDMI sound working! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Unable to get HDMI sound working! (/showthread.php?tid=110964)

Pages: 1 2 3


Unable to get HDMI sound working! - 328iGuy - 2011-09-25

I purchased a new TV the other day and now have extremely loud static when using HDMI sound. I am running an ASRock ION 330.

I have got it working on Analog 2.0 sound but can't for the LIFE of me getting Digital sound working at all no matter what I try.....

When I run an a play -l my output is this:

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I have tried hundreds of combinations of settings in xbmc, as well as changing .asoundrc and /etc/asoundrc.conf with no success.

Any recommendations would be GREATLY appreciated, thanks very much in advance! :confused2:


- 328iGuy - 2011-09-25

No ideas? Sad


- atari800 - 2011-09-26

what does your currecnt .asoundrc look like?
Also have you set sound in XBMC to custom? hwplug:0,3 or plughw:0,3
Yes...try both ways, I know it sounds funny but


- 328iGuy - 2011-09-26

atari800 Wrote:what does your currecnt .asoundrc look like?
Also have you set sound in XBMC to custom? hwplug:0,3 or plughw:0,3
Yes...try both ways, I know it sounds funny but

I tried both custom recommended settings above without any luck using HDMI. I just get loud static noise thats all. Which I assume at least means it is trying to go through the correct source?

Here is my .asoundrc file:

Code:
pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "hdmi_hw"
                channels 2
        }
        slaves.b {
                pcm "digital_hw"
                channels 2
        }
        slaves.c {
                pcm "analog_hw"
                channels 2
        }
        bindings.0.slave a
        bindings.0.channel 0
        bindings.1.slave a
        bindings.1.channel 1
        bindings.2.slave b
        bindings.2.channel 0
        bindings.3.slave b
        bindings.3.channel 1
        bindings.4.slave c
        bindings.4.channel 0
        bindings.5.slave c
        bindings.5.channel 1
}

pcm.hdmi_hw {
        type hw

        card 0
        device 3
        channels 2
}

pcm.hdmi_formatted {
        type plug
        slave {
                pcm hdmi_hw
                rate 48000
                channels 2
        }
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_formatted
        control.name hdmi_volume
        control.card 0
}

pcm.digital_hw {
        type hw
        card 0
        device 1
        channels 2
}

pcm.analog_hw {
        type hw
        card 0
        device 0
        channels 2
}



- quotaholic - 2011-09-26

Basic question, apologies if you already have done this but have you popped over to another TTY with ctl+alt+f2 and ran
Code:
sudo alamixer
?

Most of my XBMC live builds I have played with default to muted spdif outs in alsamixer. If you arrow and tab over to all the spdif outs and press the m key it will toggle the mute status. There should be two or three of them depending out your board. A coaxial, optical and hdmi will have three of them. Some builds of xbmc dont have a great alsa package and this may need to be updated. I discovered this when I ran an XBMC-freaks build and checking alsamixer showed more outputs than normal XBMC-live had. If needed sun a
Code:
sudo apt-get update
followed with a
Code:
sudo apt-get upgrade

Again if you have already made these changes apologies. If not give it a shot and let us know how you make out.

quotaholic


- 328iGuy - 2011-09-26

quotaholic Wrote:Basic question, apologies if you already have done this but have you popped over to another TTY with ctl+alt+f2 and ran
Code:
sudo alamixer
?

Most of my XBMC live builds I have played with default to muted spdif outs in alsamixer. If you arrow and tab over to all the spdif outs and press the m key it will toggle the mute status. There should be two or three of them depending out your board. A coaxial, optical and hdmi will have three of them. Some builds of xbmc dont have a great alsa package and this may need to be updated. I discovered this when I ran an XBMC-freaks build and checking alsamixer showed more outputs than normal XBMC-live had. If needed sun a
Code:
sudo apt-get update
followed with a
Code:
sudo apt-get upgrade

Again if you have already made these changes apologies. If not give it a shot and let us know how you make out.

quotaholic

Yup have done all of that as well, unfortunately no luck. Everything is unmated as well in alsamixer.


- quotaholic - 2011-09-26

Can I ask the make and model of the television? Looks like you have the 48k set and everything else that the television would need. Have you gone as far to set the custom passthrough to pcm.hdmi_formatted as well as downmixing to stereo in audio settings?


- 328iGuy - 2011-09-26

quotaholic Wrote:Can I ask the make and model of the television? Looks like you have the 48k set and everything else that the television would need. Have you gone as far to set the custom passthrough to pcm.hdmi_formatted as well as downmixing to stereo in audio settings?

It is a new 60" Sony Bravia LED KDL-60NX810.

Haven't tried that custom passthrough, what would be the exact syntax of it?

I have tried hwplug:0,3 and plughw:0,3?

Thanks


- Bram77 - 2011-09-26

http://forum.xbmc.org/showpost.php?p=889268&postcount=19


- 328iGuy - 2011-09-26

Bram77 Wrote:http://forum.xbmc.org/showpost.php?p=889268&postcount=19

I just tried this with no luck at all, no I don't get the loud hissing sound, I get nothing at all?


- Bram77 - 2011-09-26

(E35 or E46 ? Tongue)

You'll need to reboot after changing your .asoundrc and choose 'HDMI' for the output in system/audio

Disable DD
Disbale DTS

audio output 1: Default(ALSA)
Passtrough output: ie958(ALSA)

What linux version do you use? I highly recommend a 11.04 version from http://www.xbmcfreak.nl/?lang=en. I'm using the latest non-test version with a Asrock 330 HT and it's working perfectly.


- 328iGuy - 2011-09-26

Bram77 Wrote:(E35 or E46 ? Tongue)

You'll need to reboot after changing your .asoundrc and choose 'HDMI' for the output in system/audio

Disable DD
Disbale DTS

audio output 1: Default(ALSA)
Passtrough output: ie958(ALSA)

What linux version do you use? I highly recommend a 11.04 version from http://www.xbmcfreak.nl/?lang=en. I'm using the latest non-test version with a Asrock 330 HT and it's working perfectly.

It WAS an E46 Smile......

I did reboot, however didn't disable DD and DTS, I will try that now.....

I am running the latest LIVE release as I even did another fresh install just to ensure. This is ridiculous that it worked on my 52" Sony LCD, I plug it into the new TV and get this? Doesn't make sense to me?


- 328iGuy - 2011-09-26

Bram77 Wrote:(E35 or E46 ? Tongue)

You'll need to reboot after changing your .asoundrc and choose 'HDMI' for the output in system/audio

Disable DD
Disbale DTS

audio output 1: Default(ALSA)
Passtrough output: ie958(ALSA)

What linux version do you use? I highly recommend a 11.04 version from http://www.xbmcfreak.nl/?lang=en. I'm using the latest non-test version with a Asrock 330 HT and it's working perfectly.

Ok...once I disable DD and DTS, it gives me 2 channel sound without the hissing. However, thats pretty much useless, I need 5.1? Smile


- thethirdnut - 2011-09-26

I'm not sure if you've already expended all your patience, alcohol, etc but if you're willing to take a different garden path this approach has worked well for me.

http://forum.xbmc.org/showpost.php?p=803525&postcount=124


Basically, disable the onboard audio and then use the 'probe_mask' option to disable all but 1 HDMI port as-far-as ALSA is concerned.

From there step through and figure out which is the proper combination of plughw to use.

This only requires two small file modifications.


- 328iGuy - 2011-09-27

thethirdnut Wrote:I'm not sure if you've already expended all your patience, alcohol, etc but if you're willing to take a different garden path this approach has worked well for me.

http://forum.xbmc.org/showpost.php?p=803525&postcount=124


Basically, disable the onboard audio and then use the 'probe_mask' option to disable all but 1 HDMI port as-far-as ALSA is concerned.

From there step through and figure out which is the proper combination of plughw to use.

This only requires two small file modifications.

Very odd, I can run the test command:

aplay -D plughw:NVidia,3 /usr/share/sounds/alsa/Front_Center.wav

This works clear and crisp, yet I can't seem to get a movie to play without the loud static instead of sound??

It seems like when on HDMI it will pass through 2.0 on HDMI fine, but as soon as I select the DTS and DD options it is just a LOUD static noise and can't seem to get it working no matter what combination I try.

Is this a passthrough issue?