Posted May 11, 2012 20:27 UTC (Fri) by krakensden (subscriber, #72039)
Parent article: PulseAudio 2.0 released
I'm a little confused about jack detection- Ubuntu and Fedora have detected when things are plugged in to a jack and redirected sound output for a while now.
Posted May 11, 2012 21:04 UTC (Fri) by apoelstra (subscriber, #75205)
[Link]
Are you sure you don't just mean the hardware switch most headphone jacks have to cut off speaker output?
I think you'll find it's a bit more complicated than that
Posted May 12, 2012 11:12 UTC (Sat) by tialaramex (subscriber, #21167)
[Link]
Although this was traditionally hardware (or perhaps some firmware burned permanently onto a ROM somewhere) on modern hardware it is more often software. There are a mind-boggling variety of possible ways to have things work, and as usual in the PC industry and in embedded systems the manufacturers have chosen "all of the above" occasionally even on a model by model basis.
So there may or may not be multiple outputs, it may or may not be possible to drive more than one at once, and they may or may not be physically capable of being driven at different levels (ie independent volume controls), and each may or may not have, require or support a separate PCM stream, and the physical hardware ports used may or may not be re-used between configurations including more than two speakers ("home cinema") microphone or line in.
The ALSA drivers may, or may not, enable some or all of these features on specific hardware depending on whether somebody got the hardware reference sheets for the chipset and for the specific implementation (a lot of these chips have a handful of GPIO pins whose purpose of course the PC makers feel free to change on a whim) and then PulseAudio may or may not make use of the features exposed by ALSA.
I think that ALSA has in some cases done the work of switching amplifiers on and off automatically on jack detection, but this work on PulseAudio means that PA will notice the jack insertion too, so that my desktop volume settings (which I currently must turn up when using speakers and then quickly turn down if I plug in headphones) might some day soon Just Work⢠remembering how they were set when I last had things plugged in this way.
Another cute thing you can do in userspace is demonstrated by Android (and most similar phone software, but Android is Linux-based and I happen to have an Android handset to verify this). When you unplug the headphones from a device, it may make sense to pause playback rather than move the sound to speakers.
I think you'll find it's a bit more complicated than that
Posted May 13, 2012 0:03 UTC (Sun) by drag (subscriber, #31333)
[Link]
Yes Android is aware of your audio I/O and will try to react accordingly. When you turn off your bluetooth headset or unplug your wired headset it will try to stop the music. Depends on the app...
Another nice thing it does, of course, is when you receive a phone call it mutes all audio output and pauses music if possible. Then it will resume once you hang up.
It's not perfect. Not all applications honor the stop/start commands you can issue through bluetooth devices, or plugged-in headsets. Sometimes android will start up music after I hang up a phone call even though I didn't have music playing before the phone call. Sometimes when you issue start/stop events the default music player will grab those rather then the app that is actually making audio at the time. Just odd things like that every once and a while.
But for the most part it works.
I think you'll find it's a bit more complicated than that
Posted May 13, 2012 6:24 UTC (Sun) by alankila (subscriber, #47141)
[Link]
Yeah, this is entirely up to the application afaik. You can write a program that still continues playing music in the background while the user receives a phonecall. (I know this because this is currently a bug in one music player I have written, haven't bothered to fix it though.) There's nothing that *android* specifically does about it, I'm afraid.
PulseAudio 2.0 released
Posted May 11, 2012 22:04 UTC (Fri) by xtifr (subscriber, #143)
[Link]
I'm confused about whether they're referring to jackaudio (aka libjack) or physical plugs.
PulseAudio 2.0 released
Posted May 11, 2012 22:58 UTC (Fri) by adamgundy (subscriber, #5418)
[Link]
With PulseAudio 1.0, we added infrastructure to loosely support the concept of "ports", which are meant to be mapped to actual supported audio paths (read: physical outputs like your speaker or 3.5mm jack). These needed to be dealt with manually, and thus were not too interesting to users. With PulseAudio 2.0 and a recent Linux kernel (3.3.0 or higher), we now automatically detect whether a jack is plugged in to your device or not, and act accordingly. Currently, this buys us the ability to manage volumes for different outputs separately, and future work will allow more advanced features like easing the set up of multichannel output, etc.
PulseAudio 2.0 released
Posted May 13, 2012 2:06 UTC (Sun) by xtifr (subscriber, #143)
[Link]
Ah nifty. Unfortunately, I've been avoiding kernel 3.x until I can find out for sure whether it still supports my completely-open-source-friendly-but-old G400 that still runs fine (on its third motherboard). I heard a rumor they were dropping support, for some reason, but I hate to waste money replacing something that still seems to meet all my needs.
PulseAudio 2.0 released
Posted May 13, 2012 4:03 UTC (Sun) by vonbrand (subscriber, #4458)
[Link]
Ever considered that just building your own 3.x kernel and testing is a real cheap way to find out? Or grab a random LiveCD with it, and look?
(Sheesh)
PulseAudio 2.0 released
Posted May 13, 2012 14:10 UTC (Sun) by tialaramex (subscriber, #21167)
[Link]
Not sure I would have described the G400 (Matrox G400 right?) as open-source friendly. IIRC Matrox used to ship a black box binary that was needed to make various features work, without it you got a 2D framebuffer and some quality DACs, which aren't very relevant at this point because everybody is upgrading to digital video...
On my Fedora 16 box with 3.3.4, I seem to have a kernel module named 'mga' which claims to be for "Matrox G200/G400" and requires binary firmware I don't have (I probably have a G400 somewhere but no slot to put it in) but I
- don't know for sure that this works with your specific model (of course)
- don't know if it enables sufficient features to make a modern glitzy UI work properly, e.g. GNOME 3
PulseAudio 2.0 released
Posted Jun 12, 2012 16:19 UTC (Tue) by xtifr (subscriber, #143)
[Link]
Nope, I assure you, as a member of Debian, I did my research before buying this card, and it was one of the very few with full open-source support for 3d acceleration at the time. No blobs involved.