Re: [Alsa-user] Detailed instructions for setting up alsa?
Brought to you by:
perex
From: Arie D. <pa...@am...> - 2003-02-03 19:32:29
|
----- Original Message ----- From: Brian Kendig <br...@en...> To: <Als...@li...> Sent: Monday, February 03, 2003 6:30 PM Subject: Re: [Alsa-user] Detailed instructions for setting up alsa? > Thank you very much for the tips, but it looks like the alsa modules > still aren't working properly. > > Bernard Urban wrote: > > For Debian woody and alsa-0.9: > > You need packages libasound2, alsa-utils, alsa-base and one the > > following: > > alsa-modules-2.4.xx (xx your kernel release) or alsa-source. The latter > > let you compile an alsa-modules-2.4.xx for your specific kernel. > > I have libasound2, alsa-utils, alsa-base, and alsa-modules-2.4.19-686 > installed (since I'm also using kernel-image-2.4.19-686). > > > lsmod will show you if snd-xxx modules are present. > > They are normally automatically loaded when booting, > > 'lsmod' doesn't show any sound-related modules loaded after boot, not > 'snd' or 'sndcore' or anything else that looks like it deals with audio > -- BUT, then I try running 'aplay /usr/share/sounds/pop.wav' and I get > the error 'aplay: main:447: audio open error: No such file or > directory', and then I run 'lsmod' again and now it lists that modules > 'snd' and 'soundcore' are loaded. > > I do have the following lines in /etc/alsa/modutils/0.9, which is > linked to from /etc/modutils/alsa, and the lines also appear in > /etc/modules.conf (because I ran update-modules): > > alias char-major-116 snd > alias snd-card-0 snd-card-cs4236 > alias char-major-14 soundcore > alias sound-slot-0 snd-card-0 > 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 > options snd major=116 cards_limit=1 device_mode=0660 device_gid=29 > device_uid=0 > options snd-card-cs4236 index=0 id=CARD_0 port=0x530 cport=0x210 > mpu_port=0x220 fm_port=0x388 irq=5 mpu_irq=7 dma1=1 dma2=0 > > What I have is identical to what you said except that I removed 'snd_' > from all the options. > > (I added my user account to the 'audio' group too, by the way.) > > Is it correct that the snd and soundcore modules should only be loading > after I try to play a sound, and not at boot? > > And what does the 'aplay: main:447: audio open error: No such file or > directory' error mean? I searched this mailing list but couldn't find > anything conclusive on it. > > As recommended in another email I found, I ran > '/usr/share/doc/alsa-base/examples/snddevices' to create all the > required audio devices, and that ran successfully but had no effect on > the problem. > > > Use alsamixer for unmuting, then aplay (in alsa-utils). If aplay > > produces sound, it is ok. > > When I run 'alsamixer' I get this error: > alsamixer: function snd_ctl_open failed for default: No such file or > directory > > > Being able to use old OSS only programs with alsa is a matter on > > itself... > > How do I know when a program is trying to use OSS instead of alsa? > > > Currently, there is no complete automatic installation process for > > Debian. Depending on your card, you may try stable or unstable 0.9 > > drivers. > > Are you saying that the 0.9 drivers are unstable? Should I try using > 0.5 instead? > > Thank you again for any help. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Alsa-user mailing list > Als...@li... > https://lists.sourceforge.net/lists/listinfo/alsa-user > Dear Brian, I am sure alsa will not install with the "snd-less" configuration. I use the alsaconfig script and it writes in the modules.conf file the following: # Alsa sound support. # Warning: please don't modify comments over aliases 'snd-card-#' alias char-major-116 snd alias char-major-14 off options snd snd_cards_limit=1 snd_major=116 options snd-cs4236 snd_cport=0x538 snd_dma1=1 snd_dma2=0 snd_enable=1 snd_fm_port=0x388 snd_index=0 snd_irq=5 snd_isapnp=0 snd_mpu_irq=9 snd_mpu_port=0x330 snd_port=0x530 snd_sb_port=0x220 # --- END: Generated by ALSACONF, do not edit. --- # uniq.virtual:Sound card alias snd-card-0 snd-cs4236 # YaST2: sound system dependent part # alias sound-slot-0 snd-card-0 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-11 snd-mixer-oss alias sound-service-0-12 snd-pcm-oss The port and irq parameters mightr be different in your computer. I have the idea the control port nr is not correct in your case. You should check that ( if you have windows on the same machine you can find it there) When I use ALSA for my cs4236 everything works ( gamix and alsamixer as well) but I am not too happy with the quality, but that might be due to my hardware. Using a cs3232 kernel driver gives better sound but is lacking most of the mixer control as it is not aware of the control port Alsa 0.9 is much better in my case than alsa 0.5 in particular the alsaconfig script is very useful regards Arie |