[LINUX] XBMC + Alsa + Passthrough (under Fedora) - 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: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: [LINUX] XBMC + Alsa + Passthrough (under Fedora) (/showthread.php?tid=66044) |
[LINUX] XBMC + Alsa + Passthrough (under Fedora) - Kitof - 2010-01-04 Hi all, I finally succeed to get the sound working under xbmc, with all users and with alsa under Fedora. I would like to share my solution, and maybe it will help other users. My goal is simple : Use passthrough under XBMC and Fedora. So i have to disable pulseaudio and use alsa instead (pulseaudio doesn't support passthrough) Firstable, I disabled pulse during compilation Code: ./configure --disable-vdpau --enable-goom --disable-pulse But, the problems stay multiple : 1/ The sound works with root but i had no sound at all under non-root users. - Check the rights on /dev/snd/* Code: root@home>ls -l /dev/snd/* - When i change manually the rights to the non-user, it works. But when i reboot, the good rights are gone. To change the good rights permenantly, i edit the file /etc/security/console.perms.d/50-default.perms Code: <snd>=/dev/snd/* And i added not-root users to the audio group Code: gpasswd -a notroot audio 2/ After these changes, i've sound in the interface of xbmc with all users, but non-root users have no sound during videos In xbmc.log, i've this error : Code: ERROR: Initialize - pcm_open_lconf, alsa error: -16 As everything works fine under root i check who use the sound device : Under root : Code: root@home>fuser -v /dev/snd/* Under notroot : Code: nonroot@home>fuser -v /dev/snd/* So, to disable pulseaudio : - I removed alsa-plugins-pulseaudio Code: yum remove alsa-plugins-pulseaudio - I removed the /etc/asound.conf file Code: mv /etc/asound.conf /etc/asound.conf.old - I disabled all modules in /etc/pulse/system.pa & default.pa And finally, everything is fine. I hope this help. (As you can read, english isn't my mother tongue, so be free to correct me if some of my sentences are incorrect or incomprehensible ) |