Slack9.1/Alsa Versus ET


(iceknight) #1

I have a problem with slackware9.1/alsa sound and enemy-territory, sound not start in game but sound is ok in all apps !!!

------- sound initialization -------
/dev/dsp: Input/output error
Could not mmap /dev/dsp
------------------------------------

And I find that this can be a future problem since alsa goes to be part of kernel of linux 2.6.

Sorry, but i brazilian and my english is bad :frowning:

need help for listen kabuums in ET !!!

Thanks


(weasel) #2

Run lsmod and make sure snd-pcm-oss is listed. Also make sure you have the neccessary device nodes. They should have been created when you installed Alsa. The DSP devices should all have major number 14 and minor numbers 3, 19, 35, and 51 for dsp0, dsp1, dsp2, and dsp3 respectively.


(iceknight) #3

I did not only understand what I have that to make so that it functions! :suspicious:


(weasel) #4

I have no idea what you just said. I don’t think I’ll be able to help you, since neither of seem to be able to understand each other. I don’t think your problem is ET specific, though. I’m sure there are portuguese speaking Linux forums where you can find an answer. Your problem is most likely related to the fact that Quake 3 engine based games are not capable of using Alsa directly, and require that OSS emulation be installed.


(iceknight) #5

emulation oss is ok and running !

the problem must be of the engine of quake 3… :frowning: :eek:

Thanks and forgives my English.

:banghead:


(nihraguk) #6

I am also experiencing this problem, using ALSA CVS and linux 2.4.23. I get the same error:


------- sound initialization -------
/dev/dsp: Input/output error
Could not mmap /dev/dsp
------------------------------------

And I have tried echo ā€œet.x86 0 0 Directā€ > /proc/asound/card0/pcm0p/oss and the ā€œdisableā€ version of the former command as well, to no effect.

My lsmod readout:


Module                  Size  Used by    Tainted: P  
snd-pcm-oss            37764   0  (autoclean)
snd-mixer-oss          13136   0  (autoclean) [snd-pcm-oss]
snd-intel8x0           18244   0  (autoclean)
snd-pcm                60132   0  (autoclean) [snd-pcm-oss snd-intel8x0]
snd-timer              14660   0  (autoclean) [snd-pcm]
snd-ac97-codec         46828   0  (autoclean) [snd-intel8x0]
snd-mpu401-uart         3376   0  (autoclean) [snd-intel8x0]
snd-rawmidi            14112   0  (autoclean) [snd-mpu401-uart]
snd-seq-device          4336   0  (autoclean) [snd-rawmidi]
snd-page-alloc          6388   0  (autoclean) [snd-intel8x0 snd-pcm]
snd                    32036   0  (autoclean) [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
nvidia               1627808  11  (autoclean)
tulip                  40704   1 
usb-ohci               17320   0  (unused)

I am using ET 1.02. I am using the intel8x0 onboard sound for my Epox 8RDA+ nForce2 Ultra400 motherboard.

Would really appreciate it if someone could help me. Can’t wait to get back to playing ET.


(Rain) #7

Check your kernel log (e.g. run dmesg) to see if ALSA was kind enough to output anything useful. In theory, mmap() shouldn’t fail unless the card isn’t capable of being fed interleaved audio samples via DMA (and almost every sound card is; i8x0 sound, despite being evil, is no exception.) Do any other applications that use mmap()d around (mostly games) work? Does anything work?

Another thing you can try is using aoss if you’re not (aoss is a runtime wrapper library that tries to emulate OSS in userspace instead of kernel space), or vice-versa.

Failing all that, you can try editing core/oss/pcm_oss.c in alsa-driver’s source, changing the #if 0 containing #define OSS_DEBUG to #if 1, recompiling/reinserting the relevant bits of alsa-driver, and trying ET again (some debugging spew should end up in the kernel log that may help you or someone on the forum figure out what’s going wrong.)

Meh. :moo: