Kodi Community Forum

Full Version: 10.04 + XBMC, failed to initialize audio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having some issues with sound in different movies...
The setup is a Ubuntu 10.04 Desktop + XBMC, latest as far as I know.

I previously ran 9.10 and all movies worked without any
issues, but know I can either get sound in mkv/AC3-movies
_or_ AVI/MPEG, depending on what setting I use in Ubuntu.

To clarify:
- If I use the setting "Analog Stereo" in the Ubuntu sound
settings, MKV-files with AC3 works and the receiver recognize
the digital sound but when I try to play AVI/MPEGs (or even MP3s)
XBMC says it fails to initialize the audio.

- If I use the setting "Digital Stereo" in Ubuntu, the complete
reverse media works in XBMC. AVI/MPEG/MP3s work but not MKV/AC3.

Hardware:
- ION plattform
- Optical SPDIF to receiver for sound
- HDMI to TV for picture

But, as I said earlier, this worked flawlessly before 10.04.

I've tried some different .asoundrc settings but none has
got me any closer yet.

aplay -l:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC887 Analog [ALC887 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC887 Digital [ALC887 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L:
Code:
pulse
    Playback/recording through the PulseAudio sound server
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC887 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output

cat /proc/asound/version:
Code:
Advanced Linux Sound Architecture Driver Version 1.0.21.

head -n 1 /proc/asound/card*/codec#*
Code:
==> /proc/asound/card0/codec#0 <==
Codec: Realtek ALC887

==> /proc/asound/card0/codec#3 <==
Codec: Nvidia MCP7A HDMI

Does anyone have a solution to this or can point me in the right
direction on what to search for?
This is just so typical... While writing the first post I cleaned up some .asoundrc snippets and read some more threads on the topic.

Decided to try the following .asoundrc
Code:
pcm.dmixer {
  type dmix
  ipc_key 1024
  slave {
    pcm "hw:0,1"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 48000
  }
  bindings {
    0 0
    1 1
  }
}
and sure enough, after a reboot and using default for analog audio and iec956 for pass through in XBMC I got it working.

This is the thread that finally solved it:
http://forum.xbmc.org/showthread.php?tid=62165

Hope this will help someone.