XBMC Community Forum
[LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: [LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI (/showthread.php?tid=59877)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


- Wingie - 2009-12-26 17:49

Call me stupid, but I can't get MP3 sound working with alsa and also the speakertest gives no sound although sound in XBMC works fine.

My Setup:
- Reciever Onkyo TX SR-606
- HTPC Asrock ION 330HT-BD
- Panasonic pz85 plasma
I'm using a HDMI-cable from my asrock ion 330-HT to my receiver Onkyo SR-605

XBMC:
- 9.11 Final
- Updated alsa to 1.0.22
- audio settings: digital, hdmi, hdmi and resample to stereo selected.

I've installed alsa 1.0.22, ran alsamixer saw everything is on (exept spdif) and volume is up. Tested XBMC and 5.1 sound works perfectly.

1) No menu sound,to fix this I created a file in my home dir called ".asoundrc" with the following content:
Code:
pcm.!default {
type plug
slave {
pcm "hdmi"
}
}

2) From a commandline entered the command: speaker-test -Dhdmi -c2 -r48000 -FS16_LE

Code:
root@XBMC-LIVE:~# speaker-test -Dhdmi -c2 -r48000 -FS16_LE

speaker-test 1.0.22

Playback device is hdmi
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

This is because XBMC is running, so I killed it
Code:
#!/bin/bash

# Test to see if XBMC is running first
if ps -ef|grep -v grep|grep -i xbmc.bin
then
# Try a clean kill
ps aux|grep -i xbmc|grep -v grep|grep -i xbmc.bin|awk '{print $2}'|xargs kill
echo `date` "Killed XBMC! (soft)" >> /tmp/killXBMC.log
else
echo "XBMC already dead! (soft)"
exit
fi

# takes a second or two to die with the soft kill
sleep 2

# Test to see if it's still running
if ps -ef|grep -v grep|grep -i xbmc.bin
then
# If it's still around, kill it -9
ps aux|grep -i xbmc|grep -v grep|grep -i xbmc.bin|awk '{print $2}'|xargs kill -9
echo `date` "Killed XBMC! (hard)" >> /tmp/killXBMC.log
else
echo "XBMC already dead! (hard)"
exit
fi

New test
Code:
root@XBMC-LIVE:~# speaker-test -Dhdmi -c2 -r48000 -FS16_LE

speaker-test 1.0.22

Playback device is hdmi
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
1 - Front Right

But no sound so I started X with command: startX, logedin on a new terminal (ctrl+alt+2) to execute speaker-test command but still no sound from my reciever.

How can i Fix this so my speakertest will give any noise??

3) When I use the youtube script and play a movie I can see with the info button it has MP3 sound but I don't here anything.

Is this possible to fix for example by altering the asoundrc file?


- hahel - 2009-12-26 21:28

Kali Wrote:i have PCM and S/PDIF on alsamixer
what's you receiver?

I Have a Pioneer LX-01, it should be capable of handling most of the current audio formats.

From the specs.

Dolby Digital Yes
Dolby Digital Plus Yes
Dolby TrueHD Yes
DTS Yes
DTS-HD Master Audio Yes

/HÃ¥kan


- Kali - 2009-12-26 23:08

some problem with modules?
remove /etc/modprobe.d/alsa-base.conf and run alsaconf

after reboot check if all modules are loaded

# lsmod | grep snd
snd_hda_codec_nvhdmi
snd_hda_codec_realtek
snd_hda_intel
snd_hda_codec
snd_pcm
snd_timer
snd
soundcore
snd_page_alloc


- hahel - 2009-12-28 19:46

Kali Wrote:some problem with modules?
remove /etc/modprobe.d/alsa-base.conf and run alsaconf

after reboot check if all modules are loaded

# lsmod | grep snd
snd_hda_codec_nvhdmi
snd_hda_codec_realtek
snd_hda_intel
snd_hda_codec
snd_pcm
snd_timer
snd
soundcore
snd_page_alloc

I'll try this, i've downloaded the 9.11 LiveCD and booted it. It works just fine, pitty the install portion seems to be broken right now otherwise a reinstall from this CD would have been an option.


- Phantisy - 2009-12-30 06:12

Any idea on the no mp3 sound issue yet? I was hoping to have this fixed by new years eve. I am having a party and was hoping to be able to play my music from my htpc. Smile


- mikestik - 2009-12-30 09:43

Have you got sound if you plug the hdmi straight into the TV? I have this problem with 9.11 for ages now. I've got a Yamaha amp.

Found this on the ubuntu forum

http://www.gossamer-threads.com/lists/mythtv/users/388582

9.04.1 works for me, 9.11 = no sound at all


- jdandc - 2009-12-30 15:11

Just wanted to say thanks for taking the time and effort to write such a detailed and informative thread. I resolved my issue no end, after much searching etc.

Huge thanks.
Wink


- jdandc - 2009-12-30 15:35

Hi Alanwww1,

I just wanted to share my appreciation for this most helpful thread, resolved my issue and taught me some new tricks on the way.

My sound issues are now sorted, only my lirc issues and getting Visual Effects to stay at none and I am 100% sorted.

Thanks again.


- ssimon - 2009-12-30 18:26

Hello alanwww1,

I wanted to thank you 1st. I followed your excellent ALSA Audio guide and managed to get my multichannel audio LPCM over HDMI to work on my Acer Revo 1600! YEY!

Only issue I found is that the LFE (base) seems to be super loud and almost on all the time. I cannot raise the volume on playback as the LFE practically blows out my subwoofer. This issue is limited to the LPCM output from XBMC as my cable box and Xbox do not have this problem on HDMI.

I ran the alsamixer but there is no way to control the LFE volume. Any suggestions to lowering the LFE?

Thanks in advance!


- Phantisy - 2009-12-30 23:22

mikestik Wrote:Have you got sound if you plug the hdmi straight into the TV? I have this problem with 9.11 for ages now. I've got a Yamaha amp.

Found this on the ubuntu forum

http://www.gossamer-threads.com/lists/mythtv/users/388582

9.04.1 works for me, 9.11 = no sound at all

Still no sound. Funny thing is that my movies with mp3 sound play fine. ALL my movies play fine no matter what the sound source is. Its when I play just a MP3 that I have no sound.