<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HunterZ</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HunterZ"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/HunterZ"/>
	<updated>2026-07-10T06:05:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Linux_audio&amp;diff=109845</id>
		<title>Archive:Linux audio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Linux_audio&amp;diff=109845"/>
		<updated>2015-12-26T21:58:04Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: /* Hardware Vendor Specifics */ add ION&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page describes how to set up audio for Linux-based systems. Primarily, it covers how to setup Kodi when using either ALSA or PulseAudio.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= PulseAudio vs ALSA =&lt;br /&gt;
&lt;br /&gt;
Linux has two different audio systems, these are &#039;&#039;&#039;[[w:PulseAudio|PulseAudio]]&#039;&#039;&#039; and &#039;&#039;&#039;[[w:Advanced Linux Sound Architecture|Advanced Linux Sound Architecture (ALSA)]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you have a PC that is exclusively used for Kodi then using ALSA maybe the best solution.&lt;br /&gt;
&lt;br /&gt;
If you have a PC runs many applications other than Kodi then using PulseAudio maybe the the best solution.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PulseAudio FAQ ==&lt;br /&gt;
To help you decide which is best for you:&lt;br /&gt;
{{See|PulseAudio#FAQ}}&lt;br /&gt;
&lt;br /&gt;
== Configuring PulseAudio ==&lt;br /&gt;
When using PulseAudio some configuration at the OS level maybe necessary to get audio from XBMC.&lt;br /&gt;
&lt;br /&gt;
For how to do this &lt;br /&gt;
{{See|PulseAudio}}&lt;br /&gt;
&lt;br /&gt;
= Hardware Vendor Specifics =&lt;br /&gt;
&lt;br /&gt;
== AMD ==&lt;br /&gt;
&lt;br /&gt;
For AMD GPU&#039;s there are two sets of drivers available, the AMD supplied binary fglrx drivers or the newer Radeon OSS drivers.&lt;br /&gt;
&lt;br /&gt;
=== fglrx Drivers ===&lt;br /&gt;
&lt;br /&gt;
The AMD fglrx drivers on Linux support TrueHD, LPCM 7.1 and DTS-HD starting with kernel 3.13.&lt;br /&gt;
&lt;br /&gt;
The AMD developers responsible for the fglrx drivers have failed to provide any updates or improvements to the XvBA hardware acceleration API which is for example used in the infamous xvba-va-driver. We suggest you disable hw decoding support and choose multithreaded Software Decoding in the Video -&amp;gt; Acceleration settings.&lt;br /&gt;
&lt;br /&gt;
=== Radeon OSS Drivers ===&lt;br /&gt;
&lt;br /&gt;
As a consequence of the lack of XvBA updates, XBMC&#039;s developers got in contact with the AMD OSS developers to see what could be done to improve AMD graphics in Linux, the result was the Radeon OSS drivers which have been developed to use the open source VDPAU API. &lt;br /&gt;
&lt;br /&gt;
The Radeon OSS driver are now more feature rich and better performing than the fglrx ever were, amongst other things they are capable of allowing HD audio (DTS-HD, TrueHD) to be bitstreamed.&lt;br /&gt;
&lt;br /&gt;
For more detail see forum thread: &lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:174854|Linux - Radeon OSS with vdpau (howto)]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Intel GPU HD Audio ==&lt;br /&gt;
Ubuntu 14.04 and therefore Xbmcbuntu v13 support HD Audio with intel hardware (IVB, SNB, HSW) out of the box you don&#039;t have to do any modifications to your system configuration. If and only if you are running a very old distribution, e.g. Ubuntu 12.04 that is shipped with an old kernel {{see|Intel Linux Modifications for HD Audio}}, those changes will break and harm your audio on a recent distributions, don&#039;t change your config files.&lt;br /&gt;
&lt;br /&gt;
== nVidia ION ==&lt;br /&gt;
See [[HOW-TO:Remap HDMI audio on Gen 1 ION - Linux]] for help on remapping HDMI audio channels.&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=103200</id>
		<title>Archive talk:Remap HDMI audio on Gen 1 ION - Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=103200"/>
		<updated>2015-11-15T05:09:53Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: /* Kodi 14.0 Helix note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Some XBMCbuntu 12.0 Frodo official release version notes ==&lt;br /&gt;
* In &amp;quot;Audio output = HDMI&amp;quot; mode, &amp;quot;Passthrough output device&amp;quot; is &#039;&#039;&#039;NOT&#039;&#039;&#039; used for some reason. Instead, only &amp;quot;Audio output device&amp;quot; is used for everything (including menu sounds).&lt;br /&gt;
* Here is an .asoundrc that better accommodates desktop application usage in XBMCbuntu, by setting up an ALSA dmix plugin by default: http://forum.xbmc.org/showthread.php?tid=90910&amp;amp;pid=1320755#pid1320755&lt;br /&gt;
* I don&#039;t think that Gen 1 ION is able to passthrough AAC over HDMI. XBMC seems to implicitly convert to LPCM when it can, or AC3 as the second choice.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] 14:44, 2 February 2013 (EST)&lt;br /&gt;
&lt;br /&gt;
== Kodi 14.0 Helix note ==&lt;br /&gt;
It appears that in KodiBuntu 14.0 Helix with default ALSA config, attempting to play 6-channel AAC audio over HDMI no longer results in a 6-channel LPCM passthrough with incorrect mappings. Instead, it appears to end up as 6-channel LPCM non-passthrough with correct mappings. I guess Kodi&#039;s AudioEngine is performing the remapping for us, which is probably a good thing.&lt;br /&gt;
&lt;br /&gt;
This means that my Frodo .asoundrc in the article is no longer needed for Kodi itself. However, speaker-test shows that the ALSA-level mappings are still wrong, so remapping is still needed if you plan to use 6+ channel audio in non-Kodi apps. In this case, you can probably just configure Kodi to use hdmi_hw or some other untouched output.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve updated the article with this info.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] ([[User talk:HunterZ|talk]]) 20:11, 1 January 2015 (EST)&lt;br /&gt;
&lt;br /&gt;
:Update: I guess this regressed in 15.x Isengard? I think I had to put the remapping fix back in. --[[User:HunterZ|HunterZ]] ([[User talk:HunterZ|talk]]) 00:09, 15 November 2015 (EST)&lt;br /&gt;
&lt;br /&gt;
== Kodi rename note ==&lt;br /&gt;
&lt;br /&gt;
Just a quick note about the Kodi name change with respect to this article: I think we can leave things as-is, XBMC is only mentioned in the context of particular versions of the software.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] ([[User talk:HunterZ|talk]]) 20:14, 1 January 2015 (EST)&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=103199</id>
		<title>Archive:Remap HDMI audio on Gen 1 ION - Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=103199"/>
		<updated>2015-11-15T05:05:01Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: Isengard config&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Some early nVidia ION-based motherboards have their HDMI audio channels mapped incorrectly. There are two relatively simple methods to remap HDMI audio at the OS-level on nVidia ION-based systems; which one you use depends on your setup. If you require passthrough, disabling Pulseaudio (if your distribution uses it by default) is necessary to configure ALSA to remap the channels. Configuring Pulseaudio to remap the channels is another option if you don&#039;t require passthrough.&lt;br /&gt;
&lt;br /&gt;
It should be noted that whenever editing config files, it&#039;s best to backup the original.&lt;br /&gt;
&lt;br /&gt;
== ALSA ==&lt;br /&gt;
The following steps require the removal of Pulseaudio if your distribution uses it by default.&lt;br /&gt;
&lt;br /&gt;
HDMI audio output requires several steps to configure properly. My requirements were passthrough, non-passthrough and menu sounds all coming over HDMI to my receiver (fairly common). Some challenges were that the Gen 1 ION had incorrect channel mappings (e.g. Center came out of Left Rear) and menu sounds do not default to HDMI. &lt;br /&gt;
&lt;br /&gt;
I first noticed the audio channels were mis-mapped while watching a movie - all the voices were coming out of the left rear channel, not center. To verify this, I ran the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To correct the output, I created the following channel mapping in ~/.asoundrc or /etc/asound.conf(.asoundrc overrides the default alsa settings per user, while /etc/asound.conf is a global settings override)&lt;br /&gt;
&lt;br /&gt;
=== 11.x Eden with 7.1 speakers ===&lt;br /&gt;
==== ALSA Configuration ====&lt;br /&gt;
Untested in Frodo.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcm.hdmi-remap {&lt;br /&gt;
       type route&lt;br /&gt;
       slave.pcm hdmi&lt;br /&gt;
       ttable.0.0 1&lt;br /&gt;
       ttable.1.1 1&lt;br /&gt;
       ttable.2.4 1&lt;br /&gt;
       ttable.3.5 1&lt;br /&gt;
       ttable.4.2 1&lt;br /&gt;
       ttable.5.3 1&lt;br /&gt;
       ttable.6.6 1 &lt;br /&gt;
       ttable.7.7 1 &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:{{Note|There is intentionally no &#039;&#039;slave.channels&#039;&#039; line in the configuration file since it seems to corrupt the digital stream and prevented proper DTS and DD passthrough to my receiver. If you hear static when using passthrough, this might be the reason why!}}&lt;br /&gt;
;To test our new configuration, we can run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi-remap -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hopefully the channels will now be mapped correctly.&lt;br /&gt;
&lt;br /&gt;
==== Kodi Configuration ====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;7.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;Custom&#039;&#039;&#039;&lt;br /&gt;
* Custom audio device : &#039;&#039;&#039;hdmi-remap&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;hdmi(ALSA)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Menu Sounds ====&lt;br /&gt;
:{{Note|Not needed in Frodo.}}&lt;br /&gt;
To configure menu sounds, I told alsa to use the hdmi-remap device as default. I did this by adding the following section to my ~/.asoundrc file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;pcm.!default {&lt;br /&gt;
	type plug&lt;br /&gt;
	slave.pcm hdmi-remap&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 12.x Frodo / 13.x Gotham with 5.1 speakers (simple fix) ===&lt;br /&gt;
==== ALSA Configuration ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcm.!default {&lt;br /&gt;
    type plug&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm both&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
pcm.both {&lt;br /&gt;
    type route&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm hdmi&lt;br /&gt;
    }&lt;br /&gt;
       ttable.0.0 1&lt;br /&gt;
       ttable.1.1 1&lt;br /&gt;
       ttable.2.4 1&lt;br /&gt;
       ttable.3.5 1&lt;br /&gt;
       ttable.4.2 1&lt;br /&gt;
       ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To test our new configuration, we can run:&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Kodi Configuration ====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;HDA NVidia HDMI 0&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;HDA NVidia HDMI 0&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a reboot, sound should be working as expected. Feel free to update this information as needed.&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:147733|&#039;&#039;&#039;Linux&#039;&#039;&#039; Frodo HDMI audio channel remap discussion]]}}&lt;br /&gt;
&lt;br /&gt;
=== 12.x Frodo / 13.x Gotham with 5.1 speakers (including desktop application fix) ===&lt;br /&gt;
==== ALSA Configuration ====&lt;br /&gt;
The following .asoundrc settings will allow Kodi to use exclusive HDMI passthrough, while defaulting to a dmix plugin for the Kodibuntu desktop mode (so that multiple applications can share HDMI access):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;pcm.hdmi_hw {&lt;br /&gt;
        type hw&lt;br /&gt;
        card=0&lt;br /&gt;
        device=3&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_direct {&lt;br /&gt;
        type route&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_hw&lt;br /&gt;
        }&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_shared {&lt;br /&gt;
        type route&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_dmix&lt;br /&gt;
        }&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_dmix {&lt;br /&gt;
        type dmix&lt;br /&gt;
        ipc_key 1024&lt;br /&gt;
        ipc_key_add_uid false&lt;br /&gt;
        ipc_perm 0666&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_hw&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.!default {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm &amp;quot;hdmi_shared&amp;quot;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Test passthrough mode with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi_direct -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;And default/shared mode with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;It may also be worth testing each with -c 2 instead of -c 6 to ensure that 2-channel inputs will work.&lt;br /&gt;
&lt;br /&gt;
==== Kodi Configuration ====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* AAC capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039; &#039;&#039;(note that AAC appears to reach my receiver as 5.1 LPCM, regardless of this setting)&#039;&#039;&lt;br /&gt;
* MultiChannel LPCM capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;HDA NVidia HDMI(hdmi_direct)&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;HDA NVidia HDMI(hdmi_direct)&#039;&#039;&#039; &#039;&#039;(note that this setting apparently doesn&#039;t matter, as Frodo seems to use the &amp;quot;Audio output device&amp;quot; setting for both passthrough and non-passthrough modes when &amp;quot;Audio Output&amp;quot; is set to &amp;quot;HDMI&amp;quot;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a reboot, sound should be working as expected in both Kodi and in Kodibuntu desktop applications. Feel free to update this information as needed.&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:90910|Problem with 5.1 channel mapping, help configuring asound.conf]]}}&lt;br /&gt;
&lt;br /&gt;
=== 14.x Helix ===&lt;br /&gt;
It appears that remapping may no longer be necessary in Helix for the benefit of Kodi itself, as Kodi appears to perform the remapping itself in software. If remapping is needed for other Linux apps, it should be possible to still use the Frodo/Gotham .asoundrc above but configure Kodi itself to use an output that is not remapped.&lt;br /&gt;
&lt;br /&gt;
Indeed the remapping can even cause Kodi to crash with AESink recording a segfault in libasound.&lt;br /&gt;
&lt;br /&gt;
=== 15.x Isengard with 5.1 speakers (including desktop application fix) ===&lt;br /&gt;
Remapping is definitely still needed for me for all forms of non-pass-through 5.1 audio.&lt;br /&gt;
&lt;br /&gt;
For some reason, my ALSA config for 12.x/13.x above no longer works for Kodibuntu 15.2 in desktop mode logins (no sound at all), so here&#039;s an updated .asoundrc that works as before:&lt;br /&gt;
&amp;lt;pre&amp;gt;# --auto-generated-- by /etc/xbmc/live.d/01-make-asoundrc.sh&lt;br /&gt;
# AUTOUPDATE=False  # change this to disable updating of this file&lt;br /&gt;
pcm.hdmi_hw {&lt;br /&gt;
	type hw&lt;br /&gt;
	card=0&lt;br /&gt;
	device=3&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_dmix {&lt;br /&gt;
        type dmix&lt;br /&gt;
        ipc_key 5678293&lt;br /&gt;
        ipc_key_add_uid true&lt;br /&gt;
        ipc_perm 0660&lt;br /&gt;
	ipc_gid audio&lt;br /&gt;
        slave {&lt;br /&gt;
		channels 6&lt;br /&gt;
		pcm {&lt;br /&gt;
			format S16_LE&lt;br /&gt;
			rate 48000&lt;br /&gt;
			nonblock true&lt;br /&gt;
			type hw&lt;br /&gt;
			card 0&lt;br /&gt;
			device 3&lt;br /&gt;
		}&lt;br /&gt;
		period_size 1024&lt;br /&gt;
		buffer_size 8192&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_direct {&lt;br /&gt;
	type plug&lt;br /&gt;
	slave {&lt;br /&gt;
		pcm hdmi_hw&lt;br /&gt;
	}&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_shared {&lt;br /&gt;
	type plug&lt;br /&gt;
	slave {&lt;br /&gt;
		pcm hdmi_dmix&lt;br /&gt;
	}&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.!default {&lt;br /&gt;
	type plug&lt;br /&gt;
	slave {&lt;br /&gt;
		pcm hdmi_dmix&lt;br /&gt;
	}&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pulseaudio ==&lt;br /&gt;
Some may find that removing Pulseaudio breaks other programs and causes problems. If your setup does not require passthrough and your receiver supports multichannel PCM, you may want to configure Pulseaudio instead. These directions were adapted from [http://askubuntu.com/questions/48406/inverted-surround-channels/142942#142942 here.]&lt;br /&gt;
&lt;br /&gt;
=== Configure Pulseaudio ===&lt;br /&gt;
1. Run from the command-line: &amp;lt;pre&amp;gt;speaker-test -c6 -twav&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Note which channels need to be remapped, I just wrote them down like so: &lt;br /&gt;
&amp;lt;pre&amp;gt;  SOUND                      SPEAKER&lt;br /&gt;
Left Front          ————-&amp;gt; Left Front&lt;br /&gt;
Center Front        ————-&amp;gt; Left Rear&lt;br /&gt;
Right Front         ————-&amp;gt; Right Front&lt;br /&gt;
Left Rear           ————-&amp;gt; Center Front&lt;br /&gt;
Subwoofer (lfe)     ————-&amp;gt; Right Rear&lt;br /&gt;
Right Rear          ————-&amp;gt; Subwoofer (lfe)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Edit &amp;quot;/usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf&amp;quot; with your favorite text editor as root. I&#039;m using xubuntu 12.04, so I&#039;ll be using leafpad:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo leafpad /usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. This file contains the Pulseaudio profiles for your HDMI audio outputs. There should be a few entries that say something about 5.1 or 7.1 audio over HDMI. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Mapping hdmi-surround]&lt;br /&gt;
description = Digital Surround 5.1 (HDMI)&lt;br /&gt;
device-strings = hdmi:%f&lt;br /&gt;
paths-output = hdmi-output-0&lt;br /&gt;
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe&lt;br /&gt;
priority = 3&lt;br /&gt;
direction = output&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit them to fit your needs based on the channel map you wrote down earlier. I edited all of them (except the 7.1 ones, as I only have a 5.1 setup, I would assume things would be similar for 7.1) like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Mapping hdmi-surround]&lt;br /&gt;
description = Digital Surround 5.1 (HDMI)&lt;br /&gt;
device-strings = hdmi:%f&lt;br /&gt;
paths-output = hdmi-output-0&lt;br /&gt;
channel-map = front-left,front-right,front-center,lfe,rear-left,rear-right&lt;br /&gt;
priority = 3&lt;br /&gt;
direction = output&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Restart Pulseaudio to load your new channel maps and run a speaker test:&lt;br /&gt;
&amp;lt;pre&amp;gt;pulseaudio -k&lt;br /&gt;
pulseaudio --start&lt;br /&gt;
speaker-test -c6 -twav&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything is coming out of the right channel then you&#039;re all set!&lt;br /&gt;
&lt;br /&gt;
=== Configure Kodi ===&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, set:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039; (or 7.1 depeding on your setup)&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;defaults(Pulseaudio)&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;hdmi(ALSA)&#039;&#039;&#039; (won&#039;t be used, you can set it to whatever you&#039;d like)&lt;br /&gt;
&lt;br /&gt;
{{note|Pulseaudio and Kodi do not work with passthrough as of Eden (not tested in Frodo, but likely the same). That is why we are telling Kodi the receiver can&#039;t decode AC3 and DTS. Theoretically speaking, there is no difference between decoding in software or on your receiver. Some may disagree, however the receiver tells me that it is indeed receiving 5.1 multichannel PCM. Sounds seem to be mapped correctly.}}&lt;br /&gt;
Tested with Xubuntu 12.04, Eden, on an ASRock ION330 motherboard&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:150806|Linux: Remapping Pulseaudio Channels]]}}&lt;br /&gt;
&lt;br /&gt;
{{helix updated}}&lt;br /&gt;
{{isengard updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Audio]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:NVidia]]&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=82889</id>
		<title>Archive talk:Remap HDMI audio on Gen 1 ION - Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=82889"/>
		<updated>2015-01-02T01:14:02Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: /* Kodi rename note */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Some XBMCbuntu 12.0 Frodo official release version notes ==&lt;br /&gt;
* In &amp;quot;Audio output = HDMI&amp;quot; mode, &amp;quot;Passthrough output device&amp;quot; is &#039;&#039;&#039;NOT&#039;&#039;&#039; used for some reason. Instead, only &amp;quot;Audio output device&amp;quot; is used for everything (including menu sounds).&lt;br /&gt;
* Here is an .asoundrc that better accommodates desktop application usage in XBMCbuntu, by setting up an ALSA dmix plugin by default: http://forum.xbmc.org/showthread.php?tid=90910&amp;amp;pid=1320755#pid1320755&lt;br /&gt;
* I don&#039;t think that Gen 1 ION is able to passthrough AAC over HDMI. XBMC seems to implicitly convert to LPCM when it can, or AC3 as the second choice.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] 14:44, 2 February 2013 (EST)&lt;br /&gt;
&lt;br /&gt;
== Kodi 14.0 Helix note ==&lt;br /&gt;
It appears that in KodiBuntu 14.0 Helix with default ALSA config, attempting to play 6-channel AAC audio over HDMI no longer results in a 6-channel LPCM passthrough with incorrect mappings. Instead, it appears to end up as 6-channel LPCM non-passthrough with correct mappings. I guess Kodi&#039;s AudioEngine is performing the remapping for us, which is probably a good thing.&lt;br /&gt;
&lt;br /&gt;
This means that my Frodo .asoundrc in the article is no longer needed for Kodi itself. However, speaker-test shows that the ALSA-level mappings are still wrong, so remapping is still needed if you plan to use 6+ channel audio in non-Kodi apps. In this case, you can probably just configure Kodi to use hdmi_hw or some other untouched output.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve updated the article with this info.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] ([[User talk:HunterZ|talk]]) 20:11, 1 January 2015 (EST)&lt;br /&gt;
&lt;br /&gt;
== Kodi rename note ==&lt;br /&gt;
&lt;br /&gt;
Just a quick note about the Kodi name change with respect to this article: I think we can leave things as-is, XBMC is only mentioned in the context of particular versions of the software.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] ([[User talk:HunterZ|talk]]) 20:14, 1 January 2015 (EST)&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=82888</id>
		<title>Archive talk:Remap HDMI audio on Gen 1 ION - Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=82888"/>
		<updated>2015-01-02T01:11:04Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Some XBMCbuntu 12.0 Frodo official release version notes ==&lt;br /&gt;
