Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th March 2012, 11:42 PM
rosshid Offline
Registered User
 
Join Date: Mar 2012
Location: Utah
Posts: 2
linuxfirefox
PulseAudio listen to line in and mic simultaneously

Hi all,

I'm trying to get pulseaudio in Fedora 16 to capture both the line-in and mic ports on an intel-hda (ALC889A) - alsa & windows have no problem capturing all three source ports (inputs) on the card but pulseaudio is proving more difficult. Line in is connected to a set top box, and mic is connected to a internet enabled TV. In pavucontrol, under input devices, my internal analog stereo card shows up, but only one port can be selected (Line in, Microphone 1, or Microphone 2) - so I can only hear (using loopback module) line in OR mic input, not both.

If it's not possible to use pulseaudio to capture from both ports simultaneously, then figuring out how to switch the port from the commandline would help. That way I can use LIRC's irexec to switch the port remotely, so I don't have to fumble around with pavucontrol everytime I switch devices.
pacmd list-sources

arecord -l


It seems only one port can be active at a time, meaning I can only listen to one port at a time. This has to be pretty common, considering most cards are capable of capturting from multiple sources - #pulseaudio on freenode had no idea on how to do this.

Any help is greatly appreciated.
Reply With Quote
  #2  
Old 1st May 2012, 05:18 PM
Thetargos's Avatar
Thetargos Offline
Registered User
 
Join Date: May 2004
Location: Mexico City, Mexico
Age: 35
Posts: 4,419
linuxfirefox
Re: PulseAudio listen to line in and mic simultaneously

I am trying to achieve something similar, but only with the Line-In port, and I noticed that I coudln't hear what is being captured on the port, unless I "recorded" it and played it back. How did you manage to capture and listen?

It would be very interesting to actually know how to do what you originally inquired about.
__________________
If ain't broken, don't fix it! :eek:
If can be improved, go for it! :cool:

FedoraForum Community forums lurker.
Fedora user since RHL 5.2 :cool:

Systems: Laptop, Main System, Netbook.
Reply With Quote
  #3  
Old 4th June 2012, 09:24 PM
rosshid Offline
Registered User
 
Join Date: Mar 2012
Location: Utah
Posts: 2
linuxchrome
Re: PulseAudio listen to line in and mic simultaneously

To listen to an input source in pulseaudio is simple -

Code:
[user@host dir]$ pacmd load-module module-loopback
Then in pavucontrol under playback select "Show all" and find the loopback module, then select your output sink, in the record tab, select "Show All", select your input source. You can also put the "load-module module-loopback" command in /etc/pulse/default.pa .

The problem I'm having is that my sound card has multiple inputs, only one of which can be selected at any one time. Luckily I hooked up an HDMI with audio to a new STB I have, and now my TV mixes the STB and it's own audio on the audio output on the TV. I also hacked together a bash script which is executed by irexec using my TV remote which changes the source port on button press. Here's the script:

pulse-toggle-port.sh:


and this is in .lircrc:

Code:
begin
  prog = irexec
  button = KEY_MEDIA_REPEAT
  config = /home/user/.lirc/pulse-toggle-port.sh
end
Reply With Quote
Reply

Tags
line, linein, listen, mic, pulseaudio, simultaneously

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F13 Audio Issue (Pulseaudio/listen/ALSA) on Intel HDA mdeliberto Using Fedora 3 30th October 2010 07:19 AM
Adding line-in to pulseaudio theedge981 Using Fedora 2 9th May 2010 02:28 PM
Screening line-in with PulseAudio on F11 madopal Using Fedora 1 17th October 2009 10:55 PM
Line in and PulseAudio PeTzZz Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 5 10th April 2009 06:09 PM


Current GMT-time: 05:51 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat