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 06-07-2014, 04:49 AM   #1
zunnoorainfarooqui
LQ Newbie
 
Registered: Jan 2013
Location: Torino, Italy
Distribution: Gentoo, CentOS
Posts: 14

Rep: Reputation: Disabled
Builtin mic is not functioning


Hi,

I am using 3.12.13-gentoo 64bit kernel on my sony vaio(Model Number: VPCEB2M1E). Here is my webcam info
Code:
lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0c45:6409 Microdia Webcam
Bus 001 Device 004: ID 0489:e00f Foxconn / Hon Hai Foxconn T77H114 BCM2070 [Single-Chip Bluetooth 2.1 + EDR Adapter]
Bus 002 Device 003: ID 04f3:02f4 Elan Microelectronics Corp. 2.4G Cordless Mouse
I have configured well the webcam and it is working pretty fine with skype. The problem is with the mic. It is not working at all.

Any help

Regards
 
Old 06-07-2014, 07:57 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
open a terminal type alsamixer then press F6 select your webcam then press F4 and make sure the capture it is set up.

also in your favorite GUI mixer you can make sure it is there . If it is in alsamixer and not in your gui then go to settings and add it. If it is a duplex
device then it will have a volume. If it is just a capture device then it will only have a gain and a mic boost level. most have auto gain also.
 
Old 06-07-2014, 08:48 AM   #3
zunnoorainfarooqui
LQ Newbie
 
Registered: Jan 2013
Location: Torino, Italy
Distribution: Gentoo, CentOS
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks for your kind reply.

In alsamixer I select the HDA Intel MID and then press F4 and then set "Mic Boost", "Capture" and "Digital" to 100.

I also try the same thing with gnome-alsa-mixer. but still nothing is working.

I can't record the sound through QARecord or Skype

any idea
 
Old 06-07-2014, 09:02 AM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
it is not the hda ok you need to find this capture device Microdia Webcam and alsamixer will only show that under F4.

in a terminal type arecord -l you should get a read out of your recording devices. here is mine.

