LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Webcam integrated microphone in dv6-3013nr (https://www.linuxquestions.org/questions/linux-hardware-18/webcam-integrated-microphone-in-dv6-3013nr-890828/)

photoelectricgeek 07-09-2011 02:59 PM

Webcam integrated microphone in dv6-3013nr
 
Hello and thanks ahead of time for your help.

I'm running Ubuntu 11.04 on my HP dv6-3013nr that came with Windows 7 64-bit.(now it's simply a linux system)

Product Spec's from HP website

I was setting up google video chat and discovered that the internal webcam worked fine but the microphone either wasn't being recognized or wasn't receiving input for some reason. I tried recording in the default sound recorder app that comes with Ubuntu with the same result.

My first thought was to check the HP website for drivers, but in the specifications I saw that my laptop has a, "HP TrueVision Webcam with integrated digital microphone," and there was nothing more than webcam drivers listed.

I'm not sure where to go from here, but I guess that's why I made a forum post; any ideas?

P.S. (The webcam runs perfectly fine regarding video)

Peacedog 07-09-2011 07:21 PM

Hi photoelectricgeek, Welcome to LQ. It's likely a matter of telling the software which device to use for recording or input. Please post the output from the following.

Code:

$ sudo cat /proc/asound/card0/codec#* | grep Codec
$ arecord -l

Good luck. ;-)

photoelectricgeek 07-09-2011 08:36 PM

1 Attachment(s)
Quote:

patrick@dv6-3013nr:~$ sudo cat /proc/asound/card0/codec#* | grep Codec
[sudo] password for patrick:
Codec: IDT 92HD81B1X5
patrick@dv6-3013nr:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Output attached as a png

Sorry for the delayed response, I've been doing some stuff around the house and didn't get the notification but it's not a huge rush. No outstanding need for the mic just yet but I'd like to get it up and running.

Peacedog 07-09-2011 09:59 PM

Okay, looks like your mic is card 0, device 0. Can you record from any application?

Good luck. ;-)

photoelectricgeek 07-09-2011 10:45 PM

Well I've tried recording in sound recorder and gmail's voice chat but I'll download audacity and see if it records.

EDIT: Audacity didn't work either. Still no sound.

Peacedog 07-10-2011 07:59 AM

Sounds (no pun intended) like your mic just isn't configured. Please post the output from the following.

Code:

$ cat /etc/modprobe.d/alsa-base.conf
What does alsamixer or any mixer say about the mic?

Good luck. ;-)

photoelectricgeek 07-10-2011 03:40 PM

I would post the output but after running that code the mic worked. :)

Thanks for the help.

Peacedog 07-11-2011 10:00 PM

Glad you got it sorted.

Good luck. ;-)

photoelectricgeek 07-13-2011 12:29 PM

weird.
The mic was working fine after I ran some of those things you told me to enter in Terminal but now after a system restart it's no longer recognizing the microphone in chrome or the sound recorders.

Here's the output to the last code you gave...

Quote:

patrick@dv6-3013nr:~$ cat /etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

Peacedog 07-14-2011 06:22 PM

Try adding one of the following options to /etc/modprobe.d/alsa-base.conf

Code:

options snd-hda-intel model=ref
options snd-hda-intel model=auto
options snd-hda-intel model=hp

Add each option one at a time to see if any of those work. After each change, restart, the open alsamixer and see what's working. If any of these work, you can stop there.

Good luck. ;-)

Jimi-James 07-21-2012 07:52 PM

I have the exact same problem with the exact same webcam (on an HP Touchsmart tm2-2150us) and the exact same terminal output, with one difference: my mic didn't randomly start working again after typing those commands. I tried the instructions in the post above mine, but they didn't work for me. They all changed what was in alsamixer, but my mic still failed to record no matter what settings I set the new channels to.

I'm running Kubuntu 12.04, and my mic did work in 11.04.

Peacedog 08-02-2012 09:44 PM

Hi Jimi-James, Welcome to LQ. Sorry it took so long to get back to you here. Could you please post the results from the commands in the above posts #2 & #6?

Good luck. ;-)

Jimi-James 08-02-2012 09:52 PM

Code:

~$ sudo cat /proc/asound/card0/codec#* | grep Codec
Codec: IDT 92HD81B1X5
Codec: Intel IbexPeak HDMI
jimi@Death-Book:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
~$ cat /etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
~$


Peacedog 08-03-2012 08:29 PM

Try adding the following to the end of /etc/modprobe.d/alsa-base.conf

Code:

options snd-hda-intel model=auto
Save and close the file, then restart the services or reboot and see if you have any additional mixer options for the mic.

Good luck. ;-)

Jimi-James 08-03-2012 08:51 PM

I don't have any additional mixer options when I do that (I did press F4 to see the capture devices).

Peacedog 08-04-2012 12:31 PM

What capture devices are available, have you tried those?

Good luck. ;-)

Jimi-James 08-04-2012 11:29 PM

I've tried them. They won't work.

Peacedog 08-06-2012 08:38 PM

What software are you trying to record with? Are you setting the recording software to 0,0 for the hardware? What does "alsa default" or just "default" produce when recording? Do you have a "digital mic" option in your mixer?

Good luck. ;-)

Jimi-James 08-06-2012 10:26 PM

I forgot to mention last time, my capture devices are Mic, Capture, Digital Mic, and Internal Mic, and they're all muted when I start up my computer until I turn them back up, which I assume is because they can't detect the hardware.

I'm using Audacity and Kamoso (like Cheese but for KDE) to test the mic. Kamoso won't tell me or let me choose what audio device to use, but Audacity is set to "default" and I've also been trying 0,0. Neither one works.

Peacedog 08-07-2012 08:40 PM

There are a few options for you to try there, for instance, my mic only works correctly when I choose the following options:

Mic Jack Mode - Mic In
Input Source - Digital Mic

It took several days and a lot of frustration before I found the combination that worked. I would give those options a look.

Good luck. ;-)

Jimi-James 08-08-2012 12:09 AM

Where's the Input Source setting? I haven't seen it.

Peacedog 08-08-2012 08:49 PM

It's in my mixer settings for Kmix, I actually have two separate channels, input source 1 & 2. Which ALSA version are you running?

Code:

cat /proc/asound/version
Good Luck. ;-)

Jimi-James 08-08-2012 09:28 PM

I'm on 1.0.24, and I'm not seeing an Input Source option in Kmix. Also, YES!!! Alsamixer couldn't do it, but Kmix has an option called "Capture" that makes the mic work when I check it. The two mic sliders in Kmix are Mic and Internal Mic. It's looking like Mic is my microphone and Internal Mic is some kind of extra boost on the mic volume I can turn on. It just makes the mic so loud that it's distorted, so I'll be leaving it all the way down. The Mic Jack Mode doesn't make a difference.

While we're on the subject of microphones in Linux, I noticed a possibly-capture device in Kmix called Digital (probably corresponding to Digital Mic in ALSA). My laptop doesn't have separate headphone and microphone jacks--it instead has an all-in-one jack that seems to be designed for headsets. I've Googled this kind of jack in the past, but I couldn't find any answers: what's the state of support for this kind of jack in Linux? Would it work on a mic or a headset if I just turned the Digital slider up?

Peacedog 08-08-2012 10:02 PM

Well, I'd try it and see, that's just how I roll though. =D I prefer to try things, break things, then fix them. Sounds like you're sorted. If not, just let us know what isn't working.

Good luck. ;-)


All times are GMT -5. The time now is 10:17 AM.