Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all - here's an ALSA-related problem, maybe. The microphone input on my sound card works, I know, because when I turn up it's level, and the master output level, I can talk through it, make feedback, etc. *BUT* - I can't record from the mic to save my life! I've tried Audacity recorder, 'arecord', but absolutely ZERO sound is on the resulting .wav file. The card PLAYS great. Yes, I HAVE run alsaconf, but still no microphone capture for recording.
##############################################################################
output from amixer -c 0 scontents
##############################################################################
Simple mixer control 'Master',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 21 [68%] [on]
Front Right: Playback 21 [68%] [on]
Simple mixer control 'Master Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 7
Mono: Playback 3 [43%] [on]
Simple mixer control 'PCM',0
Capabilities: volume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 31
Front Left: 28 [90%] Playback [on] Capture [off]
Front Right: 28 [90%] Playback [on] Capture [off]
Simple mixer control 'PCM',1
Capabilities: volume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 31
Front Left: 28 [90%] Playback [on] Capture [off]
Front Right: 28 [90%] Playback [on] Capture [off]
Simple mixer control 'Line',0
Capabilities: volume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 31
Front Left: 24 [77%] Playback [on] Capture [off]
Front Right: 24 [77%] Playback [on] Capture [off]
Simple mixer control 'CD',0
Capabilities: volume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 31
Front Left: 28 [90%] Playback [on] Capture [off]
Front Right: 28 [90%] Playback [on] Capture [off]
Simple mixer control 'Mic',0
Capabilities: volume volume-joined pswitch pswitch-joined cswitch
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: 0 - 31
Mono: 31 [100%] Playback [on]
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mic Boost (+30dB)',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Mic Bypass',0
Capabilities: cswitch
Capture channels: Front Left - Front Right
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Aux',0
Capabilities: volume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 31
Front Left: 24 [77%] Playback [on] Capture [on]
Front Right: 24 [77%] Playback [on] Capture [on]
Simple mixer control 'Mono',0
Capabilities: volume volume-joined pswitch pswitch-joined cswitch
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: 0 - 31
Mono: 24 [77%] Playback [on]
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mono1 Bypass',0
Capabilities: cswitch
Capture channels: Front Left - Front Right
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mono2 Bypass',0
Capabilities: cswitch
Capture channels: Front Left - Front Right
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mono',1
Capabilities: volume volume-joined pswitch pswitch-joined cswitch
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: 0 - 31
Mono: 24 [77%] Playback [on]
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'AD Input Select',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
###############################################################
this is so hard because sound card drivers are so different and the words alsa project uses to describe things seen off the wall to me
also and more to the point i don't have a soundcard like this
this is just an uneducated guess -- from where you are at now
try
amixer set Aux nocap
amixer set Mono nocap
amixer set 'Mic Bypass' nocap (i really don't know what Mic Bypass does ? anyone else know ?)
amixer set 'Mono1 Bypass' nocap
amixer set 'Mono2 Bypass' nocap
so now you just have Mic capture on and try that
if that doesn't work i think i would try
amixer set PCM cap
first along with the Mic to see if that works
then go from there turning on more captures and turning off or not turning off the ones i tried till you discover the secret combination
Alright, I think I figured it out. Decided to hook up a mic to my SBLive and see if I could get it to work.
Took some effort, but here is what I found.
Looked over your settings and they look ok to me. Although you may want to pull up either "kmix" (GUI) or
"alsamixer" (CLI) and verify that all of your relevant capture settings are on.
Next, when recording with Audacity go into preferences and set it to "ALSA: <your_soundcard>"
not: "OSS: /dev/dsp" for both playback and recording. The OSS setting was the default, this may be why
you weren't getting any output.
Then record some audio via the mic.
Convert it to a wav (it is saved as a .aup by default) and save it.
Then playback the .wav file or any wav file on your HD for that matter. I found that no .wav would play back
by default, they all were blank (or muted).
The following error in the shell that I started kaboodle from gave me the clue I needed:
ALSA lib pcm_hw.c:494: (snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
Go back into either "kmix" or "alsamixer" and turn your pcm volume up and enable it (it is muted by default).
All .wav's play now, even the one recorded from the mic.
I tried the nocap settings, to no avail, thanks anyway, but as for the Audacity preferences... well, this is pretty freaky. When I look at the hardware settings, I get only ** 1 ** device in the listbox - "/dev/dsp". There are ** NO ** ALSA soundcards in the list! I ** WAS ** able to get mic recording, though, in Audacity, after running kmix as NOT root.
So I'm a lot happier now, but almost as ignorant as before... guess I need to learn how Audacity thinks about hardware, and how priviledges affect sound resources.
I'm grateful for the help, foo_bar_foo & linuxles!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.