LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-19-2008, 04:57 AM   #1
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Rep: Reputation: 0
Problem with sound


I am using Dell inspiron 1525 laptop with Fedora 10. I have problem with recording from external mic. When I connect the external mic, it is not active. Always internal mic of the laptop used for recording because of which recording quality is low. How to enable external mic?

My alsa mixer always shows recording capture and mux with red buttons means not active. I have to uncheck every time? Is this problem with sound card configuration?
 
Old 12-19-2008, 05:02 AM   #2
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
This is the result of /sbin/lspci


00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
02:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
02:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
02:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
02:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
02:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 12)
0b:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
 
Old 12-21-2008, 04:34 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
alsactl store
or
alsactl restore

To keep / save / restore your current settings. Baring any overrides from the other mixer applications. kmix, gmix, aumix, .......

From whence is the "external" source? USB mic? USB/Firewire Soundcard? Mystical Fairies? ???

Most apps default to card 0 (as shows in /proc/asound/cards). Many recording apps let you override this default. But some don't. Need more information to determine which applies.
 
Old 12-22-2008, 01:31 AM   #4
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your reply. Which information do you require.


I am working on speech recognition. I am using sphinx developed at CMU for speech recognition. Earlier I was using Fedora 9 (kernel 2-6-25-14). That time sphinx was working fantastic. When I record there is not any background noise.


I upgraded kernel to 2.6.27.7-53. recently. Then My alsa mixer configuration is totally changed. From then onwards, the recordings have lots of external noise but I am able to record without external headphone mic also.

I am not using pulse audio at all in both cases.


Then I recently installed Fedora 10. In this OS also I removed all pulse audio rpms. I installed all alsa rpms from livna and atrpms. I am able to play real player or vlc without any problem.

When I start recording, if there is lots of external noise because of the internal mic taking outside noise. This effects my speech recognition performance a lot.

Even if I connect external headphone mic, the internal mic with laptop is active taking external noise. Also in volume control options->recording tab-> all capture and mux options are not active when i restart recording. This is not the case earlier in fedora 9.


What extra information you want please tell me? I will reply soon.


Thank you for your quick reply.
 
Old 12-22-2008, 01:50 AM   #5
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I am testing my recordings using audacity or gnome sound recorder. Both are behaving same way.
 
Old 12-22-2008, 02:56 AM   #6
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
http://www.alsa-project.org/db/?f=b7...e7fdcb820b841b


Here is my alsa information.
 
Old 12-24-2008, 12:57 AM   #7
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Please give me reply
 
Old 12-31-2008, 05:39 AM   #8
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Why nobody is replying to me?
 
Old 12-31-2008, 05:40 AM   #9
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Please reply to me?
 
Old 12-31-2008, 06:17 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
any samples to hear what you're hearing?

Sounds like you have your mixer settings a little off. Mic Boost plus low mic gain? In alsamixer use <tab><tab> to show ALL mixer channels. Since it defaults to playback, with one <tab> to show capture channels.

For audio you really need a low latency kernel, and probably realtime priority (/etc/security/limits.conf) to achieve best results. Without a low latency kernel you get some gaps in the recording when other apps and processes chew up resources. Without realtime priority you get clicks and other audio artifacts when using other devices like the network card at the same time. Beyond that there really shouldn't be any reason for your audio to sound worse between "upgrades".

As far as background noise. That's a given for laptops and integrated soundcards. Which if you're developing a product is probably your target market. But if you're an audio guy like me, you've already gone for a pro/semi-pro low noise soundcard, and a quality microphone preamp and microphone. At which point background noise outside of wind noise, or ambient room noise is the least of your worries.

Any amixer output? How does it compare to previous more cooperative installs (if you still have access to one)?

$ cat /proc/asound/cards

$ lspci

$ amixer

tack on " > tempfile.txt" to capture the infomation for cut and paste ease from a text editor (bluefish). Or tack on " 2>&1 | tee tempfile.txt" for slightly more information depending on the task.

HTH
 
Old 01-01-2009, 07:14 AM   #11
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
cat /proc/asound/cards

0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfe9fc000 irq 21
 
