LinuxMCE Forums

General => Installation issues => Topic started by: tompin2 on July 19, 2012, 07:04:41 am

Title: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on July 19, 2012, 07:04:41 am
Dear all,

I have created this new Post so it help other to find information about his issue.  I started a post about Video issues and ended up with 1 page for video and two more about audio problems.  I hope this help other to share and get all the information needed.

So far my problem is more or less described in post http://forum.linuxmce.org/index.php/topic,12594.0.html  give it a look, there is good information.

So far my problem is that for ZOTAC ZBOX aka ID41 is working half way now, speaker-test works and with some modifications at asound.conf I get the sound working but no ac3 nor DTS (regardless of the pass-through check on web admin).  Other might find this information useful for nvidia hda soundcards using hdmi

On the next post I'll try to copy information from the post above and condense it properly so all the information related to this issue stays in one place.

Cheers,

T
 
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on July 19, 2012, 10:05:57 am
Sorry... I was saying to make your changes to the template, and see if they are preserved, rather than making changes to the /etc/asound.conf file every time.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: bushtech on July 20, 2012, 09:28:29 am
Still trying to figure out what's potting.When I play dvd from core I get sound from all speakers in 5.1 setup. If I do  speaker-test -D hdmi -c2 I get audio from 2 speakers (L+R). If I try  speaker-test -D hdmi -c7 I get : Playback open error: -16,Device or resource busy.

My old Denon amp (Fed by fiber from TV) is set on auto for input. I am thinking what I'm am actually getting is the equivalent of 5 channel stereo ???

Alsamixer (V1.0.22) outputting via S/pdif. Is this correct?
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on July 30, 2012, 05:15:02 am
Still trying to figure out what's potting.When I play dvd from core I get sound from all speakers in 5.1 setup. If I do  speaker-test -D hdmi -c2 I get audio from 2 speakers (L+R). If I try  speaker-test -D hdmi -c7 I get : Playback open error: -16,Device or resource busy.

My old Denon amp (Fed by fiber from TV) is set on auto for input. I am thinking what I'm am actually getting is the equivalent of 5 channel stereo ???

Alsamixer (V1.0.22) outputting via S/pdif. Is this correct?

Hi Bushtech,

Sorry for the delay, I'm Having similar problems maybe worst, I don't even get 5.1 with playing DVDs from the core.  For some reason it is not sending 5.1 audio.  I had problem trying speaker test with alsa 1.0.22, in order to get perfect test regardless of the channel configuration I upgraded to 1.0.25.  I believe that my problem is on the device naming.  My systems believes that "hdmi" audio is something else than hw:0,7.  I need to know how to change correct that problem.   I hope it helps.

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: Viking on July 30, 2012, 08:20:28 pm
Hi,

Not sure if it is the same thing. On my 1004 system (see link below) I also have got no AC3 sound on the MD. The output is from my soundcard spdif optical to the amplifier.

It works nicely in the test in the 1004 AV wizard though!
Also in 804 it works.

But DVD and other things are only played as PCM over the optical SPDIF!?

Regards Viking
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: bushtech on July 30, 2012, 08:40:25 pm
Tompin 2
Does your alsamixer also say s/pdif output? This bothers me as I can see my s/pdif out on the zbox is lit up red i.e transmitting.

Viking
I have had sound a couple of times but a reboot or 2 soon kills the sound. Although I have recently started suspecting that when I have sound it's not 5.1 dolby but the amp converting 2 channel sound to 5 channel stereo.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on August 01, 2012, 04:55:49 am
Tompin 2
Does your alsamixer also say s/pdif output? This bothers me as I can see my s/pdif out on the zbox is lit up red i.e transmitting.

Viking
I have had sound a couple of times but a reboot or 2 soon kills the sound. Although I have recently started suspecting that when I have sound it's not 5.1 dolby but the amp converting 2 channel sound to 5 channel stereo.

Hi Bushtech, Let me check on it write you back.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 05, 2012, 03:41:05 am
Re-igniting this thread!!!!


Ive managed to get stereo audio from my MD (NVidia GTX 550 Ti) to my receiver.  Ive gone thru all the other threads and other internet searches, but cannot find a viable solution to resolving the 'stereo only' issue.

I had to upgrade the kernel to 2.6.38 to even get the system to see the HDA NVidia devices (read somewhere on nVidia web site that minimum was 2.6.38)
*** I even tried 3.0.0-24 kernel as well... at this point is when I got the stereo audio thru HDMI****

Alsa is at 1.0.24.

Both my onboard sound card and NVidia card use the snd-hda-intel driver:

0 [SB             ]: HDA-Intel - HDA ATI SB
                     HDA ATI SB at 0xf7ff4000 irq 16
1 [NVidia         ]: HDA-Intel - HDA NVidia
                     HDA NVidia at 0xfbe7c000 irq 19

standard testing yields proper results:
aplay -D plug:hdmi /usr/share/sounds/alsa/Front_Center.wav  plays the .wav file.
speaker-test -D plug:hdmi -c8 plays the 'static' thru each speaker in succession.

It is ONLY in LMCE that i get stereo audio ...  in AVWizard audio setup and after MD is active playing a 5.1 or 7.1 movie.


Has anyone gotten any farther?


any help will be greatly appreciated.

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 05, 2012, 05:03:05 am
Hi Ardirtbiker,

I haven't been able to get too far either.  No luck with the wiki page posted by l3mce.  Even if I follow step by step the wiki of hdmi audio on 1004, just after finish it.  I only get audio if I run speaker-test at the command first.  After that, kdesktop have sounds but xine doesn't and of course lmce neither.  I don't know what to do any more!

I hope to find the answer soon.

Cheers!
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 05, 2012, 03:46:35 pm
We have made changes to the code to try and overcome this, and I believe that following the wiki and using this new code probably won't work right.

I need to sit down with someone who is doing a fresh install, and go over things step by step to try and determine the issue. What I do know, is that AVWizard will not play audio with the fresh code, but audio SHOULD work in the system anyway... unless you follow the wiki. Then I expect things will not work, because the db value of card 1 will be wrong... and I don't expect it will ever work.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 06, 2012, 02:49:30 am
success!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Okay... lets see what I can tell I did.

here is my asound.conf file... it may have extra junk from all the things I tried... but it works:

Code: [Select]
pcm_slave.convert {
@args [ RATE CARD DEV ]
@args.RATE {
type integer
}
@args.CARD {
type string
}
@args.DEV {
type integer
default 0
}
pcm {
@func concat
strings [ $CARD "," $DEV ]
}
rate $RATE
}

pcm.spdif_playback {
type plug
slave {
@func concat
strings [ "convert:RATE=48000,CARD=spdif:%MAIN_CARD%" ]
}
}

pcm.hdmi_playback {
type plug
slave {
@func concat
strings [ "convert:RATE=48000,CARD=hdmi:%MAIN_CARD%" ]
}
}

pcm.asym_spdif {
type asym
playback.pcm "spdif_playback"
capture.pcm "plughw:%MAIN_CARD%"
}

pcm.asym_hdmi {
type asym
playback.pcm "hdmi_playback"
capture.pcm "plughw:%MAIN_CARD%"
}

pcm.asym_analog {
type asym
playback.pcm "%ANALOG_PLAYBACK_CARD%"
capture.pcm "plughw:%MAIN_CARD%"
}

pcm.!default {
type hw
card NVidia
device 7
}

ctl.!default {
type hw
card NVidia
}

#
#  Hardware output from HDMI
#

pcm.!hdmi {
@args [ CARD DEV AES0 AES1 AES2 AES3 ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_IEC958_CARD
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.iec958.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_IEC958_DEVICE
]
default {
@func refer
name defaults.pcm.iec958.device
}
}
}
@args.AES0 {
type integer
# consumer, not-copyright, emphasis-none, mode=0
default 0x04
}
@args.AES1 {
type integer
# original, PCM coder
default 0x82
}
@args.AES2 {
type integer
# source and channel
default 0x00
}
@args.AES3 {
type integer
# fs=48000Hz, clock accuracy=1000ppm
default 0x02
}
type empty
slave.pcm {
@func refer
name {
@func concat
strings [
"cards."
{
@func card_driver
card $CARD
}
".pcm.hdmi." $DEV ":"
"CARD=" $CARD ","
"AES0=" $AES0 ","
"AES1=" $AES1 ","
"AES2=" $AES2 ","
"AES3=" $AES3
]
}
}
hint {
show {
@func refer
name defaults.namehint.basic
}
description "HDMI Audio Output"
device $DEV
}
}

pcm.!default {
type plug
slave {
pcm "hw:0,1"
format S32_LE
}
}

pcm.!default {
     type plug
     slave.pcm "hdmi"
}

The later modifications came from here: http://www.mythtv.org/wiki/AllensDigitalAudioHowto (http://www.mythtv.org/wiki/AllensDigitalAudioHowto)

