LinuxQuestions.org
Help answer threads with 0 replies.
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 11-23-2009, 11:36 PM   #1
lhorace
Member
 
Registered: Aug 2009
Distribution: Fedora
Posts: 126

Rep: Reputation: 21
I have a problem with Mic Output


I have a builtin Mic and also I can plug in a mic. I really don't understand why this ain't working. Out of all the people I have spoken to works flawlessly for them. And has worked fine in Fedora 10. Since Fedora 11 and switched to openSuSE 11.2, it has never worked. I don't know if KDE is the culprit or alsa. I did some google'n and all I have come up with is I might need a loopback of some kind, configuration in Alsa. The only think I'm able to do is record from those output sources but unable to play those through the speaker or headphones. The Mic In connector also or suppose to works like a line in as well..............ANY help, only CLUE would be really be nice. I don't know how to configure alsa, I just know the basic commands.

ALSA Driver
snd-intel-hda, CODEC Realtek ALC2888

Code:
#                                                                                       
#  ALSA library configuration file                                                      
#                                                                                       

# pre-load the configuration files

@hooks [
        {
                func load
                files [  
                        "/etc/asound.conf"
                        "~/.asoundrc"     
                ]                         
                errors false              
        }                                 
]                                         

# load card-specific configuration files (on request)

cards.@hooks [
        {     
                func load
                files [  
                        {
                                @func concat
                                strings [   
                                        { @func datadir }
                                        "/cards/aliases.conf"
                                ]                            
                        }                                    
                ]                                            
        }                                                    
        {                                                    
                func load_for_all_cards                      
                files [                                      
                        {                                    
                                @func concat                 
                                strings [                    
                                        { @func datadir }    
                                        "/cards/"            
                                        { @func private_string }
                                        ".conf"                 
                                ]                               
                        }                                       
                ]                                               
                errors false                                    
        }                                                       
]                                                               

#
# defaults
#         

# show all name hints also for definitions without hint {} section
defaults.namehint.showall off                                     
# show just basic name hints                                      
defaults.namehint.basic on                                        
# show extended name hints                                        
defaults.namehint.extended off                                    
#                                                                 
defaults.ctl.card 0                                               
defaults.pcm.card 0                                               
defaults.pcm.device 0                                             
defaults.pcm.subdevice -1                                         
defaults.pcm.nonblock 1                                           
defaults.pcm.ipc_key 5678293                                      
defaults.pcm.ipc_gid audio                                        
defaults.pcm.ipc_perm 0660                                        
defaults.pcm.dmix.max_periods 0                                   
defaults.pcm.dmix.rate 48000                                      
defaults.pcm.dmix.format "unchanged"                              
defaults.pcm.dmix.card defaults.pcm.card                          
defaults.pcm.dmix.device defaults.pcm.device                      
defaults.pcm.dsnoop.card defaults.pcm.card                        
defaults.pcm.dsnoop.device defaults.pcm.device                    
defaults.pcm.front.card defaults.pcm.card                         
defaults.pcm.front.device defaults.pcm.device                     
defaults.pcm.rear.card defaults.pcm.card                          
defaults.pcm.rear.device defaults.pcm.device                      
defaults.pcm.center_lfe.card defaults.pcm.card                    
defaults.pcm.center_lfe.device defaults.pcm.device                
defaults.pcm.side.card defaults.pcm.card                          
defaults.pcm.side.device defaults.pcm.device                      
defaults.pcm.surround40.card defaults.pcm.card                    
defaults.pcm.surround40.device defaults.pcm.device                
defaults.pcm.surround41.card defaults.pcm.card                    
defaults.pcm.surround41.device defaults.pcm.device                
defaults.pcm.surround50.card defaults.pcm.card                    
defaults.pcm.surround50.device defaults.pcm.device                
defaults.pcm.surround51.card defaults.pcm.card                    
defaults.pcm.surround51.device defaults.pcm.device                
defaults.pcm.surround71.card defaults.pcm.card                    
defaults.pcm.surround71.device defaults.pcm.device                
defaults.pcm.iec958.card defaults.pcm.card                        
defaults.pcm.iec958.device defaults.pcm.device                    
defaults.pcm.modem.card defaults.pcm.card                         
defaults.pcm.modem.device defaults.pcm.device                     
# truncate files via file or tee PCM                              
defaults.pcm.file_format        "raw"                             
defaults.pcm.file_truncate      true                              
defaults.rawmidi.card 0                                           
defaults.rawmidi.device 0                                         
defaults.rawmidi.subdevice -1                                     
defaults.hwdep.card 0                                             
defaults.hwdep.device 0                                           
defaults.timer.class 2                                            
defaults.timer.sclass 0                                           
defaults.timer.card 0                                             
defaults.timer.device 0                                           
defaults.timer.subdevice 0                                        

#
#  PCM interface
#               

# redirect to load-on-demand extended pcm definitions
pcm.cards cards.pcm                                  

pcm.default cards.pcm.default
pcm.front cards.pcm.front    
pcm.rear cards.pcm.rear      
pcm.center_lfe cards.pcm.center_lfe
pcm.side cards.pcm.side            
pcm.surround40 cards.pcm.surround40
pcm.surround41 cards.pcm.surround41
pcm.surround50 cards.pcm.surround50
pcm.surround51 cards.pcm.surround51
pcm.surround71 cards.pcm.surround71
pcm.iec958 cards.pcm.iec958        
pcm.spdif iec958                   
pcm.hdmi cards.pcm.hdmi            
pcm.dmix cards.pcm.dmix            
pcm.dsnoop cards.pcm.dsnoop        
pcm.modem cards.pcm.modem          
pcm.phoneline cards.pcm.phoneline  

pcm.hw {
        @args [ CARD DEV SUBDEV ]
        @args.CARD {             
                type string      
                default {        
                        @func getenv
                        vars [      
                                ALSA_PCM_CARD
                                ALSA_CARD    
                        ]                    
                        default {            
                                @func refer  
                                name defaults.pcm.card
                        }                             
                }                                     
        }                                             
        @args.DEV {                                   
                type integer                          
                default {                             
                        @func igetenv                 
                        vars [                        
                                ALSA_PCM_DEVICE       
                        ]                             
                        default {                     
                                @func refer           
                                name defaults.pcm.device
                        }                               
                }                                       
        }                                               
        @args.SUBDEV {                                  
                type integer                            
                default {                               
                        @func refer                     
                        name defaults.pcm.subdevice     
                }                                       
        }                                               
        type hw                                         
        card $CARD                                      
        device $DEV                                     
        subdevice $SUBDEV                               
        hint {                                          
                show {                                  
                        @func refer                     
                        name defaults.namehint.extended 
                }                                       
                description "Direct hardware device without any conversions"
        }                                                                   
}                                                                           

pcm.plughw {
        @args [ CARD DEV SUBDEV ]
        @args.CARD {             
                type string      
                default {        
                        @func getenv
                        vars [      
                                ALSA_PCM_CARD
                                ALSA_CARD    
                        ]                    
                        default {            
                                @func refer  
                                name defaults.pcm.card
                        }                             
                }                                     
        }                                             
        @args.DEV {                                   
                type integer                          
                default {                             
                        @func igetenv                 
                        vars [                        
                                ALSA_PCM_DEVICE       
                        ]                             
                        default {                     
                                @func refer           
                                name defaults.pcm.device
                        }                               
                }                                       
        }                                               
        @args.SUBDEV {                                  
                type integer                            
                default {                               
                        @func refer                     
                        name defaults.pcm.subdevice     
                }                                       
        }                                               
        type plug                                       
        slave.pcm {                                     
                type hw                                 
                card $CARD                              
                device $DEV                             
                subdevice $SUBDEV                       
        }                                               
        hint {                                          
                show {                                  
                        @func refer                     
                        name defaults.namehint.extended 
                }                                       
                description "Hardware device with all software conversions"
        }                                                                  
}                                                                          

pcm.plug {
        @args [ SLAVE ]
        @args.SLAVE {  
                type string
        }                  
        type plug          
        slave.pcm $SLAVE   
}                          

