Skip to content

Instantly share code, notes, and snippets.

@elmuerte
Created April 13, 2013 13:36
Show Gist options
  • Save elmuerte/5378430 to your computer and use it in GitHub Desktop.
Save elmuerte/5378430 to your computer and use it in GitHub Desktop.
Updated ALSA configuration for HDA-Intel based sounds cards where the channel mapping is wrong (e.g. nVidia ION based cards). This is just the updated segment of the file /usr/share/alsa/cards/HDA-Intel.conf The fix is in the extra slave.pcm section containing the ttable arguments.
HDA-Intel.pcm.hdmi.common {
@args [ CARD DEVICE CTLINDEX AES0 AES1 AES2 AES3 ]
@args.CARD {
type string
}
@args.DEVICE {
type integer
}
@args.CTLINDEX {
type integer
}
@args.AES0 {
type integer
}
@args.AES1 {
type integer
}
@args.AES2 {
type integer
}
@args.AES3 {
type integer
}
type hooks
slave.pcm {
type route
ttable.0.0 1
ttable.1.1 1
ttable.2.4 1
ttable.3.5 1
ttable.4.2 1
ttable.5.3 1
slave.pcm {
type hw
card $CARD
device $DEVICE
}
}
hooks.0 {
type ctl_elems
hook_args [
{
name "IEC958 Playback Default"
index $CTLINDEX
lock true
preserve true
value [ $AES0 $AES1 $AES2 $AES3 ]
}
{
name "IEC958 Playback Switch"
index $CTLINDEX
value true
}
]
}
hint.device $DEVICE
}
@elmuerte
Copy link
Author

With the above fix the channel mapping is correct when playing AC3, DTS, AAC, Linear PCM from XBMC; and via speaker-test with devices "default" (aka pulse) and hdmi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment