Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old June 29th, 2006   #1
ashrack
100% Pure Ubuntu
 
Join Date: Dec 2005
Beans: 755
Ubuntu 6.06
Microphone not working

I've Hercules Fortissimo II record sound from my MIC. Microphone works as when I choose microphone as the recording source from alsamixer I can hear sound thru the loudspeakers. Problem is that I can't record this sound. Gnome-sound-recorder just hangs on recording or produces a file of 4 bytes. Arecord also hangs and produces the same kind of 4b file even when going to INIT 1. Needless to say nor SKYPE or WENGO works.

So then I installed the SOX package and tried to record with 'REC' which comes with the package and with it it works. It clearly records everything I say into the MIC.

So afterwards I compiled latest ALSA-utils-libs-drivers 1.0.12, thinking there must be a problem with ALSA since it works with SOX but it still doesnt work.

In alsamixer I've set the following 3 channels to "capture": MIC, CAPTURE, and ADC and of course I had to unmute and set levels. As per this guide:
http://alsa.opensrc.org/index.php?page=cs46xx

lspci -v:
Code:
0000:01:0a.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
       Subsystem: Hercules: Unknown device a010
       Flags: bus master, slow devsel, latency 32, IRQ 201
       Memory at e6100000 (32-bit, non-prefetchable) [size=4K]
       Memory at e6000000 (32-bit, non-prefetchable) [size=1M]
       Capabilities: [40] Power Management version 2
ps. I've tried this GUIDE:
http://ubuntuguide.org/wiki/Dapper#H...perly_in_GNOME
but after it just gives me this error when lunching arecord:
Code:
ALSA lib pcm_dmix.c:762:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:544: audio open error: Invalid argument
Opened up a bug report here:
https://launchpad.net/distros/ubuntu...ils/+bug/58364
and here:
http://sourceforge.net/mailarchive/f...&forum_id=1751
__________________
Notebook Compaq Evo N610c
Pentium 4 1,8 * 512MB RAM * 80GB HDD * Radeon 7500 32MB dedicated vRAM.
http://folding.extremeoverclocking.c...shrack&t=37766

Last edited by ashrack; September 2nd, 2006 at 05:10 AM.. Reason: During the past days I found some new interesting information about my problem, and thus my previous message was obsolete.
ashrack is offline   Reply With Quote
Old June 30th, 2006   #2
ashrack
100% Pure Ubuntu
 
Join Date: Dec 2005
Beans: 755
Ubuntu 6.06
Re: Microphone not working

continuoing disscussion from http://www.ubuntuforums.org/showthread.php?t=195219


Quote:
Originally Posted by gratefulfrog
have you checked the asla mixer settings to be sure that the mic is the "capture" device...

