News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

How many of us are interested in HDMI audio?

Started by geekyhawkes, July 21, 2009, 11:11:43 AM

Previous topic - Next topic

totallymaxed

Quote from: Murdock on July 22, 2009, 04:09:59 PM
Hmm, do we want to put that somewhere in the wiki? If ya don't mind I put it in near the top: http://wiki.linuxmce.com/index.php/LinuxMCE-0810_alpha2


Have updated that page a little with some additional info.

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

Murdock

Much better, Thanks. I'm going to be rebuilding my 810 dev environment soon and will use this.

geekyhawkes

#17
Is anyone having any luck getting this working?  I have the new AV wizard but am not getting any sound out via HDMI.

I do have nvidea 180.60 installed (checked with "sudo cat /proc/driver/nvidia/version").  

I am also running Alsa 1.0.20 installed using the ubuntuforums script (and reinstalled under this alpha version post update just in case).

I have made sure the output isnt muted under Sudo alsamixer.

Is there anything else i can try to rule out to get this audio working?


P.S I have also tried it with 185.14 driver and it is just the same.

geekyhawkes

#18
EDIT: Post no longer relevant reinstalled , see below

geekyhawkes

#19
EDIT: No longer relevant reinstalled, see below

geekyhawkes

#20
Ok, so had to reinstall my machine this weekend (again) and have reinstalled a fresh MCE machine from the latest alpha with the updated avwizard.  I am running Nvidia latest 185 driver, alsa 1.0.20.  Under KDE with a modified asound.conf i have audio over hdmi with no problems.  During the avwizard I get no audio over hdmi and likewise under mce.

I dropped to kde and found one of the 3 digital devices muted under alsamixer.  I have unmuted it but sadly i still dont have hdmi audio.

A Sudo aplay -L lists all of the correct outputs for my card,  but even speaker test gives no audio;

speaker-test -t wav -D plug:front -c2 -l2
aplay -D plug:hdmi /usr/share/sounds/KDE_Window_Open.wav (same result - no audio)

I am wondering if it something to do with the asound.conf generated by the avwizard?

Is there something I am missing, or something else i can do to get this working?  
(I am using an M378-EM motherboard if that matters).

geekyhawkes

Anyone had any success with this update & HDMI audio? I am trying to work out why my hdmi audio might not be working.  Thanks

merkur2k

I am in the same situation as you and have done basically the same steps, other than reinstalling. same results. the devices are there and should be working, but nothing comes out.

nite_man

I suppose that HDMI audio works in 0810 only. The reason - system doesn't recognize sound card properly under 0710. Even with upgraded kernel, the latest ALSA and nVidia drivers. I have MB Asus M3N78-EM. Under 0710 HD device is listed in the aplay -l and aplay -L output. But lspci shows sound card as unknown device but under 0810 is displayed as nVidia or something (don't remember exactly). So, the problem is there I guess.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

totallymaxed

Quote from: nite_man on July 28, 2009, 10:16:02 AM
I suppose that HDMI audio works in 0810 only. The reason - system doesn't recognize sound card properly under 0710. Even with upgraded kernel, the latest ALSA and nVidia drivers. I have MB Asus M3N78-EM. Under 0710 HD device is listed in the aplay -l and aplay -L output. But lspci shows sound card as unknown device but under 0810 is displayed as nVidia or something (don't remember exactly). So, the problem is there I guess.

For nVidia based machines we have this working under 0710 & 0810. You need nVidia 180.22 (or later) driver and alsa-1.0.20 (or later) and a valid asound.conf;


For pcm audio via the hdmi connector you should have a something like the following in asound.conf;

pcm.!default "plug:hdmi"

All the best

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

wierdbeard65

Ok, time for me to bring the thread down with a couple of dumb questions  ;)

I've been following it with interest, but not because of cabling issues, more because of available expansion slots.

The (recycled) device I intend to use as an MD in my living room has limited slots(2). It also doesn't have suitable on-board graphics. One slot will be requitred for my PVR-150 card to connect to my Sky STB. I only have one more slot, so will if this works, will I be able to get away with one card doing both graphics and audio, or will I require a USB sound "card"? I don't want surround sound and will be using the TV's built-in speakers. Assuming audio over HDMI works and a single card will do both, which cards are suitable candidates?

Just to be clear here (before anyone tells me to go and buy another MD or whatever!  ;)) I am still at the proof of concept / WAF stage. Once I have it all working and the family have decided they can't live without it, I intend to move my STB to my core (so the PVR-150 will move) and replace the MD with one of the tiny ION-based boards that Andrew has been raving about. At the moment, though, I need the least (zero?) cost solution.
Paul
If you have the time to help, please see where I have got to at: [url="http://wiki.linuxmce.org/index.php/User:Wierdbeard65"]http://wiki.linuxmce.org/index.php/User:Wierdbeard65[/url]

geekyhawkes

Nice to know I am not on my own after the update.  I will check the asound.conf as I am running alsa 1.0.20 and Nvidia 185.14.  I did have HDMI audio working under KDE before the MCE install, although my asound.conf will have changed by then.

Andrew, have you had to tweak anything further to get HDMI audio under myth?  I read on their wiki something to do with EDID settings to get HDMI audio under myth. 

If i get it working i will report back.

Thanks.

merkur2k

weirdbierd, i do not know of any single card solution that provides both audio and video. some video cards with an hdmi connector have a connector or header to connect to a sound card to get the audio into hdmi, but you still need a separate audio device. usb is probably the way to go in your case, i know you can get some 2 channel usb adapters for very cheap.

wierdbeard65

merkur2k,

Thanks for that - oh well, it was worth hoping ;)
Paul
If you have the time to help, please see where I have got to at: [url="http://wiki.linuxmce.org/index.php/User:Wierdbeard65"]http://wiki.linuxmce.org/index.php/User:Wierdbeard65[/url]

geekyhawkes

Below is my asound.conf created by the avwizard:

pcm_slave.spdif_convert48k {
   pcm "spdif"
   rate 48000
}

pcm.spdif_playback {
   type plug
   slave spdif_convert48k
}

pcm_slave.hdmi_convert48k {
   pcm "hdmi"
   rate 48000
}

pcm.hdmi_playback {
   type plug
   slave hdmi_convert48k
}

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"
}

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


This is the one that was autogenerated by selecting HDMI from the avwizard.  I have tried pasting my own asound.conf over the top but each time i restart my machine then the asound file is changed during boot up by mce and doesnt work.