I also modified xine.conf according to this: http://wiki.linuxmce.org/index.php/NVidia_GT220_HDMI_sound (http://wiki.linuxmce.org/index.php/NVidia_GT220_HDMI_sound)


I am also running a higher kernel version... I tried 2.6.38 before these modifications (which i didnt work) then updated to 3.0.0-24 before making these modifications.   (my nvidia card - GTX 550 Ti - requires at least 2.6.38 to see the NVidia HDMI audio hardware).

I'll keep informing if something happens.

Dennis

UPDATE:    Mythtv plays surround fine, and movies play proper audio as well.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 06, 2012, 03:48:34 am
You guys are killing me with duct tape. Literally smothering me out.

I have had ID41s working audio without ANY massage.

Your speaker-test's are wrong. If you want to test surround the appropriate command is:
speaker-test -Dplug:surround51 -c6 -t sine -l 1 -D hw:0,7

for instance... change card and device as appropriate.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 06, 2012, 03:56:10 am
l3mce,

before making any mods above, running speaker test worked... running a command of ' aplay -D plughw:hdmi  blah blah blah..' worked also.  i could not get any audio in mythtv other than stereo, and all my movies were in stereo as well.  

The default settings didnt work...     so, you do what ya gotta do until a proper fix can be obtained!!!  <grin>

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 06, 2012, 04:00:35 am
ardirtbiker...


I do not have this equipment, and I live in absolute squaller. I need peoples help to make this work. These hacks de-motivate people from helping ME make this stuff work automagically.

I like you. Very fond. Stop supplying duct tape, dump into chat, and help me make this WORK.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 06, 2012, 08:54:51 pm
l3mce,
what is it that you need from me so as to work toward a fix?   Ive never gone into irc... and I see you are like 4 or 5 hours ahead of me.  But if I get into irc... Im sure someone is going to want INFO... I'd like to be prepared.

I do realize that it is not practical to have all possible hardware to test...   It is easy enough to put my MD back to default (however I think that the kernel required for my card needs to be greater than the default... I tried the backported alsa 1.0.24 before upgrading the kernel, but none of the HDMI audio devices were seen without the updated kernel).

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: klanmce on September 08, 2012, 03:07:51 am
ardirtbiker

Did you compile the upgraded kernel manually to get the GT 550 working?

I have a GT 520 and am interested

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 08, 2012, 05:45:54 am
I have discovered the problem... working on a solution now.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 08, 2012, 03:28:34 pm
klanmce

no, I added a ppa  -->  ppa:kernel-ppa/ppa...   and found a kernel that would show the HDMI audio ports for my card  (which on a post somewhere I read that to get the nVidia GTX 550 Ti card to work properly in linux at least a 2.6.35 kernel is required)... and after the upgrade, the HDMI audio devices for my card showed up using aplay -l.

for the sake of 'troubleshooting', I did a fresh install of 1004 from the 26084 dvd image followed by a upgrade to bring it current... then i recreated my MD which has the nVidia card...   and yes... no HDMI audio and aplay -l does not report anything other than the mainboard audio device.

As l3mce stated he found an issue, I'm holding up any modifications to see what comes of his diligent work!

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 08, 2012, 06:28:47 pm
I am sorry to all of those trying to get audio over hdmi lately. I broke the **** out of it.


I believe that I have resolved these other issues (there is an upgrade available for both pluto-avwizard and pluto-boot-scripts)

I am actively working on it. There may now be a problem with the DTS check screen in avwiz... testing now... however... they are getting hdmi audio/dolby (where avail on output device) and will get audio if we bypass the last stage of avwizard, without any manual manipulation.


So... if I am not there... I am awful close. Please feel free to test... IF you have not already tried very hard to circumvent and installed ppas etc. If you have done this on an md... I would really appreciate it if you would, perhaps, tar up the MD (so you can reload it if you want to)... and then please upgrade your core, run Diskless_SetupTBZ.sh  and destroy and recreate the MD.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 08, 2012, 07:19:18 pm
will do sir!
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 08, 2012, 11:17:36 pm
One last remaining bug was crushing this.

I believe everything will be fixed once pluto-boot-scripts is built again.

So hold off on that until such time as our illustrious leader can tickle fluffy.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 08, 2012, 11:26:32 pm
Thanks L3mce,

I'm up to try anything, let us know if you need us to try anything.

Cheers,

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 10, 2012, 12:49:33 am
l3mce,
      Here's what Ive got:

Did a 'fresh' install of latest LMCE DVD.  Created 1st MD.   AVWizard did not see my nVidia HDMI audio ports at this time, however I got my S/PDIF audio.

Installed the updated pluto-avwizard and pluto-boot-scripts.  (also updated the pluto-x-scripts).  Rebooted the MD into AVWizard... still no nVidia HDMI ports available, and again I got S/PDIF audio.

Prior pluto-avwizard and pluto-boot-script would not even give me the S/PDIF audio (HDA ATI SB) .  So you have fixed something.

As for the nVidia HDMI audio ports on my display adapter (nVidia GeForce GTX 550 Ti)... I do believe the card requires at least a 2.6.35 kernel (I found it once in some document on the web, but cannot relocate it).  

That said... If I place a 2.6.38 kernel in my MD and dont run AVWizard, audio works thru the S/PDIF... however if I run AVWizard to select the HDMI on the nVidia card, I am unable to get audio on either the HDMI or S/PDIF.

I did notice that when running alsamixer and selecting the nVidia card, I show 4 S/PDIF ports and the 1st was unmuted already (not by me) and they're usually all muted... in actuality, the 2nd S/PDIF port is the one when un-muted I get audio from 'speaker-test -Dplug:surround71 -c8 -t sine -D hw:1,7'

see attachment.

Going to revert to the 2.6.32 kernel to get S/PDIF audio back.

Dennis

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 10, 2012, 02:59:56 am
Can I please get the output of lspci -nn | grep VGA

I have been working on this for the last two days solid. I have many of the GT series working ootb with a couple of changes to a couple of files that are not yet in the repo. I need a few more days... or... if you are really anxious... you will note that there is a new snap in http://linuxmce.iptp.org/snapshots/    ending 459

you need to make sure your pciid is in nvidia-install.sh under Backports_Required... assuming it is not a revD card. And make sure it is under 260, not 295, again, unless it is a revD card. And you will need to add this to the bottom of Enable_Audio_Channels() in AVWizard_Run.sh
Code: [Select]
sleep 2
if aplay -l | grep "card 1" | grep "device 7" 2>&1> /dev/null; then
aplay -Dplughw:1,7 /usr/share/sounds/linphone/rings/orig.wav
fi

That MIGHT do it. Again... I am actively working on this. That will get you pretty close... unless you have one of the few revD cards... as I said. Again, in nvidia-install.sh you will see a revD list of pciids. Go ahead and post that first thing I asked for just cause.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 10, 2012, 03:27:00 am
l3mce,
here is output you requested:
Code: [Select]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF116 [GeForce GTX 550 Ti] [10de:1244] (rev a1)

I did not find the pci id 1244 in nvidia_install.sh.    I did find this http://www.pcidatabase.com/vendor_details.php?id=606 (http://www.pcidatabase.com/vendor_details.php?id=606) and found id 1244 down at the bottom in the table 'Pending new devices for this vendor'.

On MD creation, the nvidia driver 304.43 is being installed.

[    2.106758] uvesafb: NVIDIA Corporation, GF106B Board - 10500000, Chip Rev   , OEM: NVIDIA, VBE v3.0
[   23.188462] nvidia: module license 'NVIDIA' taints kernel.
[   23.507329] NVRM: loading NVIDIA UNIX x86 Kernel Module  304.43  Sun Aug 19 20:20:21 PDT 2012

will give the mod to AVWizard_Run.sh a try.


Thanks very much for your hard work,

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 10, 2012, 03:48:47 am
Ok... I am not sure we can use 260 on this... but I would like to try. Move 1244 from DRIVER_295_SUPPORTED and put it in DRIVER_260_SUPPORTED, as well as adding it to Backports_Required in nvidia-install.sh.

The best way to make this change is after install completes from the dvd (assuming this is a hybrid) and you see a button that says "reboot now" drop to terminal and edit the file in /target/usr/pluto/bin/nvidia-install.sh. Once correct, then jump back to tty7 and hit the reboot button. Do not remove the install medium until it begins to actually reboot.

/target/   is the mounted install drive. Not changing it on /target/ will change it (temporarily) on the dvd and do nothing for you.

If this is an MD... well... there you have to change the file on your core, and then before the md reboots itself while it is being created (or if you catch the reboot and do not allow it to) cp the file from your core to the /usr/pluto/diskless/XX/usr/pluto/bin  directory.

Also make that other change to AVWizard_Run.sh as noted above. IF this does not work, it is a whole lot easier to revert than the other route. Let me know how it goes.


