From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E59E3-0004os-GS for garchives@archives.gentoo.org; Tue, 16 Aug 2005 21:44:03 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7GLgSUa030633; Tue, 16 Aug 2005 21:42:28 GMT Received: from www.rout.co.nz (203-79-82-53.adsl-wns.paradise.net.nz [203.79.82.53]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7GLcp2S017843 for ; Tue, 16 Aug 2005 21:38:52 GMT Received: from [192.168.1.2] (nick.rout.co.nz [192.168.1.2]) by www.rout.co.nz (Postfix) with ESMTP id 28F708B6EA for ; Wed, 17 Aug 2005 09:38:16 +1200 (NZST) Date: Wed, 17 Aug 2005 09:39:33 +1200 From: Nick Rout To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can't get ALSA OSS Emulation to work In-Reply-To: <8f7a9d5805081607314c0968ce@mail.gmail.com> References: <8f7a9d5805081607314c0968ce@mail.gmail.com> Message-Id: <20050817093610.CBD9.NICK@rout.co.nz> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.21.04 [en] X-Archives-Salt: 3f6dfa85-d52d-4ef9-8be4-4792617b7ee2 X-Archives-Hash: e4df6c6e9794adb67fb921dc169ecfd0 The setup on gentoo changed sometime around alsa-lib 1.09. Leave ALL of the oss stuff out of the module config files (running alsaconfig will set it up correctly) Then set ENABLE_OSS_EMUL="yes" in /etc/conf.d/alsasound my /etc/modules.d/alsa now reads: nick@sf /etc/conf.d $ cat /etc/modules.d/alsa # --- BEGIN: Generated by ALSACONF, do not edit. --- # --- ALSACONF version 1.0.9a --- options snd device_mode=0666 alias snd-card-0 snd-via82xx alias sound-slot-0 snd-via82xx # --- END: Generated by ALSACONF, do not edit. --- /etc/conf.d/alsasound now reads: # ENABLE_OSS_EMUL: # Do you want to enable in-kernel oss emulation? # no - Do not load oss emul drivers # yes - Load oss emul drivers if they're found ENABLE_OSS_EMUL="yes" # RESTORE_ON_START: # Do you want to restore your mixer settings? If not, your cards will be # muted. # no - Do not restore state # yes - Restore state RESTORE_ON_START="yes" # SAVE_ON_STOP: # Do you want to save changes made to your mixer volumes when alsasound # stops? # no - Do not save state # yes - Save state SAVE_ON_STOP="yes" On Tue, 16 Aug 2005 11:31:30 -0300 Raphael Melo de Oliveira Bastos Sales wrote: > Hi everyone, > > After some days googling for it, I give up now and come here for > help. I have Alsa installed in kernel, and it works fine for programs > that are compatible with. But programs that need OSS don't get any > sound. I have the following lines in the alsa config files: > > /etc/modules.d/alsa: > alias /dev/mixer snd-mixer-oss > alias /dev/dsp snd-pcm-oss > alias /dev/midi snd-seq-oss > > alias snd-card-0 snd-via82xx > alias sound-slot-0 snd-via82xx > > When I run the alsasound init script it says: > * Loading ALSA modules ... > * Loading: snd-card-0 ... [ ok ] > * Loading: snd-seq-oss ... [ ok ] > * Loading: snd-pcm-oss ... [ ok ] > * Restoring Mixer Levels ... [ ok ] > > # cat /proc/modules | grep oss > snd_pcm_oss 52576 0 - Live 0xe258b000 > snd_mixer_oss 19648 1 snd_pcm_oss, Live 0xe1111000 > snd_seq_oss 37568 0 - Live 0xe2512000 > snd_seq_midi_event 7168 1 snd_seq_oss, Live 0xe0da9000 > snd_seq 55056 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event, Live 0xe086d000 > snd_pcm 93448 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec, Live 0xe0db0000 > snd_seq_device 8972 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi, > Live 0xe084a000 > snd 57412 13 snd_pcm_oss,snd_mixer_oss,snd_seq_dummy,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device, > Live 0xe0d79000 > > So it seems that the modules are loaded correctly. But every program > that tries to pipe to /dev/dsp gets broken pipe (i.e. Quake and Enemy > Territory). > > If anybody can tell me what could be wrong, please let me know. If > there is a config file that is important and that I didn't send it > here, tell me and I'll send them. > > Thanks for the attention, > > Raphael > > -- > gentoo-user@gentoo.org mailing list -- Nick Rout -- gentoo-user@gentoo.org mailing list