* In &amp;quot;Audio output = HDMI&amp;quot; mode, &amp;quot;Passthrough output device&amp;quot; is &#039;&#039;&#039;NOT&#039;&#039;&#039; used for some reason. Instead, only &amp;quot;Audio output device&amp;quot; is used for everything (including menu sounds).&lt;br /&gt;
* Here is an .asoundrc that better accommodates desktop application usage in XBMCbuntu, by setting up an ALSA dmix plugin by default: http://forum.xbmc.org/showthread.php?tid=90910&amp;amp;pid=1320755#pid1320755&lt;br /&gt;
* I don&#039;t think that Gen 1 ION is able to passthrough AAC over HDMI. XBMC seems to implicitly convert to LPCM when it can, or AC3 as the second choice.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] 14:44, 2 February 2013 (EST)&lt;br /&gt;
&lt;br /&gt;
== Kodi 14.0 Helix note ==&lt;br /&gt;
It appears that in KodiBuntu 14.0 Helix with default ALSA config, attempting to play 6-channel AAC audio over HDMI no longer results in a 6-channel LPCM passthrough with incorrect mappings. Instead, it appears to end up as 6-channel LPCM non-passthrough with correct mappings. I guess Kodi&#039;s AudioEngine is performing the remapping for us, which is probably a good thing.&lt;br /&gt;
&lt;br /&gt;
This means that my Frodo .asoundrc in the article is no longer needed for Kodi itself. However, speaker-test shows that the ALSA-level mappings are still wrong, so remapping is still needed if you plan to use 6+ channel audio in non-Kodi apps. In this case, you can probably just configure Kodi to use hdmi_hw or some other untouched output.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve updated the article with this info.&lt;br /&gt;
--[[User:HunterZ|HunterZ]] ([[User talk:HunterZ|talk]]) 20:11, 1 January 2015 (EST)&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=82887</id>
		<title>Archive:Remap HDMI audio on Gen 1 ION - Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=82887"/>
		<updated>2015-01-02T01:10:02Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: Add a 14.0 Helix note&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Some early nVidia ION-based motherboards have their HDMI audio channels mapped incorrectly. There are two relatively simple methods to remap HDMI audio at the OS-level on nVidia ION-based systems; which one you use depends on your setup. If you require passthrough, disabling Pulseaudio (if your distribution uses it by default) is necessary to configure ALSA to remap the channels. Configuring Pulseaudio to remap the channels is another option if you don&#039;t require passthrough.&lt;br /&gt;