Quote:
bash-4.2$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HD2200 [HP Webcam HD-2200], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Headset [HP Digital Stereo Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
these are devices that capture.
another thing some times skype likes to capture it and you are unable to use it in another program.
I had Skype not release my webcam mic after finishing a call also.
if this is a skype sound problem please configure the options/sound device in skype. and remember skype is a 32 bit program so you will need the multi arch libraries to use sound in it. like 32 bit pulseaudio if your system uses pulse. and 32 bit alsa and etc etc.

Last edited by Drakeo; 06-07-2014 at 09:10 AM.
 
Old 06-07-2014, 09:20 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
here is some documentation for Gentoo http://wiki.gentoo.org/wiki/AMD64/FA...an_I_use_it.3F make sure you have the 32 bit alsa your running skype so this tells me you have a multilib profile.
 
Old 06-08-2014, 12:11 PM   #6
zunnoorainfarooqui
LQ Newbie
 
Registered: Jan 2013
Location: Torino, Italy
Distribution: Gentoo, CentOS
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks for your kind assistance

Here is my capture device

Code:
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
I have selected the same device through alsamixer.

As far as concern about the profile, here is my selected profile

Code:
 eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome *
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/developer
  [9]   default/linux/amd64/13.0/no-multilib
  [10]  default/linux/amd64/13.0/x32
  [11]  hardened/linux/amd64
  [12]  hardened/linux/amd64/selinux
  [13]  hardened/linux/amd64/no-multilib
  [14]  hardened/linux/amd64/no-multilib/selinux
  [15]  hardened/linux/amd64/x32
  [16]  hardened/linux/uclibc/amd64
Any solution?

Regards
 
Old 06-08-2014, 12:35 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
this tells me your camera does not have a mic. and it tells me your microphone is on the default device hda. this tells me you need to test it out side of skype to see if it works with this.
Quote:
arecord -f dat -d 20 -D hw:0,0 test.wav
then play back the test.wav if it records then it is working fine. and you need to get 32 bit libraries for your distro for skype. and read up on it.
 
Old 06-08-2014, 12:41 PM   #8
zunnoorainfarooqui
LQ Newbie
 
Registered: Jan 2013
Location: Torino, Italy
Distribution: Gentoo, CentOS
Posts: 14

Original Poster
Rep: Reputation: Disabled
Dear Drakeo,

I do agree with your openion. I recorded the sound and then I played back. But It didn't record anything

Its mean my mic is not working

 
Old 06-09-2014, 01:39 PM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
want you to run this script here is the code make text file name it asoundrc.sh.
and save it the run it like this sh asoundrc.sh

Code:
% cat /usr/bin/asoundrc
#!/bin/bash
# asoundrc v0.1.0 20090101 markc@renta.net GPLv3
# asoundrc v0.2.0 20090320 quatro_por_quatro@yahoo.es GPLv3
#
# A simple script to create a particular default audio device regardless
# of what cards are loaded or in what order. It could be used anytime or
# placed in a ~/.bashrc script for a persistent setup every login.
#
# Usage: asoundrc [DEFAULT_CARD] > ~/.asoundrc

# use the first parameter as the card name, or else
# look for the sound card, discarding those that are only microphones
# when there are multiple cards, use the first one
if default_card="${1:-$(cat "$(for f in $(ls -1 /proc/asound/card[0-9]*/{midi,codec}* 2>/dev/null); do echo "${f%/*}"; done \
| sed -e '\|^[\[:blank:]\]$|d' -e 'q')/id" 2>/dev/null)}"; then
   echo "Using sound card: ${default_card}" >&2 
   cat /proc/asound/card[0-9]*/id | \
   gawk --assign default_card="${default_card}" \
'{print "pcm."$1" { type hw; card "$1"; }\nctl."$1" { type hw; card "$1"; }" }
END {print "pcm.!default pcm."default_card"\nctl.!default ctl."default_card}'
else
   echo "Warning: No sound cards found." >&2
fi


that will tell you your devices ok. Next in a terminal assume root or use the sudo what ever Gentoo does.
and copy paste this in your terminal add sudo if you need to.
Quote:
sudo if needed echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf
this will create a file in /etc/modprobe.d/named snd-hda-intel.conf and make sure all the modules for your card is loaded
at boot time.

next.
that first script actually writes you a .asoundrc file we will not use that yet.

want you to reboot. now open a terminal run your alsamixer and press F5 make sure your mic is captured boost is turn up and mic is turned up.

now open a terminal and run aplay -l that shows the out put devices. now run arecord -l this shows only input devices.

trust me if it made a test.wav for you but you did not hear it this is the reasons your volume is muted or the mic boost or the mic is turn down or it is not
enabled (captured) or you did not speak.

Last edited by Drakeo; 06-09-2014 at 01:57 PM.
 
Old 06-10-2014, 03:29 PM   #10
zunnoorainfarooqui
LQ Newbie
 
Registered: Jan 2013
Location: Torino, Italy
Distribution: Gentoo, CentOS
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks a lot for your help.

I created the asoundrc.sh according to the given script and then I executed it. The following output is generated by the asoundrc.sh file
Code:
./asoundrc.sh  
./asoundrc.sh: line 1: fg: no job control
Using sound card: MID
pcm.MID { type hw; card MID; }
ctl.MID { type hw; card MID; }
pcm.Generic { type hw; card Generic; }
ctl.Generic { type hw; card Generic; }
pcm.!default pcm.MID
ctl.!default ctl.MID
Then I created the /etc/modprobe.d/snd-hda-intel.conf file as you suggested
Code:
cat /etc/modprobe.d/snd-hda-intel.conf 
options snd-hda-intel model=auto
Then I reboot the system and see the loaded module. Here is the list of loaded modules
Code:
Module                   Size    Used by
snd_hda_codec_hdmi       29503    1 
uvcvideo                 70488    0 
videobuf2_vmalloc        2808     1 uvcvideo
videobuf2_memops         1807     1 videobuf2_vmalloc
videobuf2_core           27375    1 uvcvideo
videodev                 104994   2 uvcvideo,videobuf2_core
snd_hda_codec_realtek    39284    1 
snd_hda_intel            29786    3 
radeon                   1263462  2 
drm_kms_helper           28535    1 radeon
ttm                      58171    1 radeon
snd_hda_codec            130571   3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep                5932     1 snd_hda_codec
Here is the list of playpack hardware
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Here is the list of capture hardware
Code:
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Then I execute the following line in order to record the sound
Code:
arecord -f dat -d 20 -D hw:0,0 test.wav
and beleive me I yeild and I also played a song on YouTube but test.wav record nothing

Any help
 
Old 06-12-2014, 05:54 AM   #11
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
so aplay test.wav no output sound very good. now lets tell the output to use the speakers. on that same intel device. want you to go to your /etc/modprobe.d folder.
and in there look for sound.conf or alsa.conf.
in there I would like to see something like this or close to it. this is my intel snd set up. in your alsamixer make sure if you have multiple channels
to try like channel 2 then 4 etc.
here is my intel set up.sound.conf

Quote:
alias char-major-116 snd
alias char-major-14 soundcorealias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel,snd-usb-audio,
this makes my snd-hda-intel the main device it also had midi in it. then any usb sound devices that get plugged in will go to slot 2
then after that your snd_hda_codec_hdmi output midi is for video and that is your graphics card midi output.

Your sound side of the card. make sure in setup bios setup your sound card a pci device is enabled.
then make sure you as a user have audio permissions. If using Pulse same thing you need to be in pulse's group.
if you do not have audio permission the kernel will not let the user hear music only root will.

In the large picture your input out put is your intel HDMI as default but you will not hear sound from it.
it must be the the audio card not the intel graphics card with HDMI midi . that is used for hooking up
to an external display device to do presentations. we need to get it to use the your actual soundcard
snd_hda_intel that is run by snd_hda_codec_realtek.
this is very common problem with laptops that the default device is the snd_hda_codec_hdmi device.

The reason why when you boot your computer the system loads the pci bus first and that graphics card and it's device
is being loaded in to slot one snd_hda_codec_hdmi .
Quote:
assume root or sudo and run lspci | grep -i audio
and post it here then give me your actual laptop make and model.

OK now for the other snd device. you will see you have a generic soundcard. after you have done everything from above.
and have rebooted. If you still are unable to hear sound from say Youtube. then
you ran that script and the ouput actual can create a ~/home .asoundrc file.
you can copy paste it here and place it in your ~/home name it with the dot .asoundrc
Quote:
Using sound card: MID
pcm.MID { type hw; card MID; }
ctl.MID { type hw; card MID; }
pcm.Generic { type hw; card Generic; }
ctl.Generic { type hw; card Generic; }
pcm.!default pcm.MID
ctl.!default ctl.MID
then restart alsa think in gentoo it is. /etc/init.d/alsasound restart
now change
Quote:
pcm.!default pcm.MID
ctl.!default ctl.MID
to
Quote:
pcm.!default pcm.Generic
ctl.!default ctl.Generic
and restart alsasound.

now your default output is the Generic snd card.

Last edited by Drakeo; 06-12-2014 at 08:33 AM. Reason: after system wide. lspci | grep -i audio
 
Old 06-12-2014, 06:49 AM   #12
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
If this works and I hope it does you will be able to run the script after you plug in say a usb headset then set the head set to pcm.!default (your head set) and ctl.!default (your head set) do a alsasound restart. that should work on everything but gmplayer gmplayer will default to a device full soundcard device unless you edit the mplayer.conf file.

if you use a analog plug type of headset then it will turn your sound off and direct it through the headphones. unless you tell your alsamixer of choice to
play sound out all of them. hang in there.
 
Old 06-17-2014, 01:05 PM   #13
zunnoorainfarooqui
LQ Newbie
 
Registered: Jan 2013
Location: Torino, Italy
Distribution: Gentoo, CentOS
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks for your kind explaination, I read it twice or thrice in order to digest it . Anyway thanks to educate me. Lets move to the problem.
Here is my /etc/modprobe.d/alsa.conf
Code:
cat /etc/modprobe.d/alsa.conf 
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
I am the member of the following group on my notebook
Code:
sudo groups user_name
wheel audio cdrom video usb users portage user_name
and I can listen the music, so sound card is working pretty fine.

Here is the lspci -v output(I paste here only audio devices)

Code:
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
	Subsystem: Sony Corporation Device 9071
	Flags: bus master, fast devsel, latency 0, IRQ 43
	Memory at f5e00000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [130] Root Complex Link
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cedar HDMI Audio [Radeon HD 5400/6300 Series]
	Subsystem: Sony Corporation Device 9071
	Flags: bus master, fast devsel, latency 0, IRQ 44
	Memory at f0040000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
I am using sony vaio notebook(model number:VPCEB2M1E). Here is the info about my linux OS

Code:
uname -a
Linux MY-PC 3.14.0 #6 SMP Sun Jun 15 20:33:03 CEST 2014 x86_64 Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz GenuineIntel GNU/Linux
On windows7 I can use skype but on linux the mic(near to the webcam) is not working. I am not using any external headset. The problem is only related to the mic not from the sound.

Any suggestion
 
Old 05-29-2016, 11:40 AM   #14
achim_59
Member
 
Registered: Jan 2009
Location: Huenfeld, Germany
Distribution: Ubuntu 18.04
Posts: 113

Rep: Reputation: 4
Have you solved this problem?

I have a disturbingly similar problem. Disturbing, because my problems also started with skype and there is no solution listed, here... the thread just ends.

I ran most of the tests you did, with much the same result... I have proved that I have a working sound card. I can listen to audio regardless of where it comes from, I simply cannot record over a microphone.

In addition to the info you listed, I have also tried changing the ALSA and pulse audio settings pertaining to the microphone. I did this without any real system to my tinkering, just bumping up volume settings and making sure that nothing is muted. I have also tried using an external microphone attached to my Sennheiser headset. This proved to be futile, because it also resulted in no recording although lsusb did list the device and the ALSA mixer also listed it. Besides, I'd really like to get my internal microphone working.

I will probably start a new thread but I'd really like to know if you solved the problem.

Cheers,
Achim
 
Old 05-30-2016, 12:49 PM   #15
deanfourie
LQ Newbie
 
Registered: May 2016
Posts: 6

Rep: Reputation: Disabled
Install alsamixer, its awesome fixes everything
 
  


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
Problem with the mic on slackware - mic boost on still very quiet adrian2009 Slackware 1 06-09-2009 04:57 PM
Mic problem. Mic bar missing in alsaconf rengo.Java Linux - Hardware 4 02-15-2009 06:02 PM
Mic problems with Ventrilo (wine) - just need help getting the mic on Snipersnest Linux - Software 5 10-14-2008 05:44 AM
microphone problem mic is rear mic and when i rebooted after repair wont work adb0434 Linux - Newbie 2 10-02-2006 12:37 AM
MIC Problem > "Unable to find simple control mic" Balarabay1 SUSE / openSUSE 3 04-09-2006 11:08 PM

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

All times are GMT -5. The time now is 02:11 AM.

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