try
Code:
$ alsamixer
and play with the settings, test with the sound recorder, with no sound using devices started (rebooot first to be sure that you're clean). You'll probably have to enable "mic boost" to get the vu to a reasonable level.

When you get it working, be sure to set up dsp hijacker script to prevent skype from hogging the dsp device. You can find that at: http://195.38.3.142:6502/skype/

good luck, let us know if it works!
GF.
http://gratefulfrog.net
When trying to record something using the GNOME's 'second recorder' it freezes. this is how I have alsa mixer set up:
Click image for larger version

Name:	Volume Control: Sound Fusion CS46xx (Alsa mixer).png
Views:	211
Size:	19.1 KB
ID:	11965
__________________
Notebook Compaq Evo N610c
Pentium 4 1,8 * 512MB RAM * 80GB HDD * Radeon 7500 32MB dedicated vRAM.
http://folding.extremeoverclocking.c...shrack&t=37766

Last edited by ashrack; June 30th, 2006 at 03:33 AM..
ashrack is offline   Reply With Quote
Old June 30th, 2006   #3
AiBo
Just Give Me the Beans!
 
AiBo's Avatar
 
Join Date: Dec 2005
Location: Beijing, PRC
Beans: 49
Ubuntu Intrepid Ibex (testing)
Re: Microphone not working

Just downloaded the new skype.

Echo test sounds great, but I cannot seem to get it to pick up my voice. I am using a IBM Thinkpad T22 with a built in original sound card setup. The mic picks up, I can hear it through the speakers when I speak into it, but I do not think it is capturing the sound.

I have enabled everything in Volume Control. I have tried both ALSA and OSS. Same problem with both.

It would be great if I could solve this problem. We are a small company with a number of people using IBM Thinkpad T22. I have been trying to move our company over to Ubuntu. I have managed to convince one person, but his willingness is fading quickly as skype is needed for some of our international business.

I have encounter the same problem when I run skype thru wine. Although if I boot into window$ everything works like a charm.

Thanks in advance for any help any of you may be able to give!
AiBo is offline   Reply With Quote
Old June 30th, 2006   #4
AiBo
Just Give Me the Beans!
 
AiBo's Avatar
 
Join Date: Dec 2005
Location: Beijing, PRC
Beans: 49
Ubuntu Intrepid Ibex (testing)
Re: Microphone not working

Oh...and I used the same audio set up you posted in the graphic....very interesting when I do the echo test the capture volume automatically drops itself all the way to the bottom...by itself! Why? Could it be part of the problem?
AiBo is offline   Reply With Quote
Old July 2nd, 2006   #5
gratefulfrog
A Carafe of Ubuntu
 
Join Date: Jan 2005
Beans: 113
Re: Microphone not working

Ok, Here's a test procedure:
1. disable skype,
2. reboot and ensure that you've not started any programs using sound,
3. open a shell,
4. try the alsa recorder "arecord" and record from the mic a test file: Type the following, then speak into the mic for 2-3 seconds at most, and hit Ctrl-C
Code:
$ arecord test.wav
5. check that the file exists: this should tell you that you created a big file
Code:
$ ls -al test.wav
... file size and permission info ...
$ file toto.wav
...file type info...
6. play it back with alsaplayer in the shell window:
Code:
$ aplay test.wav
If this all works then you're almost there! If it doesn't,
are you plugging the mic directly into the sound card on the back of the PC, or on the "convenient" front plug? If you have both, try both before panicking

Now, if you're still not there, read the man page for alsamixer and use it to set the capture device to the mic and the mic boost on, this is not a graphic tool like you showed in one of the previous messages. It runs from the shell and requires keystroke entry.
Code:
$ alsamixer -Va
This should tell you the name of your sound card and you can scroll using the arrow keys untill you come to the mic which should be have MM at the base, and Captur in Red, the volume should be around 75, then to the right of that you should see Mic Boost which should be green OO and mic select set to Mic1, if you have a front panel mic and want to use it, you should see it there too and set it to OO by use of the M key (read "$ man alsamixer" for full instructions).

This should make it work. Remember DO NOT START SKYPE during the tests and config, once you get arecord and aplay to work properly, then skype should work too (set it to use /dev/dsp as BOTH sound devices).

Let me know if you make progress!
Cheers,
GF
gratefulfrog is offline   Reply With Quote
Old July 3rd, 2006   #6
ashrack
100% Pure Ubuntu
 
Join Date: Dec 2005
Beans: 755
Ubuntu 6.06
Re: Microphone not working

No progress here.
The test file is always the same no matter what I set in ALSAMIXER:
Code:
-rw-r--r-- 1 tom users 1489 2006-07-03 17:46 test.wav
And I supply U the screnies of ALSA mixer:
Click image for larger version

Name:	Screenshot-tom@tomi: ~.png
Views:	130
Size:	44.4 KB
ID:	12171

Click image for larger version

Name:	Screenshot-tom@tomi: ~-1.png
Views:	116
Size:	36.0 KB
ID:	12172

ps. When speaking to the MIC I can hear myself in the loud speakers. So the MIC apperantly is working.
__________________
Notebook Compaq Evo N610c
Pentium 4 1,8 * 512MB RAM * 80GB HDD * Radeon 7500 32MB dedicated vRAM.
http://folding.extremeoverclocking.c...shrack&t=37766
ashrack is offline   Reply With Quote
Old July 3rd, 2006   #7
gratefulfrog
A Carafe of Ubuntu
 
Join Date: Jan 2005
Beans: 113
Re: Microphone not working

ok, we're making progress!

Did you manage to "arecord" the test.wav file? it looks to me from your "ls -al" output that the file is too small to contain genuine audio.

Did you manage to play the test.wav file with "aplay"?

If so, did it sound ok? loud enough of just barely audible?

When you say the mic is working, you mean what exactly? Can you get sound from the mic into a file on disk? or only hear it on the speakers?

If you can only hear it through the speakers, then its your "capture" settings which are incorrect.

To help debug, please send screen shots of the "alsamixer -Va" output, all the controls, please.

Don't give up! We'll get it working, I'm sure of it!
GF.
gratefulfrog is offline   Reply With Quote
Old July 3rd, 2006   #8
ashrack
100% Pure Ubuntu
 
Join Date: Dec 2005
Beans: 755
Ubuntu 6.06
Re: Microphone not working

[QUOTE=gratefulfrog]ok, we're making progress!

Quote:
Did you manage to "arecord" the test.wav file? it looks to me from your "ls -al" output that the file is too small to contain genuine audio.
that is the file that 'arecord' created. And yes, I left it running for more than 15sec.

Code:
Did you manage to play the test.wav file with "aplay"?
the test.wav file produces no sound

Quote:
When you say the mic is working, you mean what exactly? Can you get sound from the mic into a file on disk? or only hear it on the speakers?
I can only hear it from the speakers.

Quote:
To help debug, please send screen shots of the "alsamixer -Va" output, all the controls, please.
I dont see the need for them since I already posted the CAPTURE and PLAYBACK screenies. And with that switch all I will get is CAPTURE+PLAYBACK. But anyway here they are:
Click image for larger version

Name:	Screenshot-tom@tomi: ~-2.png
Views:	72
Size:	44.2 KB
ID:	12184

Click image for larger version

Name:	Screenshot-tom@tomi: ~-3.png
Views:	63
Size:	39.6 KB
ID:	12185
Quote:
Don't give up! We'll get it working, I'm sure of it!
GF.
thank U for your confidence. I sure hope so
__________________
Notebook Compaq Evo N610c
Pentium 4 1,8 * 512MB RAM * 80GB HDD * Radeon 7500 32MB dedicated vRAM.
http://folding.extremeoverclocking.c...shrack&t=37766
ashrack is offline   Reply With Quote
Old July 3rd, 2006   #9
raditzman
First Cup of Ubuntu
 
Join Date: Nov 2004
Beans: 12
Re: Microphone not working

Hi guys, you know, life is strange in a kind of way, and you know what? Just when a guys I'm working for bought some pc's to build a cybercafe using ubuntu (with cheap international call using skype), guess what happens? They all use the Cirrus Logic CS that doesn't record the microphone.... My guess (from searching the net) is that it is something related to duplex. If anyone has this working, please tell me, the inauguration is close and I'm really frustrated!!!!

P.S. - I've been changing the sound values thru the gnome builtin mixer (showing all the channels, via the Edit->Preferences it has).

Dan
raditzman is offline   Reply With Quote
Old July 4th, 2006   #10
gratefulfrog
A Carafe of Ubuntu
 
Join Date: Jan 2005
Beans: 113
Re: Microphone not working

Ashrack:

I'm about to run out, but here's a few of things to try

Follow the instructions here:
http://ubuntuguide.org/wiki/Dapper#H...perly_in_GNOME

then try the arecord/aplay sequence again, but only for 2 seconds of talking into the mic at most! try "file test.wav" to be sure that you really get a wav audio file

If that still doesn't work try with the alsamixer

- increase the VU on the Capture control: then test again
- unmute the mic control (use the "m" key), then test again.

Another angle is to be sure that all the alsa packages are installed (check on synaptic) but this is not likely to be your pb.

Yet another way of testing is to use the device files.

To Record:
Code:
$ cp /dev/dsp  test.wav
Check it:
Code:
$ ls -al xxx.wav
-rw-r----- 1 xxx xxx 20480 2006-07-04 19:50 test.wav
to playback
Code:
$ cat test.wav > /dev/dsp
If that still fails, and I hope it doesn't, then my remote debugging capabilities are at their limit. The next choice is to go the #ubuntu IRC channel on freenode and ask for help there...

I'll be away from Internet for the next 2 months and am sorry to abandon you without a solution. Please continue to post, whatever happens.

You're not far from a working setup, belive me.
Ciao,
GF.
gratefulfrog is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 10:50 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry