LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2003, 01:51 AM   #1
The Burninator
LQ Newbie
 
Registered: Jan 2003
Posts: 26

Rep: Reputation: 15
ALSA & mmap -- Return to Castle Wolfenstein


To test my new OS's gaming capabilities, I d/led Return to Castle Wolfenstein Multiplayer Demo, and the sound isn't working. When I run it in console, part of the output is:

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

I'm using ALSA on RedHat 8.0. My sound card is a TB Santa Cruz, for which I use the snd-cs46xx module. I checked and I think the permissions on /dev/dsp are correct. My fellow gamers, how can I fix this?

Thanks for any clues.
 
Old 07-12-2003, 11:53 AM   #2
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 247

Rep: Reputation: 31
I happened to stumble across this post and noticed it had never been answered. The solution to this problem is to load the snd-cs46xx module with the mmap_valid=x option, setting x to a valid integer value between 1 and 8, like so:

modprobe snd-cs46xx mmap_valid=1

This is the method to do it manually. What you do to make it work automatically will vary depending on how you have ALSA set up. With the method outlined by ALSA instructions, you need this on an options line in your modules.conf file after your sound card alias. For example:

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cs46xx
options mmap_valid=1


Any other options you need should go on the same options line separated by a space for each option.

Last edited by Rodrin; 07-12-2003 at 01:12 PM.
 
Old 02-05-2004, 06:47 AM   #3
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 253

Rep: Reputation: 30
What I did:

The game needs access to some sound-device -->
I do
ls -la /dev/dsp*
in the console to see where /dev/dsp points to. For me that is /dev/sound/dsp or whatever. So the sound-devices the game is looking for are in /dev/sound. As /dev/sound/dsp does not work, I try something else, namely /dev/sound/adsp, and luckilliy this works :-)

To change the sound-device for the game (quake3 or enemy territory or whatever similar)
just start the game, then open the console with the tilde-key (for me <Alt Gr><~>, then <space>). Here you have to enter

snddevice "/dev/sound/adsp"

This works for me and you don't have to change any rights or whatever. Just restart the game and sound should be on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return to Castle Wolfenstein Crash ax-enigma-ax Linux - Games 9 11-09-2006 12:37 PM
Return to Castle Wolfenstein Gerardoj Linux - Software 10 10-31-2003 06:20 PM
Return to Castle Wolfenstein walterw Linux - Software 7 08-27-2003 01:33 AM
return to castle wolfenstein ksgill Linux - Newbie 2 07-27-2003 07:34 AM
Return To Castle Wolfenstein gokussj Linux - Software 0 09-23-2002 08:00 AM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration