LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2008, 10:16 PM   #1
ih12
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Can't open /dev/dsp in BasicLinux


Hello,

I am on BasicLinux 3.50. And I need help with a message after I enter the command: mpg123 /temp/test.mp3

The message is:
[info about player...]
Can't open /dev/dsp!


I followed the steps as explained on the BL website. This is my first post, so I can not input the url, (search iBilio under Linux Distributions for BasLinux). But the link I am referring to is on their Home Page called, "How to activate SoundBlaster audio in BL3".

So, I recieved the above mentioned message. However, my /dev directory does contian "dsp". I also have done some searching, but because BasicLinux is not really updated, the info I have found is not really relevant. I have a fealing though that it might be some really simple solution.

Basically the directions at their site is to activate:

insmod soundcore
insmod sound
insmod uart401
insmod sb io=0x220 irq=5 dma=1 dma16=0 mpu_io=0x330

However, it also states that some hardware might not support SoundBlaster Audio. And this is where I am clueless. So, how can I fix the problem or what alternatives is there. And if there is alternatives, I would still like to know how to fix the problem. If that is not too much to ask. As I do like to learn by experience. Thankyou.

Last edited by ih12; 08-11-2008 at 10:19 PM.
 
Old 08-13-2008, 06:53 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. check the owner/group and permissions on the file:
ls -l /dev/dsp

Does your user have read/write access to the device? If you do have access, check if the device exists:

less -f /dev/dsp

If the device node exists but there is not actually any driver, you will get "no such device"; otherwise the screen may fill with junk and you may have to press "[ctl]c" to 'escape' then 'q' to quit 'less'.

If your user doesn't have access to the device, you will need to add all users who need access to the appropriate group. You can do this with the 'addgroup' tool or by manually editing the /etc/group file. The user needs to log out and log in again for the group change to take effect.

'/dev/dsp' is an OSS device and OSS has been deprecated in favor of alsa (which is superior); most OSS drivers have been removed from the kernel over a year ago - I don't know if any OSS drivers remain for legacy support. However, alsa maintains an OSS compatibility interface; if you're using ALSA drievrs, you can load the OSS layer with:

modprobe snd-pcm-oss

Check the ALSA notes for your specific sound hardware to see if there are other devices which you can take advantage of (mixer, sequencer).

Last edited by pinniped; 08-13-2008 at 06:56 AM.
 
Old 08-13-2008, 06:55 PM   #3
ih12
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
BL has no login program. I am only unsing it as root for now. I tried the commands you suggested and I got a display of wierd characters. I also tried out the insmod commands in my console. And they all worked except for sb.o, I recieved the message:

sb: dsp reset failed insmod: init_module sb: Device or resource busy

I think its either the settings I inserted in the rc file are wrong or my soundcard is not compatible with sb.o. Thus, another driver? Just to note, I am not trying to upgrade the kernel, I'm just trying to see what I could work with in BL for now, without any big changes. I do see though that getting 2.6 with ALSA would be much easier, I've used it on other distros. So I think it might be the sb.o driver, in which case I might need a different one. But I don't know how which one to get.

Last edited by ih12; 08-13-2008 at 06:57 PM.
 
Old 08-13-2008, 09:06 PM   #4
ih12
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I think I have a VIA 82c???? soundcard and not SB. I downloaded the via82cxxx_audio.o and ac97_codec.o modules for kernel 2.2.26. And the command insmod accepted them. However, when I played "mpg123 /tmp/test.mp3" I got the message:

Playing MPEG stream from test.mp3
MPEG 2.5 layer III, 16 kbits/s, 11025Hz mono
mpg123: Can't rewind stream by 1103 bits!
mpg123: Can't rewind stream by 301 bits!
mpg123: Can't rewind stream by 301 bits!
[0:11] Decoding of test.mp3 finished.

I did not get the '/dev/dsp/' message anymore. So I think i might have the right modules now. But when I played the "/tmp/test.mp3" I did not hear any sound from my speakers. I was wondering if there are some settings I have to add to the modules, especially to via.. and ac7.., when using insmod?
 
Old 08-14-2008, 03:20 PM   #5
ih12
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I got my audio to work now. Thanks for the Help.

I tried the new ac7.. and via.. modules for my soundcard and it worked. That is why /dev/dsp was not working, I was using sb.o, wrong driver.

Is there any way I can increase the master volume. The sound is kind of low. I'm a able to increase the volume with a media player, I'm using mplayer. But was wondering if there was also any command to increase the volume in the commandline, independent of any player? Like alsamixer, I do not have ALSA though. Or does the media player increase the master volume automatically?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to open audio device (/dev/dsp): No such device stevesk Slackware 6 01-01-2009 06:29 AM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 11:33 AM
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 12:27 PM
XMMS problem : ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): sureshrk19 Slackware 4 04-01-2004 09:17 PM
open /dev/[sound/]dsp: Device or resource busy tearinox Linux - Newbie 1 10-24-2003 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration