-   Linux - Hardware (
-   -   [Ubuntu 12.04] Unable to use integrated microphone and line-in simultaneously (

lunarpolitiks 06-29-2013 04:32 AM

[Ubuntu 12.04] Unable to use integrated microphone and line-in simultaneously

Hi, I'm rather new to Linux, so, please bear with me.

I'm using an HP Pavilion DV4T 4200 CTO notebook, and recently installed Ubuntu 12.04 (kernel 3.5.0-34-generic). Everything works great at this point, except an issue with my audio, I don't know if it's hardware or software based. Whenever I plug an audio cable into the line-in, the integrated mic input stops using the mic, and uses the input from the cable instead, resulting in both recording devices pulling from whatever the cable runs to. The mic does the same, in that when there is no cable plugged in, both input devices pull audio from the microphones (Don't know if it's relevant, but, the integrated mic is actually two microphones, 1 on either side of the camera). For example, if I've been playing xbox, I'll have a cable running from it to the laptop, so I can use headphones in lieu of a headset. If I connect to a teamspeak server, everyone in the channel will hear the xbox instead of my voice, until I unplug the cable, then they can hear me again. Any help is appreciated.

My lspci results: HERE

Originally Posted by jdackle (Post 4985905)
You might want to share how you did it, for future reference of others that might bump onto the same problem. ;)

Quite true, I'm sure this didn't have to be as difficult as it was, if it weren't for the lack of past cases.

Well, then, time for a recap.

I'm the kinda guy that goes poking around in things when he has a problem, so there was a lot of poking and prodding, maybe even a little probing ;p
There was quite a lot of digging through config files, to no success.
However, I did notice that ALSA was detecting my audio hardware as the wrong model, which tells me that they're simply incompatible. So, I went in search of alternatives to ALSA, and found OSS HERE This page contains downloads and useful guides :)
I installed OSS, uninstalled pulse and ALSA, but it still wasn't totally working, so after some googling, I discovered that OSS relies on pulse to work with many ALSA applications.
Reinstalled Pulse, kajiggered some configs to disable some remnants of ALSA, and dove into the incredibly complex body of OSSXMIX, to get all the devices configured properly, all the levels set, and all the sliders slid. With that, bam, got it up and running :) She purrs like a kitten....that has a sinus infection....

Now, I still have the occasional issue, such as the sound straight up not working until I do a restart, and only 1 of the inputs from the mixer shows in applications....but these are things to be dealt with when I'm not nodding I am right now. Oh, and there may be an annoyance with everything being too quiet, but I'm not sure on that yet.

GlennsPref 06-29-2013 06:25 PM


Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
Have you ever been able to do this, stereo mic + stereo line in?

I don't think it's possible without an external mixer.

lunarpolitiks 06-29-2013 08:42 PM

I did use the search, and sifted through quite a lot of audio related posts, but found no solutions.
To be a bit clearer, I don't mean using both inputs in 1 program at once. I might be on teamspeak talking to people, and listening to the line-in at the same time.

GlennsPref 06-30-2013 02:27 AM


Have you ever been able to do this,
I don't think it's possible, consumer audio chips don't have a mixer, or 4 inputs at once, hardware wise. It won't matter what software...

more-often it has one stereo(dual mono) opamp with senser switch,
to detect the impedance of the device and switching to the corresponding input level, line or mic.

[could it be that the 2 mics are usb?]
get sound ports on a usb stick
you could get around it with a usb sound card/stick, real inexpensive way...

lunarpolitiks 07-05-2013 10:10 AM

I am trying to figure out how to explain this as clearly as possible, but failing.
It IS possible, because I do it every day on windows 7. I've got teamspeak using the integrated mic as it's input, and I'm listening to the audio from line-in at the same time. The issue I have is that on Ubuntu, when I plug anything into the line-in, whatever was using the mic starts pulling from the cable, without switching what device it's set to use as input.

On a related note, I'd like to be able to listen to the line-in on Ubuntu without having to use Audacity to do it, but the package to do that in the software center seems to be broken.