btw... those things labeled spdif handle the hdmi as well (digital is digital in this case). The new code blows those all into unmute, and a (strong) signal must be floated to device 7 before it will open it all up.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 10, 2012, 03:59:19 am
I'll give that a shot tomorrow after work... gonna relax and just watch a movie before bed (and while laundry is finishing). 

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 11, 2012, 03:48:11 am
Worked on this after work today...

the nVidia GTX 550 Ti card (audio portion) will not show up unless a kernel >= 2.6.35 is running...  I tried the alsa backport modules.. but no change.


okay.. running a kernel that allows me to see the nvidia card audio..    
1.   modifying the nvidia-install.sh has no affect other than making the AVWizard start on every boot.... the end result is still having the 304.43 driver installed.
2.   modifying the AVWizard_Run.sh script has no affect other than unmuting the card 1, device 7 channel.  No AVWizard sounds are heard

Im gonna give it a rest for tonight...

Im thinking I might try running a live-cd of kubuntu 12.04 and see if HDMI audio works there...

Any more thoughts l3mce?


Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: PlatypusPedersen on September 15, 2012, 06:06:34 pm
Audio via HDMI on the id41 worked out of the box for me, using the snapshot dated 14th september.
I got audio both during the avwizard as well as when playing (most types of) media from the on-screen orbiter.

Many thanks to L3mce for working so hard on this. :)
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 17, 2012, 03:39:08 am
Hello to all,

Here is the feedback I can five.

Fresh MD image rebuild and apt-get upgrade to the lastest and I get nothing at aplay -l.  Follow the hdmi wiki and download backport drivers and my hda nvidia is detected as card0

aplay -l gives this:
Code: [Select]
oot@moon50:~# 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
card 0: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
alsamixer, all the outputs are muted, unmute all and do
Code: [Select]
speaker-test -c 2 -l 1 -t sine -D hw:0,7 with success output.

Modify asound.conf @ pluto/template so it sticks and my asound @ etc is like this every time I reboot

Code: [Select]
pcm_slave.convert {
@args [ RATE CARD DEV ]
@args.RATE {
type integer
}
@args.CARD {
type string
}
@args.DEV {
type integer
default 0
}
pcm {
@func concat
strings [ $CARD "," $DEV ]
}
rate $RATE
}

pcm.spdif_playback {
type plug
slave {
@func concat
strings [ "convert:RATE=48000,CARD=spdif:0" ]
}
}

pcm.hdmi_playback {
type plug
slave {
@func concat
strings [ "convert:RATE=48000,CARD=hdmi:0" ]
}
}

pcm.asym_spdif {
type asym
playback.pcm "spdif_playback"
capture.pcm "plughw:0"
}

pcm.asym_hdmi {
type asym
playback.pcm "hdmi_playback"
capture.pcm "plughw:0,7"
}

pcm.asym_analog {
type asym
playback.pcm "plug:dmix:0"
capture.pcm "plughw:0"
}
pcm.!default asym_hdmi

The problem is when I reboot, there is no sound UNLESS I execute the speakertest at the console.  After speaker-test is run, I have sound but there is NO AC3/DTS pass-through working.  Only 2ch is sent to the receiver, regardless of the configuration at the webadmin
If I try:

Code: [Select]
speaker-test -c 8 -l 1 -t sine -D hw:0,7

speaker-test 1.0.22

Playback device is hw:0,7
Stream parameters are 48000Hz, S16_LE, 8 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 4096
Period size range from 8 to 2048
Using max buffer size 4096
Periods = 4
was set period_size = 1024
was set buffer_size = 4096
 0 - Front Left
 4 - Center
 1 - Front Right
 7 - Side Right
 3 - Rear Right
 2 - Rear Left
 6 - Side Left
 5 - LFE


The result is successful on all speakers.  Any hints?

Cheers,

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 17, 2012, 04:08:50 am
Hi,

I forgot to mention that if I run a video directly on kde desktop, xine does use AC3/DTS pass through and Im able to listen to multichannel audio.  How xine is controlled by lmce? which is the config file used?  If the check to enable pass-through is activated, what does it does? what does it changes? which files are affected?

Cheers,

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: phenigma on September 17, 2012, 04:39:55 am
I forgot to mention that if I run a video directly on kde desktop, xine does use AC3/DTS pass through and Im able to listen to multichannel audio.  How xine is controlled by lmce? which is the config file used?  If the check to enable pass-through is activated, what does it does? what does it changes? which files are affected?

Sounds like we may be missing info in our /etc/pluto/xine.conf for passthrough device.  I'm not sure what kind of changes asound.conf has been through recently but /etc/pluto/xine.conf would have to be updated to reflect any new device names...

J.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 17, 2012, 05:39:56 am
Hello to all,

Here is the feedback I can five.

Fresh MD image rebuild and apt-get upgrade to the lastest and I get nothing at aplay -l.  Follow the hdmi wiki and download backport drivers and my hda nvidia is detected as card0

aplay -l gives this:
Code: [Select]
oot@moon50:~# 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
card 0: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
alsamixer, all the outputs are muted, unmute all and do
Code: [Select]
speaker-test -c 2 -l 1 -t sine -D hw:0,7 with success output.

Modify asound.conf @ pluto/template so it sticks and my asound @ etc is like this every time I reboot

Code: [Select]
pcm_slave.convert {
@args [ RATE CARD DEV ]
@args.RATE {
type integer
}
@args.CARD {
type string
}
@args.DEV {
type integer
default 0
}
pcm {
@func concat
strings [ $CARD "," $DEV ]
}
rate $RATE
}

pcm.spdif_playback {
type plug
slave {
@func concat
strings [ "convert:RATE=48000,CARD=spdif:0" ]
}
}

pcm.hdmi_playback {
type plug
slave {
@func concat
strings [ "convert:RATE=48000,CARD=hdmi:0" ]
}
}

pcm.asym_spdif {
type asym
playback.pcm "spdif_playback"
capture.pcm "plughw:0"
}

pcm.asym_hdmi {
type asym
playback.pcm "hdmi_playback"
capture.pcm "plughw:0,7"
}

pcm.asym_analog {
type asym
playback.pcm "plug:dmix:0"
capture.pcm "plughw:0"
}
pcm.!default asym_hdmi

The problem is when I reboot, there is no sound UNLESS I execute the speakertest at the console.  After speaker-test is run, I have sound but there is NO AC3/DTS pass-through working.  Only 2ch is sent to the receiver, regardless of the configuration at the webadmin
If I try:

Code: [Select]
speaker-test -c 8 -l 1 -t sine -D hw:0,7

speaker-test 1.0.22

Playback device is hw:0,7
Stream parameters are 48000Hz, S16_LE, 8 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 4096
Period size range from 8 to 2048
Using max buffer size 4096
Periods = 4
was set period_size = 1024
was set buffer_size = 4096
 0 - Front Left
 4 - Center
 1 - Front Right
 7 - Side Right
 3 - Rear Right
 2 - Rear Left
 6 - Side Left
 5 - LFE


The result is successful on all speakers.  Any hints?

Cheers,

T


No... a thousand times no. It does not help me AT ALL if you are modifying things. Yes I know I can make noise manually configuring all of this. This is not helpful. What I am doing is very different in order to try and auto configure this for every chipset on the planet.

Here is how it works, and ardirtbiker this goes for you as well.

There are 3 areas you need to concern yourself with ONLY 3... and they are all in the same file. nvidia-install.sh
DRIVER_295_SUPPORTED=
DRIVER_260_SUPPORTED=
Backports_Required=

These contain pciids. This returns yours
lspci -nn | grep -w 'VGA' | sed 's/.*://;s/\].*//'

ardirtbiker, if you had taken yours out of 295 and put it in 260 before it rebooted the first time... it is IMPOSSIBLE for you to have the 304 driver. IMPOSSIBLE. However now that it does, it also has alsa .24... which is not going to revert without a lot of fight. Please crush it and start over. Do NOT let it boot after Diskless_Setup. Change this file from the /usr/pluto/diskless/XX* directory.
Modifying the AVWizard_Run.sh script makes sure that it checks whether or not it needs alsa-backports whether or not the correct video driver is already installed.

tompin2... all that seems to be wrong with yours is that your pciid wasn't in Backports_Required. Add it to there. You also appear to have disabled your onboard soundcard from the bios. Please undo that for now.


I do not have this hardware guys. I take complete guesses looking at the architecture. I need your help putting these things in the right places... then I can make more educated guesses. Please delete these MDs and try again... if you are so inclined.

I really do appreciate your help.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 18, 2012, 03:24:42 am
l3mc3,

With all the respect you deserve.  Can you explain me what I did wrong????.  I followed step by step the procedure @ the lmcewiki page you posted that was born because my post.  The only difference between your suggestions and what I have done is that I did disabled, just like you mentioned, the onboard intel sound card, but I did that a loooong time ago and it was working properly, so I never had the issue of card0 or card1, migrating to 1004 fixed may things but messed up the video and audio.  Maybe, you could consider that disabling the intel board could be another way to solve id41 randomness.    Am I following the wrong guide??? or i'm lost in translation. 
I do have sound, just not at lmce the way it should, well, to be honest, I do have the problem that I always have to run speaker-test everytime I restart.  Besides that, It seems to be something wrong in xine config file, just like phenigma posted. 
I will kill the md and try anything to help lmce community and of course myself, I believe in the product and the work you all do and I always wish I could help as much as you.  Right now I feel I can only complain  ;D , In the future, I hope might be able to help others as you do so kindly.

I will  continue to try some more with the setup I have just to learn more how stuff works and then, enable the onboard card and restart all over again and post results. 

Saludos,

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 18, 2012, 09:59:20 am
I am sorry for the confusion...

I have changed all of the source code to try and get audio over HDMI for everything. I am trying my best to make that guide irrelevant.

All you need to do, is get your pciid
lspci -nn | grep -w 'VGA' | sed 's/.*://;s/\].*//'

and i will add that pciid to the Backports_Required section, and you never have to follow the wiki again. It will "just work" out of the box.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 21, 2012, 05:58:33 am
I am sorry for the confusion...

I have changed all of the source code to try and get audio over HDMI for everything. I am trying my best to make that guide irrelevant.

All you need to do, is get your pciid
lspci -nn | grep -w 'VGA' | sed 's/.*://;s/\].*//'

and i will add that pciid to the Backports_Required section, and you never have to follow the wiki again. It will "just work" out of the box.

Hi L3mc3, no worries, I know that you only want to help.

Here is the result
Code: [Select]
root@moon50:~# lspci -nn | grep -w 'VGA' | sed 's/.*://;s/\].*//'
0a64
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 21, 2012, 06:47:44 am
Ive not been able to work on this for the past several days... my job is just nutz right now.... sometimes working 18+ hour days.

I'll try this again this weekend.

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 21, 2012, 03:00:36 pm
Hi L3mc3, no worries, I know that you only want to help.

Here is the result
Code: [Select]
root@moon50:~# lspci -nn | grep -w 'VGA' | sed 's/.*://;s/\].*//'
0a64

An updated system should have done everything by itself. If this is an MD, delete it, upgrade your core, rerun /usr/pluto/bin/Diskless_CreateTBZ.sh and turn the MD on and it should "just work"™
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 22, 2012, 02:10:12 am
l3mce,
    per your instructions I modified the following files after the initial build of the MD image but before the MD booted into it:

1. modify nvidia-install.sh putting the PCIID for my card in the correct spots (my card ID is 1244)
2. modify AVWizard_Run.sh

Then starting the MD up, am getting a Failed to Set Up X  message.   Here is dmesg reports for NVIDIA:
Code: [Select]
[   13.210936] nvidia: module license 'NVIDIA' taints kernel.
[   14.139262] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1244) installed
[   14.139263] NVRM: in this system is not supported by the 260.19.29 NVIDIA Linux
[   14.139264] NVRM: Supported NVIDIA GPU Products' in this release's README,
[   14.139288] NVRM: The NVIDIA probe routine failed for 1 device(s).
[   14.139290] NVRM: None of the NVIDIA graphics adapters were initialized!
[   42.901574] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1244) installed
[   42.901575] NVRM: in this system is not supported by the 260.19.29 NVIDIA Linux
[   42.901576] NVRM: Supported NVIDIA GPU Products' in this release's README,
[   42.901598] NVRM: The NVIDIA probe routine failed for 1 device(s).
[   42.901599] NVRM: None of the NVIDIA graphics adapters were initialized!
[   58.279470] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1244) installed
[   58.279471] NVRM: in this system is not supported by the 260.19.29 NVIDIA Linux
[   58.279473] NVRM: Supported NVIDIA GPU Products' in this release's README,
[   58.279492] NVRM: The NVIDIA probe routine failed for 1 device(s).
[   58.279493] NVRM: None of the NVIDIA graphics adapters were initialized!
[   75.075173] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1244) installed
[   75.075174] NVRM: in this system is not supported by the 260.19.29 NVIDIA Linux
[   75.075175] NVRM: Supported NVIDIA GPU Products' in this release's README,
[   75.075198] NVRM: The NVIDIA probe routine failed for 1 device(s).
[   75.075199] NVRM: None of the NVIDIA graphics adapters were initialized!


nvidia-glx-260 fails to load.

according to this page - http://www.nvidia.com/object/linux-display-ia32-260.19.29-driver.html (http://www.nvidia.com/object/linux-display-ia32-260.19.29-driver.html), the GTX 550 Ti is Not supported.   The earliest found supporting the GTX 550 Ti is here - http://www.nvidia.com/object/linux-display-ia32-275.28-driver.html (http://www.nvidia.com/object/linux-display-ia32-275.28-driver.html)



thanks,
Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 22, 2012, 07:33:48 pm
Yeah... a lot of things aren't listed on the certified list because they didn't exist at the time that do work. Your's is just special. You will have to sudo apt-get remove --purge nvidia*    and then move your pciid from 260 to 295 (which will actually get 304) in /usr/pluto/bin/nvidia-install.sh

Was worth figuring out.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 22, 2012, 09:05:13 pm
got it... Im back to that... but back to where I was at the beginning.  :-\ 

with the default linux-image of 2.6.32, the NVIDIA HDMI ports will not show up:
Code: [Select]
root@moon53:~# uname -r
2.6.32-43-generic
root@moon53:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
root@moon53:~# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
    HDA ATI SB, VT1708S Digital
    IEC958 (S/PDIF) Digital Audio Output
root@moon53:~#

and asound reports only one card:
Code: [Select]
root@moon53:~# cat /proc/asound/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xf7ff4000 irq 16
root@moon53:~#

with alsa backports installed, the card is reported by asound, but not with aplay -l:
Code: [Select]
root@moon53:~# cat /proc/asound/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xf7ff4000 irq 16
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfbe7c000 irq 19
root@moon53:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
root@moon53:~#

which one is required?  or both?... or am i going to need to use a newer kernel?

Dennis

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 23, 2012, 11:22:32 am
I am not sure ardirtbiker... and unfortunately I have completely broken hdmi audio for most things atm... so we are going to have to wait until I fix it.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 23, 2012, 03:35:25 pm
I did get a little bit (band-aid perhaps) further.  I did install linux-image 2.6.38-16-generic which gave me the HDMI audio devices. Installed linux-backports-modules-alsa-lucid-generic, then backed up /etc/asound.conf and /usr/pluto/templates/asound.conf, then copied /usr/pluto/templates/asound.conf.backports to replace the other two.  Running AVWizard didnt give me any sound, however I am getting HDMI sound with Mythtv, but not with dvd images.

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 23, 2012, 04:00:22 pm
yeah... like I said... I have broken terribly the hdmi audio for most things.

Gimme a little time and the setup you have will probably "just work".
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 23, 2012, 07:03:44 pm
not a problem... Im really 'experimenting' to see what will or will not work... and maybe something I 'stumble' upon can give you a hint.

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on September 26, 2012, 12:07:27 am
Everything should have stereo audio over hdmi now with the latest update... nothing will have 5/7.1 atm.

but it is better than it was. Getting there.

As a side note, there is a lot of new mesa stuff you will pull down that has greatly improved video on everything I own.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on September 26, 2012, 04:22:39 am
rough work aint it?!!??!??...


Thanks for being able to do it (and doing so)...


Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on September 26, 2012, 02:53:25 pm
An updated system should have done everything by itself. If this is an MD, delete it, upgrade your core, rerun /usr/pluto/bin/Diskless_CreateTBZ.sh and turn the MD on and it should "just work"™


L3mce,

Worked as expected!!! I enabled the Intel HDA let mce do the rest.  The only issue is that there is no AC3/DTS pass-through.

Excellent work, thanks.  I hope to figure out what is going on with ac3/dts stuff.

cheers,

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: b4rney on September 30, 2012, 01:48:09 am
Hi l3mce,

I have an Acer Revo md which has no sound over HDMI (was working until recently). So I followed this thread.

I upgraded the core yesterday, removed the md in web admin, ran /usr/pluto/bin/Diskless_CreateTBZ.sh and then turned on the Revo MD. Everything seemed normal during creation but no sound over hdmi no matter what I chose in AV wizard (HDMI, DVI-HDMI2 etc).

I just upgraded the core again and got another pluto-boot-scripts update. Rebooted the core. I have again deleted the new md, I am currently running Diskless_CreateTBZ.sh again and will let you know what happens when I turn my md on.

My output from the pciid code in this thread is 087d.
Barney
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: b4rney on September 30, 2012, 01:57:24 pm
Still no sound over hdmi I'm afraid.

Here are the latest steps I took yesterday:
1. Fully updated core
2. Rebooted core
3. Deleted md
4. Ran Diskless_CreateTBZ.sh on core
5. Booted acer revo

