Gentoo Archives: gentoo-user

From: Nick Rout <nick@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't get ALSA OSS Emulation to work
Date: Tue, 16 Aug 2005 21:44:03
Message-Id: 20050817093610.CBD9.NICK@rout.co.nz
In Reply to: [gentoo-user] Can't get ALSA OSS Emulation to work by Raphael Melo de Oliveira Bastos Sales
1 The setup on gentoo changed sometime around alsa-lib 1.09.
2
3 Leave ALL of the oss stuff out of the module config files (running
4 alsaconfig will set it up correctly)
5
6 Then set ENABLE_OSS_EMUL="yes" in /etc/conf.d/alsasound
7
8 my /etc/modules.d/alsa now reads:
9
10 nick@sf /etc/conf.d $ cat /etc/modules.d/alsa
11 # --- BEGIN: Generated by ALSACONF, do not edit. ---
12 # --- ALSACONF version 1.0.9a ---
13 options snd device_mode=0666
14 alias snd-card-0 snd-via82xx
15 alias sound-slot-0 snd-via82xx
16 # --- END: Generated by ALSACONF, do not edit. ---
17
18 /etc/conf.d/alsasound now reads:
19
20 # ENABLE_OSS_EMUL:
21 # Do you want to enable in-kernel oss emulation?
22 # no - Do not load oss emul drivers
23 # yes - Load oss emul drivers if they're found
24
25 ENABLE_OSS_EMUL="yes"
26
27 # RESTORE_ON_START:
28 # Do you want to restore your mixer settings? If not, your cards will be
29 # muted.
30 # no - Do not restore state
31 # yes - Restore state
32
33 RESTORE_ON_START="yes"
34
35 # SAVE_ON_STOP:
36 # Do you want to save changes made to your mixer volumes when alsasound
37 # stops?
38 # no - Do not save state
39 # yes - Save state
40
41 SAVE_ON_STOP="yes"
42
43
44
45 On Tue, 16 Aug 2005 11:31:30 -0300
46 Raphael Melo de Oliveira Bastos Sales wrote:
47
48 > Hi everyone,
49 >
50 > After some days googling for it, I give up now and come here for
51 > help. I have Alsa installed in kernel, and it works fine for programs
52 > that are compatible with. But programs that need OSS don't get any
53 > sound. I have the following lines in the alsa config files:
54 >
55 > /etc/modules.d/alsa:
56 > alias /dev/mixer snd-mixer-oss
57 > alias /dev/dsp snd-pcm-oss
58 > alias /dev/midi snd-seq-oss
59 >
60 > alias snd-card-0 snd-via82xx
61 > alias sound-slot-0 snd-via82xx
62 >
63 > When I run the alsasound init script it says:
64 > * Loading ALSA modules ...
65 > * Loading: snd-card-0 ... [ ok ]
66 > * Loading: snd-seq-oss ... [ ok ]
67 > * Loading: snd-pcm-oss ... [ ok ]
68 > * Restoring Mixer Levels ... [ ok ]
69 >
70 > # cat /proc/modules | grep oss
71 > snd_pcm_oss 52576 0 - Live 0xe258b000
72 > snd_mixer_oss 19648 1 snd_pcm_oss, Live 0xe1111000
73 > snd_seq_oss 37568 0 - Live 0xe2512000
74 > snd_seq_midi_event 7168 1 snd_seq_oss, Live 0xe0da9000
75 > snd_seq 55056 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event, Live 0xe086d000
76 > snd_pcm 93448 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec, Live 0xe0db0000
77 > snd_seq_device 8972 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi,
78 > Live 0xe084a000
79 > 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,
80 > Live 0xe0d79000
81 >
82 > So it seems that the modules are loaded correctly. But every program
83 > that tries to pipe to /dev/dsp gets broken pipe (i.e. Quake and Enemy
84 > Territory).
85 >
86 > If anybody can tell me what could be wrong, please let me know. If
87 > there is a config file that is important and that I didn't send it
88 > here, tell me and I'll send them.
89 >
90 > Thanks for the attention,
91 >
92 > Raphael
93 >
94 > --
95 > gentoo-user@g.o mailing list
96
97 --
98 Nick Rout <nick@×××××××.nz>
99
100 --
101 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Can't get ALSA OSS Emulation to work Mark Knecht <markknecht@×××××.com>
Re: [gentoo-user] Can't get ALSA OSS Emulation to work Raphael Melo de Oliveira Bastos Sales <raphael.melo21@×××××.com>