LinuxMCE Forums
May 26, 2013, 07:01:30 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: How many of us are interested in HDMI audio?  (Read 3663 times)
geekyhawkes
Guru
****
Posts: 230


View Profile
« Reply #30 on: July 29, 2009, 11:35:16 am »

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, 11:42:25 am by geekyhawkes » Logged
geekyhawkes
Guru
****
Posts: 230


View Profile
« Reply #31 on: July 29, 2009, 11:55:08 am »

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
Logged
totallymaxed
LinuxMCE God
****
Posts: 4310


View Profile WWW
« Reply #32 on: July 29, 2009, 12: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:
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
Logged

Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu OS Release!

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk
geekyhawkes
Guru
****
Posts: 230


View Profile
« Reply #33 on: July 29, 2009, 04: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?

Logged
wierdbeard65
Guru
****
Posts: 449


View Profile WWW
« Reply #34 on: July 29, 2009, 04: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.
Logged

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
« Reply #35 on: July 29, 2009, 04: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, 04:56:09 pm by geekyhawkes » Logged
Murdock
Guru
****
Posts: 229



View Profile
« Reply #36 on: September 21, 2009, 02:34:59 pm »

Any updates on this item?
Logged
thezfunk
Regular Poster
**
Posts: 37


View Profile
« Reply #37 on: September 25, 2009, 06: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.
Logged
rperre
Guru
****
Posts: 264


View Profile
« Reply #38 on: October 13, 2009, 04: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
Logged

Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!