Acer revo md has no audio over hdmi no matter what video option I choose (hdmi or dvi/hdmi2).

The new NVidia pci sound card option screen shows 08.00 at the end (not sure if this is relevant).

Let me know if I can help troubleshoot this.
Barney
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on October 01, 2012, 02:04:53 am
b4ney I know... There is a bug in the C++ for avwizard.

Change your /usr/pluto/templates/asound.conf file, the last pcm.hdmi has embedded in it
card 1
device 7

change that to
card 0
device 3

and reboot. Audio will now magically appear if you said yes during wizard to hearing hdmi and dolby. If you did NOT then run avwizard and do so before changing the card/device to the appropriate numbers... because if you try and hit avwiz with the correct values, avwizard will hang.

I am working on it. Sorry.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 01, 2012, 03:38:56 am
l3mce,

by only editing the following lines in /usr/share/alsa/alsa.conf, I have surround  (Dolby Digital and DTS) thru my HDMI:

Code: [Select]
#
# defaults.ctl.card 0
defaults.ctl.card NVidia
# defaults.pcm.card 0
defaults.pcm.card NVidia
# defaults.pcm.device 0
defaults.pcm.device 7

and this in /etc/pluto/xine.conf:
Code: [Select]
audio.device.alsa_passthrough_device:asym_hdmi
without the added line in xine.conf, lmce displays a message that it cannot play the audio track (or something like that).

The reason I did this is because the HDMI audio is NOT card 0 in my system.. but is card 1 (NVidia) as listed by cat /proc/asound/cards.

Should it be possible to get DTS-HD and True-HD from the .mkv files (they have the HD audio in them)?

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on October 01, 2012, 04:11:47 am
Brilliant clue ardirtbiker... thank you very much. This will undoubtedly help things tremendously.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 01, 2012, 04:52:21 am
yay!
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on October 01, 2012, 05:04:27 am
yay!


Under what Section of xorg.conf did you add this btw?
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on October 01, 2012, 05:09:51 am
l3mce,

by only editing the following lines in /usr/share/alsa/alsa.conf, I have surround  (Dolby Digital and DTS) thru my HDMI:

Code: [Select]
#
# defaults.ctl.card 0
defaults.ctl.card NVidia
# defaults.pcm.card 0
defaults.pcm.card NVidia
# defaults.pcm.device 0
defaults.pcm.device 7

and this in /etc/pluto/xine.conf:
Code: [Select]
audio.device.alsa_passthrough_device:asym_hdmi
without the added line in xine.conf, lmce displays a message that it cannot play the audio track (or something like that).

The reason I did this is because the HDMI audio is NOT card 0 in my system.. but is card 1 (NVidia) as listed by cat /proc/asound/cards.

Should it be possible to get DTS-HD and True-HD from the .mkv files (they have the HD audio in them)?

Dennis

Excellent  Ardirtbiker! I will give it a try RIGHT NOW!!, I'll just do the proper adjustments of whatever my card is and post results!

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: b4rney on October 01, 2012, 10:56:36 pm
Change your /usr/pluto/templates/asound.conf file, the last pcm.hdmi has embedded in it
card 1
device 7

change that to
card 0
device 3

and reboot. Audio will now magically appear if you said yes during wizard to hearing hdmi and dolby. If you did NOT then run avwizard and do so before changing the card/device to the appropriate numbers... because if you try and hit avwiz with the correct values, avwizard will hang.

Thanks l3mce ... worked like a charm. I now have sound again.
Barney
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 02, 2012, 01:14:55 am
l3mce....   I didnt make any adjustment to xorg.conf... only /usr/share/alsa/alsa.conf and /etc/pluto/xine.conf


You might need to take a break from programming  ;D

Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on October 02, 2012, 01:25:55 am
l3mce....   I didnt make any adjustment to xorg.conf... only /usr/share/alsa/alsa.conf and /etc/pluto/xine.conf


You might need to take a break from programming  ;D

Dennis

