Author Topic: How many of us are interested in HDMI audio?  (Read 17633 times)

geekyhawkes

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #30 on: July 29, 2009, 12:35:16 pm »
This is my original asound.conf that gave me audio over hdmi under KDE before installing mce;




pcm.!default {
        type plug
        slave {
                pcm multi
                rate 48000
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
}

#ctl.!default hdmiout

pcm.optical {
        type hw
        card 0
        device 1
}

ctl.optical {
        type hw
        card 0
        device 1
}

pcm.hdmiout {
        type hw
        card 0
        device 3
}

ctl.hdmiout {
        type hw
        card 0
        device 3
}

pcm.multi {
        type multi
        slaves.a.pcm "hdmiout"
        slaves.a.channels 2
        slaves.b.pcm "optical"
        slaves.b.channels 2

        bindings.0.slave a
        bindings.0.channel 0
        bindings.1.slave a
        bindings.1.channel 1

        bindings.2.slave b
        bindings.2.channel 0
        bindings.3.slave b
        bindings.3.channel 1
}

ctl.multi {
        type hw
        card 0
}




Does it matter what type of soundcard is listed under webadmin for MD?  Mine was set up as standard sound card, but i can see HDA Nvidia as an option.  Higher up the page I have an H listed under sound.
« Last Edit: July 29, 2009, 12:42:25 pm by geekyhawkes »

geekyhawkes

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #31 on: July 29, 2009, 12:55:08 pm »
There might be a clue or 2 in the following links, i havent got time to read them now, but should inform us all;

http://ubuntuforums.org/showthread.php?t=1143028

http://www.mythtv.org/wiki?title=AllensDigitalAudioHowto

http://www.mythtv.org/wiki/Configuring_Digital_Sound#Setting_up_ALSA.27s_.asoundrc.2C_Properly

Quick look seems to be lots of ways of getting asound.conf working, but we need to work out how to stop MCE re-editing the file at reboot.

Andrew, could you posta  copy of a working asound.conf from one of your machines for us to look at as well please?

Thanks

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: How many of us are interested in HDMI audio?
« Reply #32 on: July 29, 2009, 01:42:55 pm »
There might be a clue or 2 in the following links, i havent got time to read them now, but should inform us all;

http://ubuntuforums.org/showthread.php?t=1143028

http://www.mythtv.org/wiki?title=AllensDigitalAudioHowto

http://www.mythtv.org/wiki/Configuring_Digital_Sound#Setting_up_ALSA.27s_.asoundrc.2C_Properly

Quick look seems to be lots of ways of getting asound.conf working, but we need to work out how to stop MCE re-editing the file at reboot.

Andrew, could you posta  copy of a working asound.conf from one of your machines for us to look at as well please?

Thanks

Here is a working asound.conf from an MD setup to route spdif over hdmi to a Denon Surround receiver;

Code: [Select]
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


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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

geekyhawkes

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #33 on: July 29, 2009, 05:16:53 pm »
Couple of questions, does spdif support all forms of audio?  Are you using this asound.conf to play mp3s or just dvds? 

How have you got on with myth as they have loads of posts with random changes to try and get hdmi audio working under myth.

======Does anyone know how we can stop MCE changing the asound.conf file at reboot?=========================

Or is there a way i can adjust the template asound.conf that the avwizard uses?


wierdbeard65

  • Guru
  • ****
  • Posts: 449
    • View Profile
    • My Quest
Re: How many of us are interested in HDMI audio?
« Reply #34 on: July 29, 2009, 05:30:55 pm »
======Does anyone know how we can stop MCE changing the asound.conf file at reboot?=========================

I've seen this question asked here many times, not just about asound.conf, but about a lot of the config files as well as the startup files.

I'm sure I read somewhere that MCE overwrites the files using values stored in the database somewhere. Can anyone confirm? If so, then perhaps the way forward to to dig in to the database (or wherever else it's getting the replacements from) and change it there, rather than trying to stop the files being replaced / changed?

It's reasonable to assume that whoever set up MCE initially to overwrite this stuff, did so for a good reason. We risk breaking something if we prevent it doing this.
Paul
If you have the time to help, please see where I have got to at: http://wiki.linuxmce.org/index.php/User:Wierdbeard65

geekyhawkes

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #35 on: July 29, 2009, 05:44:09 pm »
It looks like the asound.conf file is kept under /usr/pluto/templates/asound.conf.  

Strange though i cannot see how it works out which asound.conf to create based on avwizard selection as there is only 1 file at the location and it matches the output of the avwizard whatever you pick.

ANyone who knows mce better than me cast some light on this issue?  My asound.conf matches the one andrew posted yet i get no mp3 or dvd audio via hdmi.


EDIT:  I have no idea what that template is used for but i have tried changing both the template and my asound.conf files with no luck.  Each time i reboot then i get no where, MCE still changes the asound.conf file i have created. 

ANDREW, when you modified the avwizard where did you provide the asound.conf information?  Is it in a referance file or is it compiled somehow?  This is driving me crazy now, it just shouldnt be this difficult!
« Last Edit: July 29, 2009, 05:56:09 pm by geekyhawkes »

Murdock

  • Guru
  • ****
  • Posts: 229
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #36 on: September 21, 2009, 03:34:59 pm »
Any updates on this item?

thezfunk

  • Regular Poster
  • **
  • Posts: 37
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #37 on: September 25, 2009, 07:05:17 am »
geekyhawkes, you are my brother by another mother.  I have been struggling for two days to get HDMI audio working and through your posts and posts the length and breath of the webtertubs I have learned alot but I am at the same spot you are.  HDMI audio does not work.  I will be posting more complete info in my thread.

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: How many of us are interested in HDMI audio?
« Reply #38 on: October 13, 2009, 05:17:36 pm »
Anybody have any luck getting hdmi audio to work with these settings?

Looks like my asound.conf stays the same, but somehow no sound over hdmi.

Richard