[SOLVED] [Ubuntu 12.04] Unable to use integrated microphone and line-in simultaneously
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
[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.
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 off...as I am right now. Oh, and there may be an annoyance with everything being too quiet, but I'm not sure on that yet.
Last edited by lunarpolitiks; 07-08-2013 at 02:50 AM.
Reason: Methods to Success
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.
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.
Last edited by lunarpolitiks; 07-05-2013 at 02:06 PM.
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.
Last edited by lunarpolitiks; 07-05-2013 at 09:09 PM.
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.
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.
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...
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.
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: http://appdb.winehq.org/objectManage...ation&iId=4488