LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 01-03-2009, 01:42 PM   #1
bvandeenen
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
ALSA: microphone works, but I can't record


Hi all

I am using Kubuntu 8.10, on an Asus Aspire 7730Z laptop. Sound playback is perfect since installation without any hassles, but recording is a different story.

Using alsamixer, I've found out that 'Front Mic' and 'Front Mic Boost' handle the built-in microphone on the top of the screen. I know this by scratching my finger on the mike, and hearing the feedback through the speaker. I can even make it squeal very loudly with audio feedback ;-). So that stuff works.

The simplest recorder for alsa is 'arecord', so I tried

arecord -fdat foo.wav
aplay foo.wav

There's nothing in the file, not the faintest whisper.

acer:/etc/modprobe.d$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 4: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

I've tried with many options of -D hw:0,0 -D hw:0,4 -D plughw:0,0 etc... but still nothing in my foo.wav file.

I've also tried more complicated applications like audacity and ardour2 but still no luck.

My questions:

  • Any specific pointers on how to proceed to get my recording working ? I know about www.alsa-project.org and http://alsa.opensrc.org and I can't find my problem solution there.
  • How does the name 'Front Mic' in alsamixer relate to the channel designation hw:x,y?
  • What is plughw:x,y vs hw:x,y ?
  • How come the microphone is immediately piped to the speakers, how is that linked?

Thanks

Bart

P.S.

In /var/lib/alsa/asound.state I have the following sections related to 'Front Mic'
control.19 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Front Mic Playback Volume'
value.0 27
value.1 27
}
control.20 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 3'
comment.dbmin 0
comment.dbmax 3000
iface MIXER
name 'Front Mic Boost'
value.0 2
value.1 2
}
control.21 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Front Mic Playback Switch'
value.0 false
value.1 false
}


From one post on the web, I have two options in /etc/modprobe.d/
Edit: I've now also tried the same without these options, and the problem is exactly the same
---

My name is bart, I always use that to tag system config file changes
acer:/etc/modprobe.d$ grep -A3 bart *
aliases:# bart
aliases-alias snd-card-0 snd-hda-intel
aliases-alias snd-slot snd-hda-intel
--
alsa-base:# bart
alsa-base-#
alsa-base-options snd-hda-intel model=acer

Last edited by bvandeenen; 01-03-2009 at 02:06 PM. Reason: more info
 
Old 01-03-2009, 03:12 PM   #2
bvandeenen
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Lightbulb getting somewhere

Hi myself

I'm getting somewhere! I'm now recording some hugely distorted sound.

amixer sset Capture cap "Front Mic"
amixer get "Front Mic"
amixer sset Capture noplayback
amixer sset "Front Mic" noplayback
arecord foo.wav
arecord -vv foo.wav
aplay foo.wav

I've found some interesting links:
http://ubuntuforums.org/archive/index.php/t-506515.html
http://alsa.opensrc.org/index.php/Amixer
http://alsa.opensrc.org/index.php/Record_from_mic

All of them point to how to set the capture device onto the microphone, something that apparently can't be done via KMix :-(

The sound still sounds like s**t, but I'll let y'all know when I've got it sorted. I still don't know exactly which magical incantations are needed.

Bart

Last edited by bvandeenen; 01-03-2009 at 03:33 PM. Reason: typos
 
Old 04-09-2009, 01:54 PM   #3
13eastie
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
I have a similar problem with Intrepid on my new Aspire One.

Having installed the ALSA drivers and tested it with gnome sound recorder,

it seems that the fault is only apparent when the file type is set to .wav

I can record successfully from the mike in all the other available formats.

When trying to record a .wav file, the record level indicator is always zero and on going to the ALSA mixer, I find that the mike has been muted. It is only then possible to unmute it after a different file type has been selected.

I'm no nearer to fixing this, but I'd be interested to know whether you have tried any other formats than .wav?
 
Old 04-19-2009, 12:19 AM   #4
threaderslash
Member
 
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
Cool

* Suggestion 1:
Save into any other format, then convert to wav.
http://gimpel.gi.funpic.de/wiki/inde...3/ogg_on_Linux

* Suggestion 2:
I got a similar problem with my microphone while trying to use it for my skype web-conference. It worked, but with no sound, or with a loud noise. The fix was to make the proper set up.

Look how to make the proper kmix setup at:
http://forum.skype.com/index.php?showtopic=66109

After done the tuning - it worked for me.
 
  


Reply

Tags
acer, alsa, laptop


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
Microphone Headset Squealing on Record malar Linux - Hardware 20 05-09-2007 02:53 PM
microphone works in oss but not in alsa galle Linux - Hardware 3 03-15-2007 10:00 AM
Can't record Microphone input tmchardy Linux - Hardware 2 01-12-2006 03:34 AM
Not able to record sound using microphone nosaku Slackware 4 02-05-2005 10:09 AM
Can't record from microphone via krecord on suse 9.1 personal tvphil Linux - Hardware 0 08-16-2004 12:26 AM


All times are GMT -5. The time now is 03:53 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