Also, I have a cheap USB audio input/output stick, but it doesn't seem to work properly with Linux, as it's only outputting and not in.

GlennsPref 07-05-2013 05:55 PM


but the package to do that in the software center seems to be broken.
can you get the older version from backports(Mageia), or compile from source...

If you can do it in win7 then it should be possible.

lunarpolitiks 07-05-2013 08:07 PM

Got Listen to work :)

Back to the main issue, I noticed in the ALSA mixer that it calls my audio device 'Intel CougarPoint HDMI'.
I'm no expert, but I'm pretty sure that's not right.
I had a realization earlier, as well, the inputs aren't listed as multiple devices in the mixers, just as available ports on the 1 device. I don't know if this is important or not, though.
Also, in Audacity, the only input options listed are 'default' and 'pulse'.
Just a few bits of extra info.

GlennsPref 07-06-2013 09:19 AM

I know you can list the audio hardware in and out with /etc/modprobe.conf

I used to index (index=0) the usb-sound to over-ride the onboard rtl(realtech)sound chip.

Maybe you could search in that direction.

lunarpolitiks 07-06-2013 11:18 AM

Ok...just opened modprobe in terminal, and that is a bit beyond my knowledge of linux >.>
Also, when I plug the usb stick in, the mic and line-in both stop working. I've been thinking, is there a way to reinstall alsa? Just seems like that might work.

GlennsPref 07-06-2013 07:29 PM

The method I am pointing to is where you list the devices, giving priority to one snd card over another.


sudo modprobe -c | grep snd

I simply modified those directions for my system with its two sound cards. So, what I have is

options snd-xxxx index=0
options snd-intel8x0 index=1


lunarpolitiks 07-06-2013 09:25 PM

Played around a bit with alsa-base.conf, but got nowhere.
I did, however, notice a particular line in the grep results(Which, btw, there were a whole lot of), "alias symbol:snd_hda_gen_mic_autoswitch snd_hda_codec".
Seems like that could have something to do with it, but I don't know where that line came from. I couldn't find it in the files in modprobe.d.
Thanks for the support so far, I'm determined to get this fixed.

jdackle 07-06-2013 09:46 PM

You're using Ubuntu 12.04, so the default Sound mixer is PulseAudio (and that's what the "pulse" in Audacity refers to).

You'll also have ALSA installed and that is another Sound mixer but it doesn't handle multiple concurrent sound outputs/inputs that well.
But then again... the usual sound configuration in Ubuntu is for PulseAudio to use ALSA... :D
You can however set ALSA as the default Sound mixer (instead of Pulse) and in that case, that's what Audacity's "default" driver will use... If Pulse is the default (it usually is), then the two choices you have in Audacity are actually the same: PulseAudio.

In short, you'll probably do everything you want if you just run:

That's PulseAudio Volume Control (graphical application)which does a whole lot more than just control volume, i.e. sets devices (default and more), monitors applications using sound devices, etc.
Try and play around with it a bit. ;)

lunarpolitiks 07-06-2013 09:52 PM

I've played with the pulse mixer quite a lot, and gotten nowhere with that.
Is there a better alternative to alsa?

EDIT: Went straight to google after posting, I'm now switching over to OSS, hoping it works.

EDIT 2: PROGRESS!! Audacity now can record from either input whilst the cable is plugged in! Now I just need to get teamspeak and skype working with oss, and I'll be set!

Hello again! Running OSS and Pulse side-by-side, and everything but listening to the input is working great! The OSS mixer is incredibly complex.

jdackle 07-07-2013 08:11 AM

Congratulations on your progress!

If you're using Teamspeak with a Windows game, you might prefer to use the Windows version of Teamspeak through WINE.
Take a look at the report/support page for Teamspeak on the WINE site and specially look at the "notes" everywhere you find them, they'll often provide the most straightforward tips to solve some common issues with Windows software running through WINE.
Teamspeak page one WINE site:

lunarpolitiks 07-07-2013 01:41 PM

I don't really ever use TS for gaming, I just use it as a regular form of coms with a specific group of people, and I got it configured to work anyway.
I think it's time to mark this thread as solved :)

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