LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-29-2013, 04:32 AM   #1
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Rep: Reputation: Disabled
[Ubuntu 12.04] Unable to use integrated microphone and line-in simultaneously


Quote:
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
Quote:
Originally Posted by jdackle View Post
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 01:50 AM. Reason: Methods to Success
 
Old 06-29-2013, 06:25 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Quote:
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.
 
Old 06-29-2013, 08:42 PM   #3
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-30-2013, 02:27 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Quote:
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...

Last edited by GlennsPref; 06-30-2013 at 02:37 AM. Reason: get sound ports on a usb stick
 
Old 07-05-2013, 10:10 AM   #5
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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 01:06 PM.
 
Old 07-05-2013, 05:55 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Quote:
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.
 
Old 07-05-2013, 08:07 PM   #7
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.

Last edited by lunarpolitiks; 07-05-2013 at 08:09 PM.
 
Old 07-06-2013, 09:19 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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.
 
Old 07-06-2013, 11:18 AM   #9
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-06-2013, 07:29 PM   #10
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

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

Code:
sudo modprobe -c | grep snd
Quote:
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
ref. https://bbs.archlinux.org/viewtopic....599170#p599170

hth's
 
Old 07-06-2013, 09:25 PM   #11
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-06-2013, 09:46 PM   #12
jdackle
Member
 
Registered: Apr 2010
Distribution: Debian, LMDE
Posts: 40

Rep: Reputation: 11
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:
Code:
pavucontrol
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.
 
Old 07-06-2013, 09:52 PM   #13
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.

Last edited by lunarpolitiks; 07-07-2013 at 01:09 AM. Reason: Whee!
 
Old 07-07-2013, 08:11 AM   #14
jdackle
Member
 
Registered: Apr 2010
Distribution: Debian, LMDE
Posts: 40

Rep: Reputation: 11
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:
http://appdb.winehq.org/objectManage...ation&iId=4488
 
Old 07-07-2013, 01:41 PM   #15
lunarpolitiks
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Webcam integrated microphone in dv6-3013nr photoelectricgeek Linux - Hardware 23 08-08-2012 10:02 PM
Alienware M15X and Karmic: Webcam and Integrated Microphone tstrike Linux - Laptop and Netbook 4 03-07-2010 11:33 AM
usb webcam with integrated microphone wastingtime Linux - Hardware 0 10-19-2008 01:35 PM
Microphone issues on Intel integrated audio CWizard Linux - Hardware 1 10-18-2005 02:27 PM
Philips Usb Webcam - Microphone Integrated pingouinux Linux - Hardware 4 08-02-2004 04:07 PM


All times are GMT -5. The time now is 09:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration