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
 
Search this Thread
Old 02-24-2010, 08:34 PM   #1
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Rep: Reputation: 0
Question HELP PLEASE - Add a sound card to ALSA


Hi there,

I'm using an arm board, S3C2440, with the UDA1341 sound controller. I have the /dev/dsp working properly. Madplay works fine.

Now, I want to use amixer (and other tools from ALSA utils), but I have no soundcard in /proc/asound/cardx to select in amixer. When executing amixer scontrols, it gives:
Code:
[root@arm-linux bin]# ./amixer scontrols
ALSA lib control.c:739:(snd_ctl_open_noupdate) Invalid CTL default
amixer: Mixer attach default error: No such file or directory

So, does anyone know what is needed to associate /dev/dsp with an ALSA soundcard in /proc/asound/cardx? I gess I need to do modprob, but with what?

For further details, see http://linphone-on-arm.yolasite.com/

Thanks,
Sérgio Gonçalves

Last edited by TheSergon13; 02-25-2010 at 09:13 AM.
 
Old 02-25-2010, 06:49 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by TheSergon13 View Post

So, does anyone know what is needed to associate /dev/dsp with an ALSA soundcard in /proc/asound/cardx? I gess I need to do modprob, but with what?

Thanks,
Sérgio Gonçalves
Don't know at all if this helps:
Code:
lugo@fido:~$ apt-cache search --full alsa-oss                                      
Package: alsa-oss                                                                  
Priority: optional                                                                 
Section: sound                                                                     
Installed-Size: 256                                                                
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>       
Architecture: amd64                                                                
Version: 1.0.15-1                                                                  
Depends: libasound2 (>> 1.0.14), libc6 (>= 2.6.1-1)                                
Filename: pool/main/a/alsa-oss/alsa-oss_1.0.15-1_amd64.deb                         
Size: 55036                                                                        
MD5sum: 8f9df26eea6065f8166903c3530f4453                                           
SHA1: 151491611e4ad4a9c4f7138bb1129b658baa548f                                     
SHA256: 9d6be35c2272a8151784dd9f8ca81f5d7de79259533597284c4ef71f8b925345           
Description: ALSA wrapper for OSS applications                                     
 This package contains a program loader, aoss, which wraps                         
 applications written for OSS in a compatibility library,                          
 thus allowing them to work with ALSA.                                             
 .                                                                                 
 There are two ways of getting an application to work with                         
 ALSA if the application was written for OSS. The first way                        
 is to load the special ALSA drivers that emulate the OSS                          
 kernel interface; these allow the application to open                             
 /dev/dsp0 and other OSS device files. The second way is                           
 to wrap the application in the libaoss library provided
 in this package; the wrapper causes the application to
 access native ALSA device files such as /dev/snd/pcmC0D0c
 instead of OSS device files.
 .
 Use of the alsa-oss library is recommended over the use of
 OSS-emulation drivers if you want to use ALSA's PCM plugin
 layer.
 .
 ALSA is the Advanced Linux Sound Architecture:
     http://alsa.sourceforge.net
 OSS is the free version of the Open Sound System.
Homepage: http://www.alsa-project.org/
Tag: admin::hardware, interface::commandline, role::program, scope::utility, use::converting, use::playing, works-with::audio
Kernel-level OSS emulation via the snd-pcm-oss and snd-mixer-oss and snd-seq-oss modules

http://alsa.opensrc.org/index.php/OssEmulationIncidentally, in case it was not a typo, it's modprobe with an e.

Last edited by lugoteehalt; 02-25-2010 at 08:21 PM. Reason: Is your url thing slightly bonkers or is it me?
 
Old 02-25-2010, 07:53 PM   #3
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Original Poster
Rep: Reputation: 0
Lightbulb

Hi.

Thank you lugoteehalt for your reply.

Quote:
There are two ways of getting an application to work with
ALSA if the application was written for OSS. The first way
is to load the special ALSA drivers that emulate the OSS
kernel interface; these allow the application to open
/dev/dsp0 and other OSS device files. The second way is
to wrap the application in the libaoss library provided
in this package; the wrapper causes the application to
access native ALSA device files such as /dev/snd/pcmC0D0c
instead of OSS device files.
This gave me an idea to the next step. I gess I need to compile the codec to my UDA1341 sound controller, and that's what I will use to do modprobe.
I only don't understand why do I have to do this if I already have my device /dev/dsp working.... Anyway.... Somebody corrects me if I am wrong.

Thank you again lugoteehalt

Regards,
Sérgio Gonçalves
 
  


Reply

Tags
alsa, soundcard


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound card conflict with Vid-Capture card ALSA Optimistic Debian 5 11-05-2007 11:20 PM
USB sound card not detected by ALSA but is by lsusb, using alsa 1.0.15 mjkelly93 Linux - Hardware 1 10-20-2007 10:23 AM
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 01:02 PM
No sound with a CM8738 sound card -- alsa installed istar80 Linux - Hardware 1 06-17-2005 02:02 PM
add card sound jose_luis Slackware 1 09-16-2003 08:03 AM


All times are GMT -5. The time now is 01:31 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 Google+: linuxquestions
Open Source Consulting | Domain Registration