HDMI audio in XBMCBuntu
#1
I am having an issue with audio over hdmi in xbmcbuntu Frodo. Anything that plays on xbmc works fine, but everything else does not work. For example I use advanced launcher to launch netflix-desktop and that gets no sound.

aplay -l output:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I have edited ~/.asoundrc to this
Code:
pcm.!default {
    type plug
    slave {
        pcm "hw:0,7"
    }
}
ctl.!default {
    type plughw
    card 0
}

I can get sound with
Code:
speakers-test -D plughw:0,7 -c 2
but speakers-test -D default gets nothing.
If I change .asoundrc to have pcm.test and ctl.test instead of !default and get sound with -D test.

I would really like to be able to watch netflix and play games through advanced launcher and be able to hear sound. Anyone have any suggestions on how to get hdmi to be the default audio out?
Reply
#2
Need more information. Can you enable debug logging, reboot, try to do the thing where sound doesn't work, and do a pastebin of ~/.xbmc/temp/xbmc.log

Also what are the sound settings in system->system->audio output

Are you using a passthrough device? Is the HDMI out going directly to your TV?
Reply
#3
Let me clarify.
The audio in xbmc works fine over hdmi for passthough and regular output.
Yes the HDMI is going directly to the TV.

Really this is more of a linux question than an XBMC question but I figured I'd ask here instead of an ubuntu forum because there is probably a lot more experience here with XBMCBunutu in particular.

The issue is outside of xbmc with regular system sound so the XBMC log will (I believe) be useless in troubleshooting this.
I want to set the default audio output device to be hdmi so that when I run other programs the sound works.
My understanding is that setting the proper device to be named pcm.!default should acomplish this but for some reason it does not override the normal default device. If I name the device to be named something else it works but that does not change the deault device so I still get no sound with regular programs.
Reply
#4
I was having this issue too but somehow I fixed. I forget how though. If I can remember ill share it with ya. Pretty sure it was an alsa property.
Reply
#5
You shoud use dmix plugin for alsa and set default PCM device to HDMI. This is my asound.conf:

Code:
pcm.!default {
        type plug
        slave.pcm "dmixer"
}

pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:0,8"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

ctl.dmixer {
        type hw
        card 0
}

NB: needless to say you need to change hw address to 0,7 in your case ...
Reply
#6
You can set your external app to use the correct device, or you can redefine "Default" to be the correct device.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#7
(2013-08-06, 07:25)styx06 Wrote: You shoud use dmix plugin for alsa and set default PCM device to HDMI. This is my asound.conf:

Code:
pcm.!default {
        type plug
        slave.pcm "dmixer"
}

pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:0,8"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

ctl.dmixer {
        type hw
        card 0
}

NB: needless to say you need to change hw address to 0,7 in your case ...

Thanks so much! This worked perfectly.
Reply

Logout Mark Read Team Forum Stats Members Help
HDMI audio in XBMCBuntu0