I never learned to read.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 02, 2012, 02:48:28 am
thats kinda scary... being a programmer!
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on October 05, 2012, 03:43:28 am
No luck for me, no pass through  :(.  Ardirtbiker, can you post your xine.conf and your alsa.conf?

Cheers,

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 05, 2012, 04:03:27 am
here they are:

/etc/pluto/xine.conf:  (NOTE:  only the 2nd to last line was added.. nothing else modified)
Code: [Select]
#
# xine config file
#
.version:1

# Entries which are still set to their default values are commented out.
# Remove the '#' at the beginning of the line, if you want to change them.

# Enable deinterlacing by default
# bool, default: 0
#gui.deinterlace_by_default:0

# Configuration experience level
# { Beginner  Advanced  Expert  Master of the known universe }, default: 0
gui.experience_level:Master of the known universe

# Enable OSD support
# bool, default: 1
#gui.osd_enabled:1

# Dismiss OSD time (s)
# numeric, default: 3
#gui.osd_timeout:3

# Ask user for playback with unsupported codec
# bool, default: 0
#gui.play_anyway:0

# Automatically reload old playlist
# bool, default: 0
#gui.playlist_auto_reload:0

# Audio visualization plugin
# { fftgraph  fftscope  oscope  goom }, default: 0
gui.post_audio_plugin:goom

# gui skin theme
# { xinetic }, default: 0
#gui.skin:xinetic

# Change xine's behavior for unexperienced user
# bool, default: 1
#gui.smart_mode:1

# Snapshot location
# string, default: /root
#gui.snapshotdir:/root

# Display splash screen
# bool, default: 1
#gui.splash:1

# Subtitle autoloading
# bool, default: 1
gui.subtitle_autoload:1

# Visual animation style
# { None  Post Plugin  Stream Animation }, default: 1
#gui.visual_anim:Post Plugin

# Windows stacking (more)
# bool, default: 0
#gui.always_layer_above:0

# Audio mixer control method
# { Sound card  Software }, default: 0
#gui.audio_mixer_method:Sound card

# Visiblility behavior of panel
# bool, default: 0
#gui.auto_panel_visibility:0

# Visibility behavior of output window
# bool, default: 0
#gui.auto_video_output_visibility:0

# Deinterlace plugin.
# string, default: tvtime:method=LinearBlend,cheap_mode=1,pulldown=0,use_progressive_frame_flag=1
#gui.deinterlace_plugin:tvtime:method=LinearBlend,cheap_mode=1,pulldown=0,use_progressive_frame_flag=1

# Event sender behavior
# bool, default: 1
#gui.eventer_sticky:1

# Windows stacking
# bool, default: 0
#gui.layer_above:0

# Use unscaled OSD
# bool, default: 1
#gui.osd_use_unscaled:1

# Screensaver wakeup
# numeric, default: 10
#gui.screensaver_timeout:10

# Menu shortcut style
# { Windows style  Emacs style }, default: 0
#gui.shortcut_style:Windows style

# Stream information
# bool, default: 0
#gui.sinfo_auto_update:0

# Skin Server Url
# string, default: http://xine.sourceforge.net/skins/skins.slx
#gui.skin_server_url:http://xine.sourceforge.net/skins/skins.slx

# Chapter hopping
# bool, default: 1
#gui.skip_by_chapter:1

# New stream sizes resize output window
# bool, default: 1
#gui.stream_resize_window:1

# tips timeout (ms)
# numeric, default: 500
#gui.tips_timeout:500

# gui tips visibility
# bool, default: 1
#gui.tips_visible:1

# Synchronized X protocol (debug)
# bool, default: 0
#gui.xsynchronize:0

# Double size for small streams (require stream_resize_window)
# bool, default: 0
#gui.zoom_small_stream:0

# Logo mrl
# string, default: file:/usr/share/xine/skins/xine-ui_logo.mpv
#gui.logo_mrl:file:/usr/share/xine/skins/xine-ui_logo.mpv

# use XVidModeExtension when switching to fullscreen
# bool, default: 0
#gui.use_xvidext:0

# Amplification level
# [0..200], default: 100
#gui.amp_level:100

# gui panel visibility
# bool, default: 1
#gui.panel_visible:1

# numeric, default: 200
gui.panel_x:53

# numeric, default: 100
gui.panel_y:313

# brightness value
# [0..65535], default: 32800
#gui.vo_brightness:32800

# contrast value
# [0..65535], default: 32772
#gui.vo_contrast:32772

# saturation value
# [0..65535], default: 32772
#gui.vo_saturation:32772

gui.control_x:262

gui.control_y:182

gui.eventer_x:653

gui.eventer_y:680

gui.mrl_browser_x:435

gui.mrl_browser_y:527

gui.setup_x:406

gui.setup_y:221

gui.sinfos_x:400

gui.sinfos_y:408

gui.tvset_x:246

gui.tvset_y:193

# speaker arrangement
# { Mono 1.0  Stereo 2.0  Headphones 2.0  Stereo 2.1  Surround 3.0  Surround 4.0  Surround 4.1  Surround 5.0  Surround 5.1  Surround 6.0  Surround 6.1  Surround 7.1  Pass Through }, default: 1
#audio.speaker_arrangement:Stereo 2.0

# audio driver to use
# { auto  null  alsa  oss  arts  esd  none  file }, default: 0
audio.driver:auto

# OSS audio mixer number, -1 for none
# numeric, default: -1
#audio.mixer_number:-1

# startup audio volume
# [0..100], default: 50
#audio.mixer_volume:50

# OSS audio device name
# { auto  /dev/dsp  /dev/sound/dsp }, default: 0
#audio.oss_device_name:auto

# OSS audio device number, -1 for none
# numeric, default: -1
#audio.oss_device_number:-1

# offset for digital passthrough
# numeric, default: 0
#audio.passthrough_offset:0

# restore volume level at startup
# bool, default: 0
#audio.remember_volume:0

# method to sync audio and video
# { metronom feedback  resample }, default: 0
#audio.av_sync_method:metronom feedback

# always resample to this rate (0 to disable)
# numeric, default: 0
#audio.force_rate:0

# number of audio buffers
# numeric, default: 230
#audio.num_buffers:230

# a/v sync method to use by OSS
# { auto  getodelay  getoptr  softsync  probebuffer }, default: 0
#audio.oss_sync_method:auto

# enable resampling
# { auto  off  on }, default: 0
#audio.resample_mode:auto

audio.alsa_front_device:default

audio.alsa_mixer_name:Master

# deinterlace method (deprecated)
# { none  bob  weave  greedy  onefield  onefield_xv  linearblend }, default: 4
#video.deinterlace_method:onefield

# disable all video scaling
# bool, default: 0
#video.disable_scaling:0

# video driver to use
# { auto  aadxr3  dxr3  xv  xshm  aa  none  vidixfb  vidix  fb }, default: 0
video.driver:xv

# horizontal image position in the output window
# [0..100], default: 50
#video.horizontal_position:50

# vertical image position in the output window
# [0..100], default: 50
#video.vertical_position:50

# pitch alignment workaround
# bool, default: 0
#video.xv_pitch_alignment:0

# enable double buffering
# bool, default: 1
#video.XV_DOUBLE_BUFFER:1

# number of video buffers
# numeric, default: 500
#video.num_buffers:500

# percentage of discarded frames to tolerate
# numeric, default: 10
#video.warn_discarded_threshold:10

# percentage of skipped frames to tolerate
# numeric, default: 10
#video.warn_skipped_threshold:10

# autopaint colour key
# bool, default: 0
#video.xv_autopaint_colorkey:0

# video overlay colour key
# [0..16777215], default: 66046
#video.xv_colorkey:66046

# framebuffer device name
# string, default:
#video.fb_device:

# DXR3 device number
# numeric, default: 0
#dxr3.device_number:0

# swap odd and even lines
# bool, default: 0
#dxr3.enc_swap_fields:0

# add black bars to correct aspect ratio
# bool, default: 1
#dxr3.enc_add_bars:1

# use smooth play mode for mpeg encoder playback
# bool, default: 1
#dxr3.enc_alt_play_mode:1

# Remember last DVB channel watched
# bool, default: 1
#input.dvb_last_channel_enable:1

# display DVB channel name
# bool, default: 0
#input.dvbdisplaychan:0

# default language for DVD playback
# string, default: en
#input.dvd_language:en

# region the DVD player claims to be in (1 to 8)
# numeric, default: 1
#input.dvd_region:1

# file browsing start location
# string, default: /home/work/pluto-svn/trunk/bin
input.file_origin_path:/home/public/data/music/AC-DC/The Razors Edge

# network bandwidth
# { 14.4 Kbps (Modem)  19.2 Kbps (Modem)  28.8 Kbps (Modem)  33.6 Kbps (Modem)  34.4 Kbps (Modem)  57.6 Kbps (Modem)  115.2 Kbps (ISDN)  262.2 Kbps (Cable/DSL)  393.2 Kbps (Cable/DSL)  524.3 Kbps (Cable/DSL)  1.5 Mbps (T1)  10.5 Mbps (LAN) }, default: 10
#input.mms_network_bandwidth:1.5 Mbps (T1)

# device used for CD audio
# string, default: /dev/cdrom
#input.cdda_device:/dev/cdrom

# query CDDB
# bool, default: 1
#input.cdda_use_cddb:1

# slow down disc drive to this speed factor
# numeric, default: 4
#input.drive_slowdown:4

# device used for DVD playback
# string, default: /dev/dvd
#input.dvd_device:/dev/dvd

# raw device set up for DVD access
# string, default: /dev/rdvd
#input.dvd_raw_device:/dev/rdvd

# read-ahead caching
# bool, default: 1
#input.dvd_use_readahead:1

# list hidden files
# bool, default: 0
#input.file_hidden_files:0

# Domains, where to ignore the HTTP proxy
# string, default:
#input.http_no_proxy:

# HTTP proxy host
# string, default:
#input.http_proxy_host:

# HTTP proxy password
# string, default:
#input.http_proxy_password:

# HTTP proxy port
# numeric, default: 80
#input.http_proxy_port:80

# HTTP proxy username
# string, default:
#input.http_proxy_user:

# device used for WinTV-PVR 250/350 (pvr plugin)
# string, default: /dev/video0
#input.pvr_device:/dev/video0

# v4l radio device
# string, default: /dev/v4l/radio0
#input.v4l_radio_device_path:/dev/v4l/radio0

# v4l video device
# string, default: /dev/v4l/video0
#input.v4l_video_device_path:/dev/v4l/video0

# device used for VCD playback
# string, default: /dev/cdrom
#input.vcd_device:/dev/cdrom

# Remember last DVB channel watched
# numeric, default: -1
#input.dvb_last_channel_watched:-1

# CSS decryption method
# { key  disc  title }, default: 0
#input.css_decryption_method:key

# unit for seeking
# { seek in program chain  seek in program }, default: 0
#input.dvd_seek_behaviour:seek in program chain

# unit for the skip action
# { skip program  skip part  skip title }, default: 0
#input.dvd_skip_behaviour:skip program

# MMS protocol
# { auto  TCP  HTTP }, default: 0
#input.mms_protocol:auto

# CDDB cache directory
# string, default: /root/.xine/cddbcache
#input.cdda_cddb_cachedir:/root/.xine/cddbcache

# CDDB server port
# numeric, default: 8880
#input.cdda_cddb_port:8880

# CDDB server name
# string, default: freedb.freedb.org
#input.cdda_cddb_server:freedb.freedb.org

# path to the title key cache
# string, default: /root/.dvdcss/
input.css_cache_path:/home/.dvdcss/

# use A/52 dynamic range compression
# bool, default: 0
#codec.a52_dynrng:0

# downmix audio to 2 channel surround stereo
# bool, default: 0
#codec.a52_surround_downmix:0

# A/52 volume
# [0..200], default: 100
#codec.a52_level:100

# MPEG-4 postprocessing quality
# [0..6], default: 3
#codec.ffmpeg_pp_quality:3

# path to RealPlayer codecs
# string, default: unknown
codec.real_codecs_path:/usr/lib/win32

# path to Win32 codecs
# string, default: /usr/lib/win32
#codec.win32_path:/usr/lib/win32

# frames per second to generate
# numeric, default: 10
#post.goom_fps:10

# goom image height
# numeric, default: 240
#post.goom_height:240

# goom image width
# numeric, default: 320
#post.goom_width:320

# colorspace conversion method
# { Fast but not photorealistic  Slow but looks better }, default: 0
#post.goom_csc_method:Fast but not photorealistic

# priority for a/52 decoder
# numeric, default: 0
#decoder.a/52_priority:0

# priority for bitplane decoder
# numeric, default: 0
#decoder.bitplane_priority:0

# priority for dts decoder
# numeric, default: 0
#decoder.dts_priority:0

# priority for dvaudio decoder
# numeric, default: 0
#decoder.dvaudio_priority:0

# priority for dxr3-mpeg2 decoder
# numeric, default: 0
#decoder.dxr3-mpeg2_priority:0

# priority for dxr3-spudec decoder
# numeric, default: 0
#decoder.dxr3-spudec_priority:0

# priority for faad decoder
# numeric, default: 0
#decoder.faad_priority:0

# priority for ffmpeg-wmv8 decoder
# numeric, default: 0
#decoder.ffmpeg-wmv8_priority:0

# priority for ffmpegaudio decoder
# numeric, default: 0
#decoder.ffmpegaudio_priority:0

# priority for ffmpegvideo decoder
# numeric, default: 0
#decoder.ffmpegvideo_priority:0

# priority for flacdec decoder
# numeric, default: 0
#decoder.flacdec_priority:0

# priority for gsm610 decoder
# numeric, default: 0
#decoder.gsm610_priority:0

# priority for image decoder
# numeric, default: 0
#decoder.image_priority:0

# priority for mad decoder
# numeric, default: 0
#decoder.mad_priority:0

# priority for mpeg2 decoder
# numeric, default: 0
#decoder.mpeg2_priority:0

# priority for nsf decoder
# numeric, default: 0
#decoder.nsf_priority:0

# priority for pcm decoder
# numeric, default: 0
#decoder.pcm_priority:0

# priority for qta decoder
# numeric, default: 0
#decoder.qta_priority:0

# priority for qtv decoder
# numeric, default: 0
#decoder.qtv_priority:0

# priority for real decoder
# numeric, default: 0
#decoder.real_priority:0

# priority for realadec decoder
# numeric, default: 0
#decoder.realadec_priority:0

# priority for rgb decoder
# numeric, default: 0
#decoder.rgb_priority:0

# priority for speex decoder
# numeric, default: 0
#decoder.speex_priority:0

# priority for spucc decoder
# numeric, default: 0
#decoder.spucc_priority:0

# priority for spucmml decoder
# numeric, default: 0
#decoder.spucmml_priority:0

# priority for spudec decoder
# numeric, default: 0
#decoder.spudec_priority:0

# priority for sputext decoder
# numeric, default: 0
#decoder.sputext_priority:0

# priority for vorbis decoder
# numeric, default: 0
#decoder.vorbis_priority:0

# priority for win32a decoder
# numeric, default: 0
#decoder.win32a_priority:0

# priority for win32v decoder
# numeric, default: 0
#decoder.win32v_priority:0

# priority for yuv decoder
# numeric, default: 0
#decoder.yuv_priority:0

# subtitle size
# { tiny  small  normal  large  very large  huge }, default: 1
misc.spu_subtitle_size:large

# subtitle vertical offset
# numeric, default: 0
#misc.spu_vertical_offset:0

# palette (foreground-border-background) to use for subtitles and OSD
# { white-black-transparent  white-none-transparent  white-none-translucid  yellow-black-transparent }, default: 0
#misc.osd_text_palette:white-black-transparent

# font for subtitles
# string, default: sans
#misc.spu_font:sans

# encoding of the subtitles
# string, default: iso-8859-1
#misc.spu_src_encoding:iso-8859-1

# use unscaled OSD if possible
# bool, default: 1
#misc.spu_use_unscaled_osd:1

# media format detection strategy
# { default  reverse  content  extension }, default: 0
#misc.demux_strategy:default

# memcopy method used by xine
# { probe  libc  kernel  mmx  mmxext  sse }, default: 0
misc.memcpy_method:sse

# default duration of subtitle display in seconds
# numeric, default: 4
#misc.sub_timeout:4

# allow implicit changes to the configuration (e.g. by MRL)
# bool, default: 0
#misc.implicit_config:0

# directory for saving streams
# string, default:
#misc.save_dir:

# automatically advance track/entry
# bool, default: 1
#vcd.autoadvance:1

# default type to use on VCD autoplay
# { track  entry  segment  playlist }, default: 3
#vcd.autoplay:playlist

# position slider range
# { auto  track  entry }, default: 0
#vcd.length_reporting:auto

# show 'rejected' LIDs
# bool, default: 0
#vcd.show_rejected:0

# format string for stream comment field
# string, default: %P - Track %T
#vcd.comment_format:%P - Track %T

# debug flag mask
# numeric, default: 0
#vcd.debug:0

# default CD drive used for VCD when none given
# string, default:
#vcd.default_device:

# format string for display banner
# string, default: %F - %I %N%L%S, disk %c of %C - %v %A
#vcd.title_format:%F - %I %N%L%S, disk %c of %C - %v %A

audio.device.alsa_front_device:asym_hdmi
audio.device.alsa_default_device:asym_hdmi
audio.device.alsa_passthrough_device:asym_hdmi
audio.output.speaker_arrangement:Pass Through


/usr/share/alsa/alsa.conf:    (NOTE:  only three lines were modified/added in the 'defaults' section (you'll see 'Nvidia' used for the card number)
Code: [Select]
#
#  ALSA library configuration file
#

# pre-load the configuration files

@hooks [
{
func load
files [
"/usr/share/alsa/pulse.conf"
"/usr/share/alsa/bluetooth.conf"
"/etc/asound.conf"
"~/.asoundrc"
]
errors false
}
]

# load card-specific configuration files (on request)

cards.@hooks [
{
func load
files [
{
@func concat
strings [
{ @func datadir }
"/cards/aliases.conf"
]
}
]
}
{
func load_for_all_cards
files [
{
@func concat
strings [
{ @func datadir }
"/cards/"
{ @func private_string }
".conf"
]
}
]
errors false
}
]

#
# defaults
#

# show all name hints also for definitions without hint {} section
defaults.namehint.showall off
# show just basic name hints
defaults.namehint.basic on
# show extended name hints
defaults.namehint.extended off
#
# defaults.ctl.card 0
defaults.ctl.card NVidia
# defaults.pcm.card 0
defaults.pcm.card NVidia
# defaults.pcm.device 0
defaults.pcm.device 7
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device
# truncate files via file or tee PCM
defaults.pcm.file_format "raw"
defaults.pcm.file_truncate true
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0

#
#  PCM interface
#

# redirect to load-on-demand extended pcm definitions
pcm.cards cards.pcm

pcm.default cards.pcm.default
pcm.front cards.pcm.front
pcm.rear cards.pcm.rear
pcm.center_lfe cards.pcm.center_lfe
pcm.side cards.pcm.side
pcm.surround40 cards.pcm.surround40
pcm.surround41 cards.pcm.surround41
pcm.surround50 cards.pcm.surround50
pcm.surround51 cards.pcm.surround51
pcm.surround71 cards.pcm.surround71
pcm.iec958 cards.pcm.iec958
pcm.spdif iec958
pcm.hdmi cards.pcm.hdmi
pcm.dmix cards.pcm.dmix
pcm.dsnoop cards.pcm.dsnoop
pcm.modem cards.pcm.modem
pcm.phoneline cards.pcm.phoneline

pcm.hw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_PCM_DEVICE
]
default {
@func refer
name defaults.pcm.device
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.pcm.subdevice
}
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
hint {
show {
@func refer
name defaults.namehint.extended
}
description "Direct hardware device without any conversions"
}
}

pcm.plughw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_PCM_DEVICE
]
default {
@func refer
name defaults.pcm.device
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.pcm.subdevice
}
}
type plug
slave.pcm {
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
hint {
show {
@func refer
name defaults.namehint.extended
}
description "Hardware device with all software conversions"
}
}

