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

+- Kodi Community Forum (http://forum.kodi.tv)
+-- 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


- Phantisy - 2009-12-21 18:32

Still no idea on my issue back in post 178? All sound is working fine except my mp3 music.


- Kali - 2009-12-21 19:00

some report on 190.53 ?

edit
don't work to :|


- wmilas - 2009-12-23 23:30

alanwww1 Wrote:It is great news. From now we don't have to patch the kernel source code anymore, but as the channel mapping is still wrong in the code we still need those custom files. I will upgrade the whole guide to use with karmic and the new alsa if i have a little time.

So does this mean I can compile and install 1.0.22 then just use the custom /etc/asound and the intel hd file?


- alanwww1 - 2009-12-23 23:38

wmilas Wrote:So does this mean I can compile and install 1.0.22 then just use the custom /etc/asound and the intel hd file?

Yes, exactly. We don't need to patch Alsa anymore. The patch is included. We can now use all sampleformats and frequencies. The custom files only needed because of the wrong channel mapping still in the code.


- wmilas - 2009-12-23 23:48

alanwww1 Wrote:Yes, exactly. We don't need to patch Alsa anymore. The patch is included. We can now use all sampleformats and frequencies. The custom files only needed because of the wrong channel mapping still in the code.

Thanks. One other question. is Nvidia 195.53 still broke sound wise? I was told that it mutes all channels except front L&R or some such when passing 7.1 LPCM?


- wmilas - 2009-12-24 06:11

wmilas Wrote:Thanks. One other question. is Nvidia 195.53 still broke sound wise? I was told that it mutes all channels except front L&R or some such when passing 7.1 LPCM?

Actually I jsut realized there is a 190.53 and a 195.30. Whats the difference?


Troubleshooting help needed Karmic 64bit, XBMC 9.11, Alsa 1.0.22 - hahel - 2009-12-26 15:13

Hi!


I've read the thread and tried to roughly follow the guide on the first page,
I used a modified version of the original Alsa Upgrade script to download and compile ALSA 1.0.22.
This seems to be OK:
Code:
#cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.22.
Compiled on Dec 26 2009 for kernel 2.6.31-16-generic (SMP).

#aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

However the commands:
Code:
/usr/bin/amixer -q -c 0 sset 'Master',0 unmute && /usr/bin/amixer -q -c 0 sset 'Master',0 100
/usr/bin/amixer -q -c 0 sset 'IEC958 Default PCM',0 unmute
/usr/bin/amixer -q -c 0 sset 'IEC958',0 unmute && /usr/bin/amixer -q -c 0 sset 'IEC958',1 unmute
sudo alsactl store

Gives the following results:
Code:
amixer: Unable to find simple control 'Master',0
amixer: Unable to find simple control 'IEC958 Default PCM',0
amixer: Unable to find simple control 'IEC958',1

Running Speakertest -c2/-c6 gives me sound but when running XBMC everything is silent, (video & music).

In my XBMC audio settings dialog there are not the same alternatives as in
http://img27.imageshack.us/i/xbmchdmisetting.jpg//

My AudioOut has a "Internal Audio Digital Stereo (HDMI)" device
My Passthrough device is labeled "hdmi".

HW: M3N78-EM (Geforce 8300) AMD X2 4450
Nvidia driver : 185.18.36

Any suggestions on where i should go from here?

/Håkan


- Kali - 2009-12-26 16:22

hahel Wrote:Gives the following results:
Code:
amixer: Unable to find simple control 'Master',0
amixer: Unable to find simple control 'IEC958 Default PCM',0
amixer: Unable to find simple control 'IEC958',1

this is on alsa 1.0.22 (same error here, but audio work)
check alsamixer manually

what's your output device?


- hahel - 2009-12-26 16:55

Kali Wrote:this is on alsa 1.0.22 (same error here, but audio work)
check alsamixer manually
Alsamixer only shows a S/PDIF output channel.

Kali Wrote:what's your output device?

In XBMC Audio settings?
Audio Output:
Digital +AC3 +DTS
Audio output device:
Internal Audio Digital Stereo (HDMI)
Passtrough output device:
HDMI


- Kali - 2009-12-26 17:21

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


- 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