Old 01-01-2009, 07:14 AM   #12
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Side',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Playback Source',0
Capabilities: enum
Items: 'Digital Playback' 'ADAT' 'Analog Mux 1' 'Analog Mux 2' 'Analog Mux 3'
Item0: 'Digital Playback'
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 14 [100%] [21.00dB] [on]
Front Right: Capture 14 [100%] [21.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 14 [100%] [21.00dB] [on]
Front Right: Capture 14 [100%] [21.00dB] [on]
Simple mixer control 'Capture',2
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 14 [100%] [21.00dB] [on]
Front Right: Capture 14 [100%] [21.00dB] [on]
Simple mixer control 'Analog Loopback',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 120 [100%] [30.00dB]
Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Digital Input Source',0
Capabilities: enum
Items: 'Analog Inputs' 'Digital Mic 1' 'Digital Mic 2'
Item0: 'Digital Mic 1'
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line'
Item0: 'Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line'
Item0: 'Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line'
Item0: 'Mic'
Simple mixer control 'Mux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 4 [100%] [40.00dB]
Front Right: Capture 4 [100%] [40.00dB]
Simple mixer control 'Mux',1
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 4 [100%] [40.00dB]
Front Right: Capture 4 [100%] [40.00dB]
Simple mixer control 'Mux',2
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 4 [100%] [40.00dB]
Front Right: Capture 4 [100%] [40.00dB]
Simple mixer control 'Swap Center/LFE',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
 
Old 01-01-2009, 07:18 AM   #13
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Hello Sir,

I don't have access to old configuration. The outputs you have asked I posted here. There is lot of crackling noise background when I use alsa. I think its mostly problem with either alsa drivers or alsa configuration.




Alsa drivers installed


alsa-oss-devel-1.0.17-1.fc10.i386
alsa-tools-firmware-1.0.17-1.fc10.i386
alsa-plugins-oss-1.0.18-1.rc3.fc10.i386
alsa-lib-1.0.18-6.rc3.fc10.i386
alsa-firmware-1.0.17-1.fc10.noarch
alsa-oss-libs-1.0.17-1.fc10.i386
alsa-utils-1.0.18-3.rc3.fc10.i386
alsa-oss-1.0.17-1.fc10.i386
alsa-plugins-jack-1.0.18-1.rc3.fc10.i386
alsa-lib-devel-1.0.18-6.rc3.fc10.i386
 
Old 01-01-2009, 07:20 AM   #14
manojabala
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I am thankful to you for your kind reply.
 
Old 01-01-2009, 04:07 PM   #15
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Is there some reason you have all of your levels set to 100%? A lot of consumer cards sound horridly bad if you crest 85%. Especially with regards to laptops. I tend to set mic gain at about 70% depending on the level I need with/without mic boost. If it's a signal strength issue to power your speakers, then consider getting an amplified set of speakers. Or a headphone preamp to boost the signal to your speakers. Certain headphones pretty much require a headphone preamp just to function as intended.

Try adding these to your /etc/security/limits.conf file and rebooting, or re-login.

@audio - rtprio 99
@audio - nice -20
@audio - memlock 65536

That should enable realtime priority for users in the audio group. Which should help get rid of clicks that happen during xruns and other issues that crop up with a multi-tasking computer. Also try NOT to drape your mic cable across your LCD or CRT display. Shielding only does so much in a strong RFI / EMI environment.

You might also try other recording applications. There's time when audacity does those strange noises for me, where ardour with jackd wont. And the hda-intel chipset is particularly prone to issue with it's development status and wide range of implementations. I think I had to increase the periods (whatever they are) when using arecord to overcome some noise issues. -p 3 (defaults to 2) or something like that. Or was it -n 3, it doesn't seem to be an arecord option in current renditions. Must have been moved to .asoundrc only or something. Anyway, it was specific to my snd-hda-intel type card MCP61? and part of my motivation for getting a pro-ish after market sound card.
 
  


Reply



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
general problem ... rhel 5 everything of sound card got configured but no sound raaki_88 Linux - Enterprise 3 08-13-2008 08:30 AM
fc6 sound card problem(SigmaTel STAC9200),no sound,who can help me? weller Linux - Laptop and Netbook 4 02-10-2008 08:19 AM
Sound problem at openSuSE 10.2. Sound card unidentified perfectly Fakhri Linux - Hardware 0 04-29-2007 10:01 PM
i have problem with sound in ATI SB600 chipset,i not hear sound on it jodiedupri Linux - Hardware 0 01-26-2007 08:30 AM
Sound problem after installing/uninstalling JACK sound server bastupungen Linux - Software 1 02-28-2004 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:27 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
Open Source Consulting | Domain Registration