pcm.plug {
@args [ SLAVE ]
@args.SLAVE {
type string
}
type plug
slave.pcm $SLAVE
}

pcm.shm {
@args [ SOCKET PCM ]
@args.SOCKET {
type string
}
@args.PCM {
type string
}
type shm
server $SOCKET
pcm $PCM
}

pcm.tee {
@args [ SLAVE FILE FORMAT ]
@args.SLAVE {
type string
}
@args.FILE {
type string
}
@args.FORMAT {
type string
default {
@func refer
name defaults.pcm.file_format
}
}
type file
slave.pcm $SLAVE
file $FILE
format $FORMAT
truncate {
@func refer
name defaults.pcm.file_truncate
}
}

pcm.file {
@args [ FILE FORMAT ]
@args.FILE {
type string
}
@args.FORMAT {
type string
default {
@func refer
name defaults.pcm.file_format
}
}
type file
slave.pcm null
file $FILE
format $FORMAT
truncate {
@func refer
name defaults.pcm.file_truncate
}
}

pcm.null {
type null
hint {
show {
@func refer
name defaults.namehint.basic
}
description "Discard all samples (playback) or generate zero samples (capture)"
}
}

#
#  Control interface
#

ctl.default {
type hw
card {
@func getenv
vars [
ALSA_CTL_CARD
ALSA_CARD
]
default {
@func refer
name defaults.ctl.card
}
}
}

ctl.hw {
@args [ CARD ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_CTL_CARD
ALSA_CARD
]
default {
@func refer
name defaults.ctl.card
}
}
}
type hw
card $CARD
}

ctl.shm {
@args [ SOCKET CTL ]
@args.SOCKET {
type string
}
@args.CTL {
type string
}
type shm
server $SOCKET
ctl $CTL
}

#
#  RawMidi interface
#

rawmidi.default {
type hw
card {
@func getenv
vars [
ALSA_RAWMIDI_CARD
ALSA_CARD
]
default {
@func refer
name defaults.rawmidi.card
}
}
device {
@func igetenv
vars [
ALSA_RAWMIDI_DEVICE
]
default {
@func refer
name defaults.rawmidi.device
}
}
}

