alsa permission denied

Sekcia: Konfigurácia 15.07.2005 | 17:05
majko   Návštevník
mam Gentoo linux, a pouzivam alsu. Zvuk mi ale teraz funguje iba pre superuzivatela, a ak napr. spustim aplay pod obycajnym uzivatelom napise vid. dole. Ako to opravit? Predtym mi to fungovalo dobre. Tiez ak spustim xmms pise mi to pri prehravani: Failed to open audio output: OSS driver 1.2.10, pricom mam naistalovane alsa-oss-1.0.8-r1, alsa-utils-1.0.8, alsa-driver-1.0.8, xmms-1.2.10-r14 cat /etc/modules.d/alsa # Alsa 0.9.X kernel modules' configuration file. # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $ # ALSA portion alias char-major-116 snd # OSS/Free portion alias char-major-14 soundcore ## ## IMPORTANT: ## You need to customise this section for your specific sound card(s) ## and then run `update-modules' command. ## Read alsa-driver's INSTALL file in /usr/share/doc for more info. ## ## ALSA portion ## alias snd-card-0 snd-interwave ## alias snd-card-1 snd-ens1371 ## OSS/Free portion ## alias sound-slot-0 snd-card-0 ## alias sound-slot-1 snd-card-1 ## alias snd-card-0 snd-ens1371 alias sound-slot-0 snd-card-0 # OSS/Free portion - card #1 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss ## OSS/Free portion - card #2 ## alias sound-service-1-0 snd-mixer-oss ## alias sound-service-1-3 snd-pcm-oss ## alias sound-service-1-12 snd-pcm-oss alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss # Set this to the correct number of cards. options snd cards_limit=1 /etc/devfsd.conf - alsa # ALSA/OSS stuff # Comment/change these if you want to change the permissions on # the audio devices LOOKUP snd MODLOAD ACTION snd LOOKUP dsp MODLOAD LOOKUP mixer MODLOAD LOOKUP midi MODLOAD REGISTER sound/.* PERMISSIONS root.audio 660 REGISTER snd/.* PERMISSIONS root.audio 660 aplay ALSA lib confmisc.c:550:(snd_determine_driver) could not open control for card 0 ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied ALSA lib confmisc.c:387:(snd_func_concat) error evaluating strings ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied ALSA lib confmisc.c:945:(snd_func_refer) error evaluating name ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied ALSA lib conf.c:3932:(snd_config_expand) Evaluate error: Permission denied ALSA lib pcm.c:2068:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:508: audio open error: Permission denied
    • Re: alsa permission denied 15.07.2005 | 12:58
      majko   Návštevník
      Chyba bola, ze v /dev/sound/* boli nastavene prava pre skupinu audio tak som pridal daneho uzivatela do skupiny audio a uz to slo. Ale ten xmms stale neide.
      • Re: Re: alsa permission denied 15.07.2005 | 13:56
        peter golis   Návštevník
        a vystup nas nastaveny ako? na oss alebo alsa? maju zariadenia pre oss nastavene korektne prava? su nacitane ovladave pre prevod alsa na oss?
        • Re: Re: Re: alsa permission denied 15.07.2005 | 14:54
          majko   Návštevník
          neviem ako zistim, aky je vystup xmms, ale ak dava tu hlasku tak asi oss. S pravami to nebude, lebo to nechodi (xmms) ani ako root. # lsmod Module Size Used by Not tainted ipt_limit 920 9 (autoclean) iptable_filter 1740 1 (autoclean) ip_tables 12192 2 [ipt_limit iptable_filter] snd-seq-midi 3648 0 (unused) snd-seq-oss 26528 0 (unused) snd-seq-midi-event 3520 0 [snd-seq-midi snd-seq-oss] snd-seq 38256 2 [snd-seq-midi snd-seq-oss snd-seq-midi-event] snd-pcm-oss 38208 0 snd-mixer-oss 13464 0 [snd-pcm-oss] snd-ens1371 12164 0 snd-rawmidi 13504 0 [snd-seq-midi snd-ens1371] snd-seq-device 4404 0 [snd-seq-midi snd-seq-oss snd-seq snd-rawmidi] snd-ac97-codec 59608 0 [snd-ens1371] snd-pcm 61160 0 [snd-pcm-oss snd-ens1371 snd-ac97-codec] snd-timer 14692 0 [snd-seq snd-pcm] snd 35588 0 [snd-seq-midi snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-ens1371 snd-rawmidi snd-seq-device snd-ac97-codec snd-pcm snd-timer] snd-page-alloc 5160 0 [snd-seq-midi snd-seq-oss snd-seq snd-mixer-oss snd-rawmidi snd-seq-device snd-pcm snd-timer snd]
          • Re: Re: Re: Re: alsa permission denied 15.07.2005 | 15:39
            borgcube   Návštevník
            v xmms skus nastavit spravny vystup, teda alsa alebo oss
            • Re: Re: Re: Re: Re: alsa permission denied 15.07.2005 | 16:46
              majko   Návštevník
              skusil som este raz emergnut emerge xmms, a uz to ide. Ale neviem, kde sa to nastavuje v xmms, ci ma byt vystup pre alsu, alebo oss, ci vobec podporuje xmms alsu. Kazdopadne to uz ide.
              • Re: Re: Re: Re: Re: Re: alsa permission denied 15.07.2005 | 16:52
                majko   Návštevník
                a uz som to nasiel, Audio I/O plugins - Output plugin - ale ide len aRts Output 0.7.1
                • Re: Re: Re: Re: Re: Re: Re: alsa permission denied 15.07.2005 | 16:56
                  m0d0r   Návštevník
                  skus vypnut uplne v KDE soundserver :) a potom ti to na 100 % pojde ;)
                  • Re: Re: Re: Re: Re: Re: Re: Re: alsa permission de 15.07.2005 | 17:05
                    majko   Návštevník
                    mas pravdu, ale nebudem ten zvukovy server potrebovat, naco tam teda je - iba na systemove zvuky?