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


I decided to try it... - sierradump - 2009-11-14 00:15

Hardware = Acer Revo

Well since I was bored and sound wasn't working right in XBMC I decided to reinstall for the 1,000,000 time and try using your guide "THE ALSA WAY" to get this to work.

STEPS:

1.) installed minimal ubuntu
2.) installed my nVidia drivers
3.) followed PART 1 of your guide. Since I didn't install any sound stuff yet, I used your - DPI example.

I am now at the "waiting 10-15 minutes" step but I think I ran into trouble. I was tailing the install and it seems to be done -but finished with this message:

Code:
./pci/snd-bt87x.ko
./pci/ali5451/snd-ali5451.ko
./pci/au88x0/snd-au8820.ko
./pci/au88x0/snd-au8810.ko
./pci/au88x0/snd-au8830.ko
./pci/snd-ens1371.ko
./pci/snd-via82xx.ko
./pci/snd-ens1370.ko
chmod: cannot access `/dev/dsp': No such file or directory
chmod: cannot access `/dev/mixer': No such file or directory
chmod: cannot access `/dev/sequencer': No such file or directory
chmod: cannot access `/dev/midi': No such file or directory
rm: cannot remove `asound.state': No such file or directory

Any ideas? or is that normal?



EDIT/UPDATE:

I continued to PART 2 and now I have another issue:

Code:
root@XBMC-Revo1:/home/xbmc# /usr/bin/amixer -q -c 0 sset 'IEC958 Default PCM',0 unmute
amixer: Unable to find simple control 'IEC958 Default PCM',0

root@XBMC-Revo1:/home/xbmc# /usr/bin/amixer -q -c 0 sset 'IEC958',0 unmute && /usr/bin/amixer -q -c 0 sset 'IEC958',1 unmute
amixer: Unable to find simple control 'IEC958',1

root@XBMC-Revo1:/home/xbmc# sudo alsactl store
root@XBMC-Revo1:/home/xbmc# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Nov 13 2009 for kernel 2.6.28-16-generic (SMP).
root@XBMC-Revo1:/home/xbmc# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  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
root@XBMC-Revo1:/home/xbmc#

as you can see these commands didn't work for me:
Code:
/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

ALSA MIXER IS SHOWING "ZERO" IEC devices? But it is showing a S/PDIF which I DO NOT HAVE a plug for on the back of the device?


- Kali - 2009-11-14 00:36

@alanwww1, to speedup the alsa compilation process add to configure --with-cards="hda-intel" (the only needed driver)

on zotac ion but i think all ion based mb, can be also be added --with-card-options="hda-codec-nvhdmi,hda-codec-realtek"


- alanwww1 - 2009-11-14 01:11

Kali Wrote:@alanwww1, to speedup the alsa compilation process add to configure --with-cards="hda-intel" (the only needed driver)

on zotac ion but i think all ion based mb, can be also be added --with-card-options="hda-codec-nvhdmi,hda-codec-realtek"

Thx


- alanwww1 - 2009-11-14 01:14

sierradump Wrote:root@XBMC-Revo1:/home/xbmc# /usr/bin/amixer -q -c 0 sset 'IEC958 Default PCM',0 unmute
amixer: Unable to find simple control 'IEC958 Default PCM',0

These amixer lines are just for unmuting the necesary controls. I should have just written: run alsamixer and unmute your hdmi, iec channels.

So i think your setup is ok.


- sierradump - 2009-11-14 01:36

@alanwww1

But I no longer have any IEC958 option in my ALSAMIXER. Originally I had IEC958 and I could mute/unmute.

After following your guide, when I type ALSAMIXER, I have SEVERAL new channels but "ZERO" IEC958?

I now see something called PCM. I did NOT have that before?

SO--- Does it seem correct that I have NO (zero) IEC958 channels in my Alsamixer?

What then do I do for that step -- Do I just unmute the PCM and MASTER channels?





P.S.

What about this error, is it normal?

Code:
./pci/au88x0/snd-au8830.ko
./pci/snd-ens1371.ko
./pci/snd-via82xx.ko
./pci/snd-ens1370.ko
chmod: cannot access `/dev/dsp': No such file or directory
chmod: cannot access `/dev/mixer': No such file or directory
chmod: cannot access `/dev/sequencer': No such file or directory
chmod: cannot access `/dev/midi': No such file or directory
rm: cannot remove `asound.state': No such file or directory



- alanwww1 - 2009-11-14 01:43

@Sierradumb:

Just tray the speakerstest in an xterminal or gnome and you will see...


- sierradump - 2009-11-14 01:48

Sorry for so many questions - I am just confused as after I run through "part1" of your setup, I lost IEC958 in alsamixer, but now I have a PCM, S/PDIF and some other channels (which I did NOT have before?). Just trying to figure out what needs to be muted/unmuted.

Do I only need to unmute PCM? Or do I also need to unmute S/PDIF ?


- JUICESIX90 - 2009-11-14 02:06

Hi alanwww1,

I've managed to get mine working now. In xbmc I set both Audio Output Device: & Passthrough Output Device: to custom and manually typed in hdmi:CARD=NVvidia.

My only question is about the Onkyo amp (I've noticed in your posts you have one as well) When I play a movie Pure Audio mode kicks in on my amp (the little blue light). Do you have any idea if this is the optimal setting for this amp.

I've searched all over the net but just get conflicting information about it.

Thanks again.


- alanwww1 - 2009-11-14 02:10

JUICESIX90 Wrote:Hi alanwww1,
My only question is about the Onkyo amp (I've noticed in your posts you have one as well) When I play a movie Pure Audio mode kicks in on my amp (the little blue light). Do you have any idea if this is the optimal setting for this amp.

I've searched all over the net but just get conflicting information about it.

Thanks again.

If you don't want to use any sound tuning (like bass, balance etc,) than it is an ideal mode for you.


- JUICESIX90 - 2009-11-14 02:16

alanwww1 Wrote:If you don't want to use any sound tuning (like bass, balance etc,) than it is an ideal mode for you.

Thanks.

It's strange, on some forums I read people stating it's only for 2.1 but my rear speakers are clearly working. Others say that the sub woofer doesn't work but mine does!?!?

Well I think I'll stick with it, it sounds pretty good to me.

I don't know about you but I get very, very pedantic over these things Nerd I have to know if my set up is running the best it can or I won't sleep at night!Laugh