Kodi Community Forum

Full Version: HDMI + Analog audio on ProBook 4320
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get sound out of the HDMI and the headphone jack on Linux Mint 14 but I cannot get it to work.
When I enter this command "aplay -D xbmc /usr/share/sounds/alsa/Front_Center.wav" I get sound in both devices, my TV and headphones but when i configure XMBC and play a song I get the message "Failed to initialize audio device. Check your audiosettings" but the menu sounds can be heard in the TV, any ideas of what is wrong? My configuration is:
XMBC 11.0
Audio Output: Analog
Speaker Configuration: 2.0
Audio output device: Custom
Custom audio device: alsa:xmbc (I tried with "plug:xmbc" and "plug:both" too)

My ~/.xmbc/.asoundrc is this

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

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 "tv"
channels 2
}
slaves.b {
pcm "receiver"
channels 2
}
slaves.c {
pcm "analog"
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.tv {
type hw
card 0
device 3
channels 2
}

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

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

and aplay -L is this

Code:
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
analog
    Analog Output - Use analog outputs, converting samples, format, and rate as necessary.
mixed-analog
    Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds.
digital
    Digital Output - Use digital outputs, converting samples, format, and rate as necessary.
mixed-digital
    Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds.
dmix-analog
dmix-digital
xbmc
multi
default
    Playback/recording through the PulseAudio sound server
sysdefault:CARD=Intel
    HDA Intel, STAC92xx Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
    HDA Intel, HDMI 0
    HDMI Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=3
    HDA Intel, HDMI 0
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=3
    HDA Intel, HDMI 0
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=3
    HDA Intel, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=3
    HDA Intel, HDMI 0
    Hardware device with all software conversions

Any help would be appreciated Smile
I am not great at following asound rules, but the device you ultimately want to use must be defined as !default (assuming you are using frodo).
I'm using v11.0 Eden, do you think that v12.0 will fix my problem?
Ohh, something interesting, the device "!default" is not showing on xmbc, I think that's a problem right?