[SOLVED] SPDIF/AMD Fusion - failed to initialize audio device - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [SOLVED] SPDIF/AMD Fusion - failed to initialize audio device (/showthread.php?tid=129442) |
[SOLVED] SPDIF/AMD Fusion - failed to initialize audio device - Baswazz - 2012-04-20 Yesterday i installed XBMCBuntu Eden on my new AMD Fusion A6-3500 system. This morning i recognized i did not have any audio with SPDIF. I did update my XBMCbuntu with PVR from Pulse-Eight packages but i don't know if this has anything todo with it. Searching the forums i read in this topic that when i go to terminal and type 'alsamixer' SPDIF is muted. I unmute it, go to all the audio devices. But it keeps saying 'Failed to initialize audio device'. Can anyone help me out? Fix: Thx to Snippo in the first place to getting my audio back. fritsch did gave me the proper work around. If exist remove: dpkg -l | grep asound sudo apt-get remove --purge libasound2-plugins:i386 create /etc/asound.conf Code: pcm.!default { System > Audio output: go into xbmc change audio output to optical 5.1 check dts and ac3 capable if your receiver support it. audio output device: Defaults (ALSA) Passthrough output device: custom Custom passtrhough device: hw:1,1 *1,1 [Card 1, Device 1 from "aplay -l"] Be sure SPDIF is not muted as it was after the reinstall "alsamixer" to unmute. And change the asound.conf to your needs by using "aplay -l" command without the quotes. RE: SPDIF/AMD Fusion failed to initialize audio device - erhnam - 2012-04-20 Could you please post a copy of your /tmp/debugInfo.txt RE: SPDIF/AMD Fusion failed to initialize audio device - Baswazz - 2012-04-20 (2012-04-20, 11:29)erhnam Wrote: Could you please post a copy of your /tmp/debugInfo.txt I did a clean install to see if there are any changes but the problem still exist. debugInfo.txt is not present in the /tmp folder. Can you help me out getting this log? I did enabled debug mode and i can't find anything relevant on google. Hardware: Gigabyte GA-A75N-USB3 .xbmc/temp/xmbc.log 13:46:09 T:3042723584 NOTICE: CDVDPlayer::CloseFile() 13:46:09 T:3042723584 NOTICE: DVDPlayer: waiting for threads to exit 13:46:09 T:2874989424 NOTICE: CDVDPlayer::OnExit() 13:46:09 T:2874989424 NOTICE: DVDPlayer: closing audio stream 13:46:09 T:2874989424 NOTICE: Closing audio stream 13:46:09 T:2874989424 NOTICE: Waiting for audio thread to exit 13:46:09 T:2811214704 NOTICE: thread end: CDVDPlayerAudio::OnExit() 13:46:09 T:2811214704 DEBUG: Thread CDVDPlayerAudio 2811214704 terminating 13:46:09 T:2874989424 NOTICE: Closing audio device 13:46:09 T:2874989424 DEBUG: SetActiveDevice - SetActiveDevice from 2 to 1 13:46:09 T:2874989424 DEBUG: RemoveActiveDevice - Removing device 2 13:46:09 T:2874989424 DEBUG: CGUIAudioManager::Initialize 13:46:09 T:2874989424 ERROR: Unable to open audio mixer 13:46:09 T:2874989424 NOTICE: Deleting audio codec 13:46:09 T:2874989424 NOTICE: DVDPlayer: closing video stream 13:46:09 T:2874989424 NOTICE: Closing video stream 13:46:09 T:2874989424 NOTICE: waiting for video thread to exit 13:46:09 T:2819607408 NOTICE: thread end: video_thread RE: SPDIF/AMD Fusion failed to initialize audio device - erhnam - 2012-04-20 Could you please post the contens of the following; Code: cat /proc/cpuinfo | grep 'model name' -m1 | grep 'Atom' Code: aplay -l Code: lspci -nn | grep '0403' Code: /usr/bin/amixer -c 0 | grep 'Simple mixer control' | grep 'IEC958' | awk '{print $4,$5,$6}' This allows me to understand what might be wrong with our alsa config script. RE: SPDIF/AMD Fusion failed to initialize audio device - Baswazz - 2012-04-20 Code: $ cat /proc/cpuinfo Code: $ cat /proc/cpuinfo | grep 'model name' -m1 Code: $ cat /proc/cpuinfo | grep 'Atom' if i add the full cmd it does not give output either. Code: $ aplay -l Quote:$ /usr/bin/amixer -c 0 | grep 'Simple mixer control' | grep 'IEC958' | awk '{print $4,$5,$6}' Code: $ /usr/bin/amixer -c 1 | grep 'Simple mixer control' | grep 'IEC958' | awk '{print $4,$5,$6}' RE: SPDIF/AMD Fusion A6-3500 - failed to initialize audio device - erhnam - 2012-04-20 Thanks. Do you have a ~/.asoundrc config? If yes, could you please post the contents as well? RE: SPDIF/AMD Fusion A6-3500 - failed to initialize audio device - Baswazz - 2012-04-20 If i do ls -all i don't see the .asoundrc file in my home folder. RE: SPDIF/AMD Fusion - failed to initialize audio device - Zaho - 2012-04-20 I had the same problem. I spent many hours to solve this. My hardware is very similar to yours. Code: karta 0: Generic [HD-Audio Generic], urządzenie 3: HDMI 0 [HDMI 0] Try this: create .asoundrc file Code: pcm.dmixer { and in XBMC settings: Code: Audio Output: Optical/Coax Optical output works fine but play only 48 KHz audio sample video. If i want to play e.g trailer which I downloaded from youtube (44,1 KHz) I get: 'Failed to initialize audio device'. RE: SPDIF/AMD Fusion - failed to initialize audio device - Baswazz - 2012-04-20 Thanks for your input in this topic. I shall try it. I hope we are able to fix this with erhnam's help. edit: I can confirm this does work for me. I tested it on The Trailers add-on as well, but indeed i get 'Failed to initialize audio device'. RE: SPDIF/AMD Fusion - failed to initialize audio device - Zaho - 2012-04-20 I know, it drives me crazy. RE: SPDIF/AMD Fusion - failed to initialize audio device - Baswazz - 2012-04-20 I did find this ubuntu wiki to test if the soundcard is supported. This is my output: Code: $ grep "Codec:" /proc/asound/card*/codec* Also i see this wiki how to upgrade Alsa, i go test this tomorrow. This is the driver version it does use now: Code: $ cat /proc/asound/version RE: SPDIF/AMD Fusion - failed to initialize audio device - Zaho - 2012-04-21 Let me know if you succeeded. RE: SPDIF/AMD Fusion - failed to initialize audio device - Baswazz - 2012-04-21 No luck upgrading alsa. I added a bug report you can follow: http://trac.xbmc.org/ticket/12945 I hope we get some input soon. RE: SPDIF/AMD Fusion - failed to initialize audio device - Snippo - 2012-04-21 Have you tried setting the custom audio (passthrough) device to 'plughw:1,1' ? RE: SPDIF/AMD Fusion - failed to initialize audio device - Baswazz - 2012-04-21 (2012-04-21, 16:49)Snippo Wrote: Have you tried setting the custom audio (passthrough) device to 'plughw:1,1' ? Thanks for your input. It looks like this does the trick. I now got: Audio output device: HD-Audio Generic - iec958 - 0 (ALSA) Passthrough output device: Custom Custom passthrough device: plughw:1,1 Thanks you really made my day |