Kodi Community Forum

Full Version: How do I get audio passthrough via optical or hdmi on an Acer revo?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

This is my first post here so I hope I'm doing everything right.

I need help configuring audio on my xbmc installation, I've installed it through the repositories on my Acer revo (3600r if i'm not mistaken) running linux mint 11 x86.

What's my setup?
- PC>(hdmi)TV>(optical)receiver, capable of decoding pretty much everything.

What's my problem?
- I had a previous installation of xbmc which had this working with 2 small catches: whenever I wanted sound outside xbmc I had to change the sound card options and I always get 1sec of loud noise in the receiver before it started decoding (this is not normal).
I also can't get this working again although I still have the asoundrc file:
Code:
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,3"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        #rate 44100
        rate 48000
     }
     bindings {
        0 0
        1 1
     }
}
I can't remember how to activate this.

Have I tried/figured anything out yet?
Yes! I realised if I disabled pulse (which I'm not sure what it's function is) I get ac3 audio but not mp3.
I also found this solution several times:
Code:
pcm.!default {
type plug
slave {
pcm "hdmi"
}
}
But either I'm doing something wrong or it doesn't work for me.

What would I really want?
- Audio passthrough via optical or hdmi without the receiver 1sec noise I mentioned (but I can live with it if there's no other solution).
- Audio working in every file (ac3 and mp3).
- Not having to change sound preferences outside xbmc (but again, I can live with it).

Log file: I'm acessing the pc through ssh now so it's kinda hard to post the whole log, I'l leave you with this:

Code:
00:53:16 T:2775878512 M:2562592768 WARNING: PulseAudio: Does not support passthrough
00:53:18 T:2775878512 M:2560634880   ERROR: Initialize - device hdmi:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 busy retrying...
00:53:18 T:3078199168 M:2560634880  NOTICE: Using GL_TEXTURE_2D
00:53:18 T:3078199168 M:2560634880  NOTICE: GL: Using VDPAU render method
00:53:18 T:3078199168 M:2560634880  NOTICE: GL: NPOT texture support detected
00:53:18 T:3078199168 M:2560634880  NOTICE: GL: Using GL_ARB_pixel_buffer_object
00:53:18 T:2775878512 M:2564460544   ERROR: Initialize - failed to open custom device hdmi:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 (error:Device or resource busy), retry with default hdmi
00:53:18 T:2775878512 M:2564460544   ERROR: Initialize - pcm_open_lconf, alsa error: -16 - Device or resource busy
00:53:18 T:2775878512 M:2564460544   ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen

Thanks for any help!
Wink
Update: I managed to get audio through optical, with a small modification to the script I posted (hw:0,1) and choosing alsa:dmixer as output.

I don't have the receiver noise anymore but now I have a small delay on video/audio sync. How can I fix this?

Thz