Linux Surround Sound over HDMI on Xbmc 11.0
#1
Hey everyone,

I recently updated my old version of Xbmc to 11.0 (compiled march 24th) and in doing so ive lost the rear of my surround sound output.

My Xbmc machine is a Zotac ION ITX-A and i have it connected to my Onkyo TX-SR605 via HDMI.

I am running ALSA 1.0.23

On my previous version of Xbmc id struggled to get surround sound to map to the correct channels - but after using the two lines below over Terminal the channel mapping was fixed. The sound was sent to the amp untouched and was mapped correctly, and the amp displayed "DVD Multichannel". Here are the two lines that fixed it last time:

sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf
sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf


Since upgrading to 11.0 the sound setup screen in system is different. Now there are many more options than im used to seeing. On first boot the sound failed and all i got was video.

There is only 1 option in "Audio Ouput Device" and 1 option in "Passthrough Output Device" that do not cause the sound to fail and error when i play a movie. These are:

Audio Output Device = DEFAULTS (ALSA)
Passthrough Output Device = HDMI (ALSA)

When i use these i get correct mapping for Front Left, Centre, Front Right and LFE - but Rear Left and Rear Right come out of the respective Front channels - only a bit quieter. The amp also displays "HDMI Passthrough" instead of "DVD Multichannel". Clearly something has changed - but i haven't changed anything!

My other sound settings are:

Audio Output = HDMI
Speaker Configuration = 5.1
Dolby Compatible = No (the amp is, but i was told this was a better option - and used to work great)
DTS Compatible = No (same as above)

Im happy to put more information up if someone can help. I really want my multichannel sound back so I can watch my films without knowing im missing part of the soundtrack.

Any help will be greatly appreciated!
Reply
#2
Had another browse around the forums and google and have made some progress (i think!).

I replaced my /home/xbmc/asoundrc with a new one from page 43 of this post:

http://forum.xbmc.org/showthread.php?tid=59877&page=43

Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

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

pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

My old .asoundrc looked like this:

Code:
pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "hdmi_hw"
                channels 2
        }
        slaves.b {
                pcm "digital_hw"
                channels 2
        }
        slaves.c {
                pcm "analog_hw"
                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
        bindings.4.slave c
        bindings.4.channel 0
        bindings.5.slave c
        bindings.5.channel 1
}

pcm.hdmi_hw {
        type hw
        card 0
        device 3
        channels 2
}

pcm.hdmi_formatted {
        type plug
        slave {
                pcm hdmi_hw
                rate 48000
                channels 2
        }
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_formatted
        control.name hdmi_volume
        control.card 0
}

pcm.digital_hw {
        type hw
        card 0
        device 1
        channels 2
}

pcm.analog_hw {
        type hw
        card 0
        device 0
        channels 2
}

With the old one my rear channels were mapped to my front channels and my amp showed "HDMI Passthrough" - neither of which happened before my upgrade to 11.0.

With the new one my audio output and passthrough settings need to be "plughw:0,3". Also with this new .asoundrc my amp says "DVD Multichannel" again! This good news.

Sadly though ALL MY CHANNELS are now mixed up.

This new .asoundrc file looks nothing like the old one - and i cannot see anywhere i can change setting to remap the channels.

Is there something i can add from my old .asoundrc file to remap the channels on my new one?
Reply
#3
Progress!

I removed the .asoundrc file from my home/xbmc folder.

I replaced my asound.conf file from my /etc folder with this:

Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

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

pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

In my Audio Settings my Audio Ouput Device now says "hdmi-remap" which matches the entry in my .asound.conf file.

My passthrough device is HDMI (ALSA) - not that this appears to do anything if i change it.

With these settings my amp reads "DVD Multichannel" when i fire DTS or AAC audio at it, and its also mapped to the correct channels!

The only thing i no longer have that used to work fine - is menu sounds.

I've tried a few fixes suggested on various threads, but they either have no effect or break my audio settings.

The 'big' thing was proper multichannel audio though so even if i cannot get menu sounds working im happy.

If anyone has any ideas for menu sounds based on the above info though - please do tell!
Reply

Logout Mark Read Team Forum Stats Members Help
Surround Sound over HDMI on Xbmc 11.00