Linux please help to get spdiff out
#1
Hi,

I have tried many instructions but just get "Can not initialize audio device" in XBMC while playing video or music. Menu sounds are clicking ok.

and this comes on terminal:

"[undefined=undefined]DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed[/undefined]"

I have Ubuntu 12.04 64bit, my mobo has the following integrared soundcard:
[undefined=undefined]00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)[/undefined]
and the sound goes out via optical cable to my amp.

My system has pulse audio, and the sounds work else where. The box is in living room MythTV use, and has worked fine for years for that. Mythtv uses this audio setup line: "[undefined=undefined]ALSA:iec958:CARD=Intel,DEV=0[/undefined]". Here is the aplay -L:
[undefined=undefined]
default
Playback/recording through the PulseAudio sound server
sysdefault:CARD=Intel
HDA Intel, ALC889A Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC889A Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=Intel,DEV=0
HDA Intel, HDMI 0
HDMI Audio Output
dmix:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
Direct sample mixing device
dmix:CARD=Intel,DEV=1
HDA Intel, ALC889A Digital
Direct sample mixing device
dmix:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
HDA Intel, ALC889A Digital
Direct sample snooping device
dsnoop:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Direct sample snooping device
hw:CARD=Intel,DEV=0
HDA Intel, ALC889A Analog
Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
HDA Intel, ALC889A Digital
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, ALC889A Analog
Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
HDA Intel, ALC889A Digital
Hardware device with all software conversions
plughw:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Hardware device with all software conversions[/undefined]

I have this in my .asoundrc:[undefined=undefined]
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,1"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
#rate 44100
#rate 48000
}
bindings {
0 0
1 1
}
}
[/undefined]

Any ideas (other than remove pa Smile )


I forgot this:
$ LC_ALL=C aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Reply
#2
Forgetting stuff in hurry, the release is Eden, and I''ve tried lot of different options for audio device in settings. Including both the options xbmc finds and different ways of custom strings. I tried the wiki way from xbmc wiki, and different combinations like hw:0, 1 etc.
Reply
#3
the exact version is: 2:11.0~git20120423.cd20772-1

here is audio stuff from xbmc.log

$ grep -i 'audio\|iec' .xbmc/temp/xbmc.log
18:22:40 T:140387659831168 NOTICE: Default Audio Player: paplayer
18:22:41 T:140387659831168 DEBUG: CGUIAudioManager::Initialize
18:22:41 T:140387215542016 DEBUG: VideoInfoScanner: Skipping dir '/mnt/jakorasia/Leffaa/Changeling/AUDIO_TS/' due to no change (fasthash)
18:22:47 T:140387659831168 DEBUG: PulseAudio: Context authorizing
18:22:47 T:140387659831168 DEBUG: PulseAudio: Context setting name
18:22:47 T:140387659831168 DEBUG: PulseAudio: Context ready
18:22:47 T:140386878072576 DEBUG: PulseAudio: Found Sisäinen äänentoisto Digitaalinen stereo (IEC958) (PulseAudio) with devicestring pulse:alsa_output.pci-0000_00_1b.0.iec958-stereo@default
18:22:47 T:140387659831168 DEBUG: PulseAudio: Context authorizing
18:22:47 T:140387659831168 DEBUG: PulseAudio: Context setting name
18:22:47 T:140387659831168 DEBUG: PulseAudio: Context ready
18:22:47 T:140386878072576 DEBUG: PulseAudio: Found Sisäinen äänentoisto Digitaalinen stereo (IEC958) (PulseAudio) with devicestring pulse:alsa_output.pci-0000_00_1b.0.iec958-stereo@default
18:24:21 T:140387659831168 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
18:24:21 T:140387659831168 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
18:24:21 T:140387659831168 DEBUG: CGUIAudioManager:Big GrineInitialize
18:24:21 T:140387232327424 INFO: ffmpeg[731D2700]: Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
18:24:21 T:140387232327424 NOTICE: Opening audio stream: 1 source: 256
18:24:21 T:140387232327424 NOTICE: Finding audio codec for: 86020
18:24:21 T:140387232327424 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
18:24:21 T:140387232327424 INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - Trying to setup spdif muxer
18:24:21 T:140387232327424 INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - spdif muxer ready
18:24:21 T:140387232327424 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opened
18:24:21 T:140387232327424 NOTICE: Creating audio thread
18:24:21 T:140386961970944 DEBUG: Thread CDVDPlayerAudio start, auto delete: 0
18:24:21 T:140386961970944 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
18:24:21 T:140386961970944 NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
18:24:21 T:140386961970944 DEBUG: Initialize - using alsa device iec958:CARD=Intel,DEV=0,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
18:24:21 T:140386961970944 ERROR: Initialize - device iec958:CARD=Intel,DEV=0,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 busy retrying...
18:24:22 T:140386961970944 ERROR: Initialize - failed to open custom device iec958:CARD=Intel,DEV=0,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 (errorBig Grinevice or resource busy), retry with default iec958:CARD=Intel,DEV=0
18:24:22 T:140386961970944 DEBUG: CGUIAudioManager::Initialize
18:24:22 T:140386961970944 ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen
18:24:22 T:140386961970944 DEBUG: CGUIAudioManager:Big GrineInitialize
18:24:22 T:140386961970944 DEBUG: CNullDirectSound::Initialize - Channels: 2 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough 3 - audioDevice: iec958:CARD=Intel,DEV=0
18:24:22 T:140386961970944 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
18:24:22 T:140386961970944 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(10000.000000, 1)
18:24:22 T:140386961970944 DEBUG: CDVDPlayerAudio:: Discontinuity - was:23.412000, should be:0.000000, error:-23.412000
18:24:24 T:140387659831168 DEBUG: CGUIAudioManager::Initialize
18:24:26 T:140386961970944 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1794021.937000, should be:1799001.275179, error:4979.338179
18:24:26 T:140387659831168 DEBUG: CGUIAudioManager:Big GrineInitialize
18:24:32 T:140387232327424 NOTICE: DVDPlayer: closing audio stream
18:24:32 T:140387232327424 NOTICE: Closing audio stream
18:24:32 T:140387232327424 NOTICE: Waiting for audio thread to exit
18:24:32 T:140386961970944 NOTICE: thread end: CDVDPlayerAudio::OnExit()
18:24:32 T:140386961970944 DEBUG: Thread CDVDPlayerAudio 140386961970944 terminating
18:24:32 T:140387232327424 NOTICE: Closing audio device
18:24:32 T:140387232327424 DEBUG: CGUIAudioManager::Initialize
18:24:32 T:140387232327424 NOTICE: Deleting audio codec
18:24:38 T:140387659831168 DEBUG: CGUIAudioManager:Big GrineInitialize
Reply

Logout Mark Read Team Forum Stats Members Help
please help to get spdiff out0