rawmidi.hw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_RAWMIDI_CARD
ALSA_CARD
]
default {
@func refer
name defaults.rawmidi.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_RAWMIDI_DEVICE
]
default {
@func refer
name defaults.rawmidi.device
}
}
}
@args.SUBDEV {
type integer
default -1
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
hint {
description "Direct rawmidi driver device"
device $DEV
}
}

rawmidi.virtual {
@args [ MERGE ]
@args.MERGE {
type string
default 1
}
type virtual
merge $MERGE
}

#
#  Sequencer interface
#

seq.default {
type hw
}

seq.hw {
type hw
}

#
#  HwDep interface
#

hwdep.default {
type hw
card {
@func getenv
vars [
ALSA_HWDEP_CARD
ALSA_CARD
]
default {
@func refer
name defaults.hwdep.card
}
}
device {
@func igetenv
vars [
ALSA_HWDEP_DEVICE
]
default {
@func refer
name defaults.hwdep.device
}
}
}

hwdep.hw {
@args [ CARD DEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_HWDEP_CARD
ALSA_CARD
]
default {
@func refer
name defaults.hwdep.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_HWDEP_DEVICE
]
default {
@func refer
name defaults.hwdep.device
}
}
}
type hw
card $CARD
device $DEV
}

#
#  Timer interface
#

timer_query.default {
type hw
}

timer_query.hw {
type hw
}

timer.default {
type hw
class {
@func refer
name defaults.timer.class
}
sclass {
@func refer
name defaults.timer.sclass
}
card {
@func refer
name defaults.timer.card
}
device {
@func refer
name defaults.timer.device
}
subdevice {
@func refer
name defaults.timer.subdevice
}
hint.description "Default direct hardware timer device"
}

timer.hw {
@args [ CLASS SCLASS CARD DEV SUBDEV ]
@args.CLASS {
type integer
default {
@func refer
name defaults.timer.class
}
}
@args.SCLASS {
type integer
default {
@func refer
name defaults.timer.sclass
}
}
@args.CARD {
type string
default {
@func refer
name defaults.timer.card
}
}
@args.DEV {
type integer
default {
@func refer
name defaults.timer.device
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.timer.subdevice
}
}
type hw
class $CLASS
sclass $SCLASS
card $CARD
device $DEV
subdevice $SUBDEV
}


my NVIDIA card is my 2nd audio device based on  cat /proc/asound/cards   
my NVIDIA card is the only card with HDMI output and i DID NOT disable my onboard ATI-SB card (which also uses HDA-Intel driver)


Im using the 'default' /etc/asound.conf file (no modifications)


I am running a newer kernel because my NVIDIA card audio hardware was not seen by the default 2.6.32 kernel (im using 2.6.38-16-generic)
this causes alsa 1.0.23 to be used.


I also installed the backports alsa modules:   linux-backports-modules-alsa-lucid-generic     although there is a linux-backports-modules-alsa-2.6.32-43-generic that may work.

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on October 05, 2012, 05:31:22 am
Hello to all,

Thanks for the quick reply.  I fixed it!!!! ;D, I was playing with the xine.conf.  To get it to work I had to change to be more direct with the device
Code: [Select]
audio.device.alsa_front_device:asym_hdmi
audio.device.alsa_default_device:asym_hdmi
audio.device.alsa_passthrough_device:plughw:1,7
audio.output.speaker_arrangement:Pass Through

Thanks anyways ardirtbiker, you guide me to the right place!!!!

What I did for testing was work with the xine on the kdesktop, it was faster that way, I started playing around with the .config under .xine folder in root user so I did not wasted time going back and forward to the orbiter.  Once I tested all the combinations, just copy and paste!!!!
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 06, 2012, 02:16:58 am
tompin2,
     Are you able to get DTS-HD and True-HD audio thru the HDMI cable?   I have not just DTS (8 channel) and Dolby Digital.   

I dont know if it is a limitation of this version of xine.


Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on October 08, 2012, 12:40:08 pm
Thank you guys for all your help. I have submitted changes which should fix audio for everyone on all versions of alsa on any card, and also enable surround. Packages will be made today, and a new snap. I am afraid 8 chan is about as good as we can shoot for :)
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: posde on October 08, 2012, 01:16:42 pm
Dolby TrueHD and DTS-HD do a maximum of 8 channels. Make sure your receiver understands Dolby TrueHD / DTS-HD and your connection is capable of it as well.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: pigdog on October 08, 2012, 03:57:34 pm
Hi,

posde is right... your receiver has to support DTS, DTS-HD Master, Dolby TrueHD, etc. decoding.

The BD/DVD disk has to be encoded with DTS-HD Master, TrueHD, etc.

Receivers normally will read DTS-HD or TrueHD and decode this format.  This decode will show up on the receiver window.  I haven't seen (doesn't mean it's not out there) a receiver that allows your to set the default sound field to TrueHD etc.  Normally you set the default sound type to ProLogic, Neo etc, and when the receiver read the TrueHD encoding it overrides the default setting and plays TrueHD sound.

Something else to watch for is that some BD/DVD players may not provide the features by default without turning on/off options to provide DTS, TrueHD etc.

Cheers

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: l3mce on October 09, 2012, 12:50:08 am
My upgraded machines are working, but I have muffed something.

Hold off expecting miracles for a couple days.
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 09, 2012, 02:07:13 am
Hi guys,
 thanks l3mce for the hard work... and glad I could help.

yes I have a Denon AVR-1913 receiver that supports TrueHD and DTS-HD.   I was getting 8 channels but only as DTS (at least the receiver is displaying that)


I'll rerun AVWizard to see if it makes a difference, and if not, then rebuild my MD image this weekend.


Dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: tompin2 on October 09, 2012, 02:27:55 am
tompin2,
     Are you able to get DTS-HD and True-HD audio thru the HDMI cable?   I have not just DTS (8 channel) and Dolby Digital.   

I dont know if it is a limitation of this version of xine.


Dennis
Hi Ardirtbiker (Dennis),

I don't have any videos with DTS-HD OR TRUE-HD,  Ill get some samples and give it a try.  So far it is priceless the change, from normal stereo to at least 5.1 surround.  I don't think it should be a problem.  Pass Through will send anything to the receiver, so I guess that xine should send it.  The cable can be tested with speaker-test , I also have a DENON amp and with "-c 8" the amp picks it up right away.
I'll Get some tracks and test to see.  It's to bad there is no way to rip my BluRay Disk directly as DVD's.  Ill do some test and keep everyone posted. 

Also thanks L3mce for all your help!.  I will update the id41 for testing and post results.  So far this post looks that is about to change to "SOLVED!".  Thanks again to everyone for participating

T
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 09, 2012, 02:35:12 am
I am seeing the 7.1 audio, but the receiver only displays 'DTS' not DTS-HD or DTS-HD MA.   When I play a Bluray disc direct from my bluray player, i get the correct audio format..

my .mkv files were created with the HD audio enabled.   I am wondering if xine is not decoding correctly or if I have some other issue i need to resolve.


dennis
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: posde on October 09, 2012, 12:11:06 pm
As far as I understand the wikipedia entry, DTS-HD and Dolby TrueIHD need HDMI 1.3 - is you graphics adapter and your cable both HDMI 1.3?
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 10, 2012, 02:26:58 am
checked display card..   mini-HDMI 1.4a connector and I am assuming the mini-HDMI to HDMI cable that came with the card is at least 1.3.      I guess what I need to do is find some sound files that have DTS-HD or True-HD encoded audio.


Will keep informed
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: b4rney on October 14, 2012, 01:37:31 pm
Hi l3mce,

Just ran Globalupdates and I've lost hdmi audio on my acer revo again.

The layout of asound.conf has changed so I can't apply the previous fix you gave me. Judging by your last post above I guess you are aware of this.

Do I need to restore from the md from the tarball or is there a fix on the way?
Cheers
Barney
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 14, 2012, 03:25:53 pm
I found a site that has HD trailers here: http://www.demo-world.eu/trailers/high-definition-trailers.php (http://www.demo-world.eu/trailers/high-definition-trailers.php)

I downloaded a DTS-HD and a True-HD file...   the DTS-HD plays as just 7.1 DTS and the True-HD only plays as Stereo (at least that is what my receiver is saying it is).

I know my receiver works correctly as I have a bluray player and the receiver will display it is decoding the HD formats.   


I'm sure there is just something missing in the sound config setup...   Im still researching in my spare time.


Dennis

Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: posde on October 14, 2012, 03:34:06 pm
If you have a pure DTS-HD file, and you can hear the content via your receiver fed from your LinuxMCE system, I fail to understand where the problem is? Am I missing something?
Title: Re: HDMI nvidia HDA sound issues ZOTAC ZBOX (id41) - 1004
Post by: ardirtbiker on October 14, 2012, 04:00:00 pm
I may be missing something... if it is a True-HD or DTS-HD audio track, should my receiver not display the correct audio format (DTS-HD rather than just DTS)...   am i losing the 'HD' and only getting the Core audio?

Dennis