&lt;br /&gt;
It should be noted that whenever editing config files, it&#039;s best to backup the original.&lt;br /&gt;
&lt;br /&gt;
==ALSA==&lt;br /&gt;
The following steps require the removal of Pulseaudio if your distribution uses it by default.&lt;br /&gt;
&lt;br /&gt;
HDMI audio output requires several steps to configure properly. My requirements were passthrough, non-passthrough and menu sounds all coming over HDMI to my receiver (fairly common). Some challenges were that the Gen 1 ION had incorrect channel mappings (e.g. Center came out of Left Rear) and menu sounds do not default to HDMI. &lt;br /&gt;
&lt;br /&gt;
I first noticed the audio channels were mis-mapped while watching a movie - all the voices were coming out of the left rear channel, not center. To verify this, I ran the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To correct the output, I created the following channel mapping in ~/.asoundrc or /etc/asound.conf(.asoundrc overrides the default alsa settings per user, while /etc/asound.conf is a global settings override)&lt;br /&gt;
&lt;br /&gt;
===XBMC 11.x Eden with 7.1 speakers===&lt;br /&gt;
====ALSA Configuration====&lt;br /&gt;
Untested in Frodo.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcm.hdmi-remap {&lt;br /&gt;
       type route&lt;br /&gt;
       slave.pcm hdmi&lt;br /&gt;
       ttable.0.0 1&lt;br /&gt;
       ttable.1.1 1&lt;br /&gt;
       ttable.2.4 1&lt;br /&gt;
       ttable.3.5 1&lt;br /&gt;
       ttable.4.2 1&lt;br /&gt;
       ttable.5.3 1&lt;br /&gt;
       ttable.6.6 1 &lt;br /&gt;
       ttable.7.7 1 &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:{{Note|There is intentionally no &#039;&#039;slave.channels&#039;&#039; line in the configuration file since it seems to corrupt the digital stream and prevented proper DTS and DD passthrough to my receiver. If you hear static when using passthrough, this might be the reason why!}}&lt;br /&gt;
;To test our new configuration, we can run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi-remap -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hopefully the channels will now be mapped correctly.&lt;br /&gt;
&lt;br /&gt;
====XBMC Configuration====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;7.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;Custom&#039;&#039;&#039;&lt;br /&gt;
* Custom audio device : &#039;&#039;&#039;hdmi-remap&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;hdmi(ALSA)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Menu Sounds====&lt;br /&gt;
:{{Note|Not needed in Frodo.}}&lt;br /&gt;
To configure menu sounds, I told alsa to use the hdmi-remap device as default. I did this by adding the following section to my ~/.asoundrc file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;pcm.!default {&lt;br /&gt;
	type plug&lt;br /&gt;
	slave.pcm hdmi-remap&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===XBMC 12.x Frodo / 13.x Gotham with 5.1 speakers (simple fix)===&lt;br /&gt;
====ALSA Configuration====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcm.!default {&lt;br /&gt;
    type plug&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm both&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
pcm.both {&lt;br /&gt;
    type route&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm hdmi&lt;br /&gt;
    }&lt;br /&gt;
       ttable.0.0 1&lt;br /&gt;
       ttable.1.1 1&lt;br /&gt;
       ttable.2.4 1&lt;br /&gt;
       ttable.3.5 1&lt;br /&gt;
       ttable.4.2 1&lt;br /&gt;
       ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To test our new configuration, we can run:&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====XBMC Configuration====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;HDA NVidia HDMI 0&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;HDA NVidia HDMI 0&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a reboot, sound should be working as expected. Feel free to update this information as needed.&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:147733|&#039;&#039;&#039;Linux&#039;&#039;&#039; Frodo HDMI audio channel remap discussion]]}}&lt;br /&gt;
&lt;br /&gt;
===XBMC 12.x Frodo / 13.x Gotham with 5.1 speakers (including desktop application fix)===&lt;br /&gt;
====ALSA Configuration====&lt;br /&gt;
The following .asoundrc settings will allow XBMC to use exclusive HDMI passthrough, while defaulting to a dmix plugin for the XBMCbuntu desktop mode (so that multiple applications can share HDMI access):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;pcm.hdmi_hw {&lt;br /&gt;
        type hw&lt;br /&gt;
        card=0&lt;br /&gt;
        device=3&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_direct {&lt;br /&gt;
        type route&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_hw&lt;br /&gt;
        }&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_shared {&lt;br /&gt;
        type route&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_dmix&lt;br /&gt;
        }&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_dmix {&lt;br /&gt;
        type dmix&lt;br /&gt;
        ipc_key 1024&lt;br /&gt;
        ipc_key_add_uid false&lt;br /&gt;
        ipc_perm 0666&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_hw&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.!default {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm &amp;quot;hdmi_shared&amp;quot;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Test passthrough mode with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi_direct -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;And default/shared mode with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;It may also be worth testing each with -c 2 instead of -c 6 to ensure that 2-channel inputs will work.&lt;br /&gt;
&lt;br /&gt;
====XBMC Configuration====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* AAC capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039; &#039;&#039;(note that AAC appears to reach my receiver as 5.1 LPCM, regardless of this setting)&#039;&#039;&lt;br /&gt;
* MultiChannel LPCM capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;HDA NVidia HDMI(hdmi_direct)&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;HDA NVidia HDMI(hdmi_direct)&#039;&#039;&#039; &#039;&#039;(note that this setting apparently doesn&#039;t matter, as Frodo seems to use the &amp;quot;Audio output device&amp;quot; setting for both passthrough and non-passthrough modes when &amp;quot;Audio Output&amp;quot; is set to &amp;quot;HDMI&amp;quot;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a reboot, sound should be working as expected in both XBMC and in XBMCbuntu desktop applications. Feel free to update this information as needed.&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:90910|Problem with 5.1 channel mapping, help configuring asound.conf]]}}&lt;br /&gt;
&lt;br /&gt;
===Kodi 14.x Helix===&lt;br /&gt;
It appears that remapping may no longer be necessary in Helix for the benefit of Kodi itself, as Kodi appears to perform the remapping itself in software. If remapping is needed for other Linux apps, it should be possible to still use the Frodo/Gotham .asoundrc above but configure Kodi itself to use an output that is not remapped.&lt;br /&gt;
&lt;br /&gt;
==Pulseaudio==&lt;br /&gt;
Some may find that removing Pulseaudio breaks other programs and causes problems. If your setup does not require passthrough and your receiver supports multichannel PCM, you may want to configure Pulseaudio instead. These directions were adapted from [http://askubuntu.com/questions/48406/inverted-surround-channels/142942#142942 here.]&lt;br /&gt;
&lt;br /&gt;
===Configure Pulseaudio===&lt;br /&gt;
1. Run from the command-line: &amp;lt;pre&amp;gt;speaker-test -c6 -twav&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Note which channels need to be remapped, I just wrote them down like so: &lt;br /&gt;
&amp;lt;pre&amp;gt;  SOUND                      SPEAKER&lt;br /&gt;
Left Front          ————-&amp;gt; Left Front&lt;br /&gt;
Center Front        ————-&amp;gt; Left Rear&lt;br /&gt;
Right Front         ————-&amp;gt; Right Front&lt;br /&gt;
Left Rear           ————-&amp;gt; Center Front&lt;br /&gt;
Subwoofer (lfe)     ————-&amp;gt; Right Rear&lt;br /&gt;
Right Rear          ————-&amp;gt; Subwoofer (lfe)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Edit &amp;quot;/usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf&amp;quot; with your favorite text editor as root. I&#039;m using xubuntu 12.04, so I&#039;ll be using leafpad:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo leafpad /usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. This file contains the Pulseaudio profiles for your HDMI audio outputs. There should be a few entries that say something about 5.1 or 7.1 audio over HDMI. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Mapping hdmi-surround]&lt;br /&gt;
description = Digital Surround 5.1 (HDMI)&lt;br /&gt;
device-strings = hdmi:%f&lt;br /&gt;
paths-output = hdmi-output-0&lt;br /&gt;
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe&lt;br /&gt;
priority = 3&lt;br /&gt;
direction = output&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit them to fit your needs based on the channel map you wrote down earlier. I edited all of them (except the 7.1 ones, as I only have a 5.1 setup, I would assume things would be similar for 7.1) like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Mapping hdmi-surround]&lt;br /&gt;
description = Digital Surround 5.1 (HDMI)&lt;br /&gt;
device-strings = hdmi:%f&lt;br /&gt;
paths-output = hdmi-output-0&lt;br /&gt;
channel-map = front-left,front-right,front-center,lfe,rear-left,rear-right&lt;br /&gt;
priority = 3&lt;br /&gt;
direction = output&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Restart Pulseaudio to load your new channel maps and run a speaker test:&lt;br /&gt;
&amp;lt;pre&amp;gt;pulseaudio -k&lt;br /&gt;
pulseaudio --start&lt;br /&gt;
speaker-test -c6 -twav&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything is coming out of the right channel then you&#039;re all set!&lt;br /&gt;
&lt;br /&gt;
===Configure XBMC===&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, set:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039; (or 7.1 depeding on your setup)&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;defaults(Pulseaudio)&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;hdmi(ALSA)&#039;&#039;&#039; (won&#039;t be used, you can set it to whatever you&#039;d like)&lt;br /&gt;
&lt;br /&gt;
{{note|Pulseaudio and XBMC do not work with passthrough as of Eden (not tested in Frodo, but likely the same). That is why we are telling XBMC the receiver can&#039;t decode AC3 and DTS. Theoretically speaking, there is no difference between decoding in software or on your receiver. Some may disagree, however the receiver tells me that it is indeed receiving 5.1 multichannel PCM. Sounds seem to be mapped correctly.}}&lt;br /&gt;
Tested with Xubuntu 12.04, XBMC Eden, on an ASRock ION330 motherboard&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:150806|Linux: Remapping Pulseaudio Channels]]}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Audio]]&lt;br /&gt;
[[Category:Frodo]]&lt;br /&gt;
[[Category:Gotham]]&lt;br /&gt;
[[Category:Guides]]&lt;br /&gt;
[[Category:Helix]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:NVidia]]&lt;br /&gt;
[[Category:XBMCbuntu]]&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=81925</id>
		<title>Archive:Remap HDMI audio on Gen 1 ION - Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Remap_HDMI_audio_on_Gen_1_ION_-_Linux&amp;diff=81925"/>
		<updated>2014-11-30T17:49:53Z</updated>

		<summary type="html">&lt;p&gt;HunterZ: /* ALSA Configuration */ update to fix dmix errors when using Steam in-home streaming client on XBMCBuntu; TODO: test bindings settings in place of ttable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Some early Nvidia ION based motherboards have their HDMI audio channels mapped incorrectly. There are two relatively simple methods to remap HDMI audio on Nvidia ION-based systems. Which one you use depends on your setup. If you require passthrough, disabling Pulseaudio (if your distribution uses it by default) is necessary to configure ALSA to remap the channels. Configuring Pulseaudio to remap the channels is another option if you don&#039;t require passthrough.&lt;br /&gt;
&lt;br /&gt;
It should be noted, that whenever editing config files it&#039;s best to backup the original.&lt;br /&gt;
&lt;br /&gt;
==Remapping Surround Channels (ALSA)==&lt;br /&gt;
&lt;br /&gt;
The following steps require the removal of Pulseaudio if your distribution uses it by default.&lt;br /&gt;
&lt;br /&gt;
HDMI audio output requires several steps to configure properly. My requirements were passthrough, non-passthrough and menu sounds all coming over HDMI to my receiver (fairly common). Some challenges were that the Gen 1 ION had incorrect channel mappings (e.g. Center came out of Left Rear) and menu sounds do not default to HDMI. &lt;br /&gt;
&lt;br /&gt;
I first noticed the audio channels were mis-mapped while watching a movie - all the voices were coming out of the left rear channel, not center. To verify this, I ran the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To correct the output, I created the following channel mapping in ~/.asoundrc or /etc/asound.conf(.asoundrc overrides the default alsa settings per user, while /etc/asound.conf is a global settings override)&lt;br /&gt;
&lt;br /&gt;
===For 7.1: Eden===&lt;br /&gt;
====ALSA Configuration====&lt;br /&gt;
Untested in Frodo.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcm.hdmi-remap {&lt;br /&gt;
       type route&lt;br /&gt;
       slave.pcm hdmi&lt;br /&gt;
       ttable.0.0 1&lt;br /&gt;
       ttable.1.1 1&lt;br /&gt;
       ttable.2.4 1&lt;br /&gt;
       ttable.3.5 1&lt;br /&gt;
       ttable.4.2 1&lt;br /&gt;
       ttable.5.3 1&lt;br /&gt;
       ttable.6.6 1 &lt;br /&gt;
       ttable.7.7 1 &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:{{Note|There is intentionally no &#039;&#039;slave.channels&#039;&#039; line in the configuration file since it seems to corrupt the digital stream and prevented proper DTS and DD passthrough to my receiver. If you hear static when using passthrough, this might be the reason why!}}&lt;br /&gt;
;To test our new configuration, we can run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi-remap -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hopefully the channels will now be mapped correctly.&lt;br /&gt;
&lt;br /&gt;
====XBMC Configuration====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;7.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;Custom&#039;&#039;&#039;&lt;br /&gt;
* Custom audio device : &#039;&#039;&#039;hdmi-remap&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;hdmi(ALSA)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Menu Sounds====&lt;br /&gt;
:{{Note|Not needed in Frodo.}}&lt;br /&gt;
To configure menu sounds, I told alsa to use the hdmi-remap device as default. I did this by adding the following section to my ~/.asoundrc file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;pcm.!default {&lt;br /&gt;
	type plug&lt;br /&gt;
	slave.pcm hdmi-remap&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===For 5.1: Frodo and Later===&lt;br /&gt;
====ALSA Configuration====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcm.!default {&lt;br /&gt;
    type plug&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm both&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.both {&lt;br /&gt;
    type route&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm hdmi&lt;br /&gt;
    }&lt;br /&gt;
       ttable.0.0 1&lt;br /&gt;
       ttable.1.1 1&lt;br /&gt;
       ttable.2.4 1&lt;br /&gt;
       ttable.3.5 1&lt;br /&gt;
       ttable.4.2 1&lt;br /&gt;
       ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To test our new configuration, we can run:&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====XBMC Configuration====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;HDA NVidia HDMI 0&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;HDA NVidia HDMI 0&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a reboot, sound should be working as expected. Feel free to update this information as needed.&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:147733|&#039;&#039;&#039;Linux&#039;&#039;&#039; Frodo HDMI audio channel remap discussion]]}}&lt;br /&gt;
&lt;br /&gt;
===For 5.1 with desktop application support on XBMCbuntu Frodo===&lt;br /&gt;
====ALSA Configuration====&lt;br /&gt;
The following .asoundrc settings will allow XBMC to use exclusive HDMI passthrough, while defaulting to a dmix plugin for the XBMCbuntu desktop mode (so that multiple applications can share HDMI access):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;pcm.hdmi_hw {&lt;br /&gt;
        type hw&lt;br /&gt;
        card=0&lt;br /&gt;
        device=3&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_direct {&lt;br /&gt;
        type route&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_hw&lt;br /&gt;
        }&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_shared {&lt;br /&gt;
        type route&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_dmix&lt;br /&gt;
        }&lt;br /&gt;
        ttable.0.0 1&lt;br /&gt;
        ttable.1.1 1&lt;br /&gt;
        ttable.2.4 1&lt;br /&gt;
        ttable.3.5 1&lt;br /&gt;
        ttable.4.2 1&lt;br /&gt;
        ttable.5.3 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.hdmi_dmix {&lt;br /&gt;
        type dmix&lt;br /&gt;
        ipc_key 1024&lt;br /&gt;
        ipc_key_add_uid false&lt;br /&gt;
        ipc_perm 0666&lt;br /&gt;
        slave {&lt;br /&gt;
                pcm hdmi_hw&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.!default {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm &amp;quot;hdmi_shared&amp;quot;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Test passthrough mode with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -D hdmi_direct -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;And default/shared mode with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;speaker-test -c 6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;It may also be worth testing each with -c 2 instead of -c 6 to ensure that 2-channel inputs will work.&lt;br /&gt;
&lt;br /&gt;
====XBMC Configuration====&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, I set the following values:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039;&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* AAC capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039; &#039;&#039;(note that AAC appears to reach my receiver as 5.1 LPCM, regardless of this setting)&#039;&#039;&lt;br /&gt;
* MultiChannel LPCM capable receiver : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;HDA NVidia HDMI(hdmi_direct)&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;HDA NVidia HDMI(hdmi_direct)&#039;&#039;&#039; &#039;&#039;(note that this setting apparently doesn&#039;t matter, as Frodo seems to use the &amp;quot;Audio output device&amp;quot; setting for both passthrough and non-passthrough modes when &amp;quot;Audio Output&amp;quot; is set to &amp;quot;HDMI&amp;quot;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a reboot, sound should be working as expected in both XBMC and in XBMCbuntu desktop applications. Feel free to update this information as needed.&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:90910|Problem with 5.1 channel mapping, help configuring asound.conf]]}}&lt;br /&gt;
&lt;br /&gt;
==Remapping Surround Channels (Pulseaudio)==&lt;br /&gt;
Some may find that removing Pulseaudio breaks other programs and causes problems. If your setup does not require passthrough and your receiver supports multichannel PCM, you may want to configure Pulseaudio instead. These directions were adapted from [http://askubuntu.com/questions/48406/inverted-surround-channels/142942#142942 here.]&lt;br /&gt;
&lt;br /&gt;
===Configure Pulseaudio===&lt;br /&gt;
1. Run from the command-line: &amp;lt;pre&amp;gt;speaker-test -c6 -twav&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Note which channels need to be remapped, I just wrote them down like so: &lt;br /&gt;
&amp;lt;pre&amp;gt;  SOUND                      SPEAKER&lt;br /&gt;
Left Front          ————-&amp;gt; Left Front&lt;br /&gt;
Center Front        ————-&amp;gt; Left Rear&lt;br /&gt;
Right Front         ————-&amp;gt; Right Front&lt;br /&gt;
Left Rear           ————-&amp;gt; Center Front&lt;br /&gt;
Subwoofer (lfe)     ————-&amp;gt; Right Rear&lt;br /&gt;
Right Rear          ————-&amp;gt; Subwoofer (lfe)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Edit &amp;quot;/usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf&amp;quot; with your favorite text editor as root. I&#039;m using xubuntu 12.04, so I&#039;ll be using leafpad:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo leafpad /usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. This file contains the Pulseaudio profiles for your HDMI audio outputs. There should be a few entries that say something about 5.1 or 7.1 audio over HDMI. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Mapping hdmi-surround]&lt;br /&gt;
description = Digital Surround 5.1 (HDMI)&lt;br /&gt;
device-strings = hdmi:%f&lt;br /&gt;
paths-output = hdmi-output-0&lt;br /&gt;
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe&lt;br /&gt;
priority = 3&lt;br /&gt;
direction = output&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit them to fit your needs based on the channel map you wrote down earlier. I edited all of them (except the 7.1 ones, as I only have a 5.1 setup, I would assume things would be similar for 7.1) like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Mapping hdmi-surround]&lt;br /&gt;
description = Digital Surround 5.1 (HDMI)&lt;br /&gt;
device-strings = hdmi:%f&lt;br /&gt;
paths-output = hdmi-output-0&lt;br /&gt;
channel-map = front-left,front-right,front-center,lfe,rear-left,rear-right&lt;br /&gt;
priority = 3&lt;br /&gt;
direction = output&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Restart Pulseaudio to load your new channel maps and run a speaker test:&lt;br /&gt;
&amp;lt;pre&amp;gt;pulseaudio -k&lt;br /&gt;
pulseaudio --start&lt;br /&gt;
speaker-test -c6 -twav&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything is coming out of the right channel then you&#039;re all set!&lt;br /&gt;
&lt;br /&gt;
===Configure XBMC===&lt;br /&gt;
Within Settings -&amp;gt; System -&amp;gt; Audio Output, set:&lt;br /&gt;
&lt;br /&gt;
* Audio Output : &#039;&#039;&#039;HDMI&#039;&#039;&#039;&lt;br /&gt;
* Speaker Configuration : &#039;&#039;&#039;5.1&#039;&#039;&#039; (or 7.1 depeding on your setup)&lt;br /&gt;
* Boost volume level on downmix : &#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
* Dolby Digital (AC3) capable receiver : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* DTS capable receiver : &#039;&#039;&#039;No&#039;&#039;&#039;&lt;br /&gt;
* Audio output device : &#039;&#039;&#039;defaults(Pulseaudio)&#039;&#039;&#039;&lt;br /&gt;
* Passthrough output device : &#039;&#039;&#039;hdmi(ALSA)&#039;&#039;&#039; (won&#039;t be used, you can set it to whatever you&#039;d like)&lt;br /&gt;
&lt;br /&gt;
{{note|Pulseaudio and XBMC do not work with passthrough as of Eden (not tested in Frodo, but likely the same). That is why we are telling XBMC the receiver can&#039;t decode AC3 and DTS. Theoretically speaking, there is no difference between decoding in software or on your receiver. Some may disagree, however the receiver tells me that it is indeed receiving 5.1 multichannel PCM. Sounds seem to be mapped correctly.}}&lt;br /&gt;
Tested with Xubuntu 12.04, XBMC Eden, on an ASRock ION330 motherboard&lt;br /&gt;
&lt;br /&gt;
{{forum link2|[[forum:150806|Linux: Remapping Pulseaudio Channels]]}}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>HunterZ</name></author>
	</entry>
</feed>