pcm.shm {
        @args [ SOCKET PCM ]
        @args.SOCKET {      
                type string 
        }                   
        @args.PCM {         
                type string 
        }                   
        type shm            
        server $SOCKET      
        pcm $PCM            
}                           

pcm.tee {
        @args [ SLAVE FILE FORMAT ]
        @args.SLAVE {              
                type string        
        }                          
        @args.FILE {               
                type string        
        }                          
        @args.FORMAT {             
                type string        
                default {          
                        @func refer
                        name defaults.pcm.file_format
                }                                    
        }                                            
        type file                                    
        slave.pcm $SLAVE                             
        file $FILE                                   
        format $FORMAT                               
        truncate {                                   
                @func refer                          
                name defaults.pcm.file_truncate      
        }                                            
}                                                    

pcm.file {
        @args [ FILE FORMAT ]
        @args.FILE {         
                type string  
        }                    
        @args.FORMAT {       
                type string  
                default {    
                        @func refer
                        name defaults.pcm.file_format
                }                                    
        }                                            
        type file                                    
        slave.pcm null                               
        file $FILE                                   
        format $FORMAT                               
        truncate {                                   
                @func refer                          
                name defaults.pcm.file_truncate      
        }                                            
}                                                    

pcm.null {
        type null
        hint {   
                show {
                        @func refer
                        name defaults.namehint.basic
                }                                   
                description "Discard all samples (playback) or generate zero samples (capture)"
        }                                                                                      
}                                                                                              

#
#  Control interface
#                   

ctl.default {
        type hw
        card { 
                @func getenv
                vars [      
                        ALSA_CTL_CARD
                        ALSA_CARD    
                ]                    
                default {            
                        @func refer  
                        name defaults.ctl.card
                }                             
        }                                     
}                                             

ctl.hw {
        @args [ CARD ]
        @args.CARD {  
                type string
                default {  
                        @func getenv
                        vars [      
                                ALSA_CTL_CARD
                                ALSA_CARD    
                        ]                    
                        default {            
                                @func refer  
                                name defaults.ctl.card
                        }                             
                }                                     
        }                                             
        type hw                                       
        card $CARD                                    
}                                                     

ctl.shm {
        @args [ SOCKET CTL ]
        @args.SOCKET {      
                type string 
        }                   
        @args.CTL {         
                type string 
        }                   
        type shm            
        server $SOCKET      
        ctl $CTL            
}                           

#
#  RawMidi interface
#                   

rawmidi.default {
        type hw  
        card {   
                @func getenv
                vars [      
                        ALSA_RAWMIDI_CARD
                        ALSA_CARD        
                ]                        
                default {                
                        @func refer      
                        name defaults.rawmidi.card
                }                                 
        }                                         
        device {                                  
                @func igetenv                     
                vars [                            
                        ALSA_RAWMIDI_DEVICE       
                ]                                 
                default {                         
                        @func refer               
                        name defaults.rawmidi.device
                }                                   
        }                                           
}                                                   

rawmidi.hw {
        @args [ CARD DEV SUBDEV ]
        @args.CARD {             
                type string      
                default {        
                        @func getenv
                        vars [      
                                ALSA_RAWMIDI_CARD
                                ALSA_CARD        
                        ]                        
                        default {                
                                @func refer      
                                name defaults.rawmidi.card
                        }                                 
                }                                         
        }                                                 
        @args.DEV {                                       
                type integer                              
                default {                                 
                        @func igetenv                     
                        vars [                            
                                ALSA_RAWMIDI_DEVICE       
                        ]                                 
                        default {                         
                                @func refer               
                                name defaults.rawmidi.device
                        }                                   
                }                                           
        }                                                   
        @args.SUBDEV {                                      
                type integer                                
                default -1                                  
        }                                                   
        type hw                                             
        card $CARD                                          
        device $DEV                                         
        subdevice $SUBDEV                                   
        hint {                                              
                description "Direct rawmidi driver device"  
                device $DEV                                 
        }                                                   
}                                                           

rawmidi.virtual {
        @args [ MERGE ]
        @args.MERGE {  
                type string
                default 1  
        }                  
        type virtual       
        merge $MERGE       
}                          

#
#  Sequencer interface
#                     

seq.default {
        type hw
}              

seq.hw {
        type hw
}              

#
#  HwDep interface
#                 

hwdep.default {
        type hw
        card { 
                @func getenv
                vars [      
                        ALSA_HWDEP_CARD
                        ALSA_CARD      
                ]                      
                default {              
                        @func refer    
                        name defaults.hwdep.card
                }                               
        }                                       
        device {                                
                @func igetenv                   
                vars [                          
                        ALSA_HWDEP_DEVICE       
                ]                               
                default {                       
                        @func refer             
                        name defaults.hwdep.device
                }                                 
        }                                         
}                                                 

hwdep.hw {
        @args [ CARD DEV ]
        @args.CARD {      
                type string
                default {  
                        @func getenv
                        vars [      
                                ALSA_HWDEP_CARD
                                ALSA_CARD      
                        ]                      
                        default {              
                                @func refer    
                                name defaults.hwdep.card
                        }                               
                }                                       
        }                                               
        @args.DEV {                                     
                type integer                            
                default {                               
                        @func igetenv                   
                        vars [                          
                                ALSA_HWDEP_DEVICE       
                        ]                               
                        default {                       
                                @func refer             
                                name defaults.hwdep.device
                        }                                 
                }                                         
        }                                                 
        type hw                                           
        card $CARD                                        
        device $DEV                                       
}                                                         

#
#  Timer interface
#                 

timer_query.default {
        type hw      
}                    

timer_query.hw {
        type hw 
}               

timer.default {
        type hw
        class {
                @func refer
                name defaults.timer.class
        }                                
        sclass {                         
                @func refer              
                name defaults.timer.sclass
        }                                 
        card {                            
                @func refer               
                name defaults.timer.card  
        }                                 
        device {                          
                @func refer               
                name defaults.timer.device
        }                                 
        subdevice {                       
                @func refer               
                name defaults.timer.subdevice
        }                                    
        hint.description "Default direct hardware timer device"
}                                                              

timer.hw {
        @args [ CLASS SCLASS CARD DEV SUBDEV ]
        @args.CLASS {                         
                type integer                  
                default {                     
                        @func refer           
                        name defaults.timer.class
                }                                
        }                                        
        @args.SCLASS {                           
                type integer                     
                default {                        
                        @func refer              
                        name defaults.timer.sclass
                }                                 
        }                                         
        @args.CARD {                              
                type string                       
                default {                         
                        @func refer               
                        name defaults.timer.card
                }
        }
        @args.DEV {
                type integer
                default {
                        @func refer
                        name defaults.timer.device
                }
        }
        @args.SUBDEV {
                type integer
                default {
                        @func refer
                        name defaults.timer.subdevice
                }
        }
        type hw
        class $CLASS
        sclass $SCLASS
        card $CARD
        device $DEV
        subdevice $SUBDEV
}

Last edited by lhorace; 11-23-2009 at 11:39 PM.
 
Old 11-24-2009, 03:22 PM   #2
lhorace
Member
 
Registered: Aug 2009
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 21
bump
 
Old 11-24-2009, 05:12 PM   #3
lhorace
Member
 
Registered: Aug 2009
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 21
Anyone might have a workaround to this issue?
 
  


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
Problem with the mic on slackware - mic boost on still very quiet adrian2009 Slackware 1 06-09-2009 05:57 PM
Mic problem. Mic bar missing in alsaconf rengo.Java Linux - Hardware 4 02-15-2009 07:02 PM
microphone problem mic is rear mic and when i rebooted after repair wont work adb0434 Linux - Newbie 2 10-02-2006 01:37 AM
Can't get any output from my mic. Won't accept input. Please help Fear58 Linux - Hardware 1 07-07-2004 12:42 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 08:17 PM


All times are GMT -5. The time now is 01:57 PM.

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