Kodi Community Forum

Full Version: Major Audio problem (Not HDMI audio)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
Since upgrading to Ubuntu Precise and pulling the latest GIT from the PVR branch (although I've tried the normal branch too), I've had major problems with audio, in that it generally doesn't work!
No matter what I try to play, either PVR stuff from my TVHeadend, or static .mpg .avi, etc from my drive the sound sometimes doesn't work (well, the majority of the time it doesn't work).
When the audio doesn't work the video playback is also choppy, but I assume thats because its trying to sync tv/sound together.

Details:
XBMC (12.0-ALPHA3 Git:20120601-cdbea16), Platform: Linux (Ubuntu 12.04 LTS, 3.2.0-24-generic i686). Built on Jun 6 2012
i686
Kernel: 3.2.0-24-generic
Sound: [ 12.361196] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 12.361202] hda_intel: codec_mask forced to 0xff
[ 12.361227] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[ 15.404011] hda-intel: azx_get_response timeout, switching to polling mode: last cmd=0x100f0000
[ 16.408009] hda-intel: Codec #1 probe error; disabling it...
[ 17.444004] hda-intel: Codec #3 probe error; disabling it...
[ 17.485214] snd_hda_intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[ 17.485220] hda_intel: codec_mask forced to 0xf2
[ 17.485248] snd_hda_intel 0000:01:00.1: setting latency timer to 64
[ 20.532032] hda-intel: azx_get_response timeout, switching to polling mode: last cmd=0x400f0000
[ 21.540053] hda-intel: Codec #4 probe error; disabling it...
[ 22.580030] hda-intel: Codec #5 probe error; disabling it...
[ 23.620031] hda-intel: Codec #6 probe error; disabling it...
[ 24.660052] hda-intel: Codec #7 probe error; disabling it...

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)


Debug log is at: http://xbmclogs.com/show.php?id=3357
To reproduce, power up system, let it boot and load EPG info, etc. Then select a channel to watch, or a media to play. Almost 9 times out of 10 the audio fails and to try again you reboot the machine and try it again!

The bit of the debug log that I think is relevant is:

Code:
11:09:03 T:3045268288    INFO: CAESinkALSA::Initialize - Attempting to open device hw:CARD=Intel,DEV=0
11:09:03 T:3045268288   ERROR: CAESinkALSA::Initialize - snd_pcm_open_lconf(-16) - hw:CARD=Intel,DEV=0
11:09:03 T:3045268288   ERROR: CAESinkOSS::Initialize - Failed to get supported formats, assuming AFMT_S16_NE
11:09:03 T:3045268288    INFO: CSoftAE::InternalOpenSink - NULL Initialized:
11:09:03 T:3045268288    INFO:   Output Device : hw:CARD=Intel,DEV=0
11:09:03 T:3045268288    INFO:   Sample Rate   : 48000
11:09:03 T:3045268288    INFO:   Sample Format : AE_FMT_FLOAT
11:09:03 T:3045268288    INFO:   Channel Count : 2
11:09:03 T:3045268288    INFO:   Channel Layout: FL,FR
11:09:03 T:3045268288    INFO:   Frames        : 24000
11:09:03 T:3045268288    INFO:   Frame Samples : 2
11:09:03 T:3045268288    INFO:   Frame Size    : 8
11:09:03 T:3045268288   DEBUG: CSoftAE::Initialize - Using speaker layout: 2.0
11:09:03 T:3045268288    INFO: CAEWAVLoader::Initialize - Sound Loaded: special://xbmc/sounds/Bursting Bubbles/nav.wav
11:09:03 T:3045268288   DEBUG: AERemap: Downmix normalization is enabled
11:09:03 T:3045268288    INFO: ==[Downmix Matrix]==
11:09:03 T:3045268288    INFO: FL = FL(1)
11:09:03 T:3045268288    INFO: FR = FR(1)
11:09:03 T:3045268288    INFO: ====================
11:09:03 T:3045268288   DEBUG: AERemap: Downmix normalization is enabled
11:09:03 T:3045268288    INFO: ==[Downmix Matrix]==
11:09:03 T:3045268288    INFO: FL = FL(1)
11:09:03 T:3045268288    INFO: FR = FR(1)
11:09:03 T:3045268288    INFO: ====================
11:09:03 T:3045268288    INFO: ==[Downmix Matrix]==
11:09:03 T:3045268288    INFO: FL = FL(1)
11:09:03 T:3045268288    INFO: FR = FR(1)
11:09:03 T:3045268288    INFO: ====================
11:09:03 T:2691058496   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
11:09:03 T:3045268288   DEBUG: CSoftAE::Run - Sink restart flagged
11:09:03 T:3045268288    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
11:09:03 T:3045268288    INFO: CAESinkALSA::Initialize - Attempting to open device hw:CARD=Intel,DEV=0
11:09:03 T:3045268288   ERROR: CAESinkALSA::Initialize - snd_pcm_open_lconf(-16) - hw:CARD=Intel,DEV=0
11:09:03 T:3045268288   ERROR: CAESinkOSS::Initialize - Failed to get supported formats, assuming AFMT_S16_NE
11:09:03 T:3045268288    INFO: CSoftAE::InternalOpenSink - NULL Initialized:


PS: When using XBMC itself, the navigation sound (bubbles nav.wav, etc) all work fine before trying video. If I try to playback something and it fails then I also don't get any navigation sounds afterwards until a reboot.

Help! Many thanks in advance for anyone who can give me a nudge in the right direction here.
If you have them enabled, try disabling "Adjust display refresh rate to match video" and "Sync playback to display".
Thanks for the advice, this wasn't it though.

What I've done is downloaded the xbmc live and did a total re-install, so I believe this is something to do with Ubuntu PRECISE, not XBMC itself, as back to Oneric and all is well again.