pulseaudio/src
Tanu Kaskinen 4c6843f020 sink, source: update the default sink/source on port switches
When sinks are compared during the default sink selection, the active
port's availability is inspected. Therefore, the default sink should be
updated when the active port changes, because the new port may have
different availability status than the old port.

For example, let's say that a laptop has an analog sink with a speaker
and a headphone port, and headphones are initially plugged in, so both
ports can be used[1]. The headphone port is initially the active port.
There's also a null sink in the system. When the headphones are
unplugged, the headphone port becomes unavailable, and the null sink
becomes the new default sink. Then module-switch-on-port-available
changes the analog sink port to speakers. Now the default sink should
change back to the analog sink, but that doesn't happen without this
patch.

[1] Actually we currently mark speakers as unavailable when headphones
are plugged in, but that's not strictly necessary. My example relies on
both ports being available initially, so the bug can't be reproduced
with the current mixer configuration.
2017-05-17 23:05:04 +03:00
..
daemon sink, source: Add a mode to avoid resampling if possible 2017-01-30 13:54:43 +05:30
modules bluez5-device: Correctly handle suspend/resume cyle for audio gateway role of ofono backend 2017-05-04 13:14:51 +02:00
pulse volume: Fix overflow in percent calculation of pa_*volume_snprint*() 2017-04-29 10:38:05 +02:00
pulsecore sink, source: update the default sink/source on port switches 2017-05-17 23:05:04 +03:00
tests thread-test: fix deadlock 2017-01-26 07:56:54 +02:00
utils build: Use #ifdef to check for #defines 2017-03-08 14:31:29 +01:00
.gitignore pulse: Add a JSON-parsing library 2016-06-22 21:04:47 +05:30
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile.am build-sys: FlatCarbon is dead. Good riddance. 2017-02-27 16:45:49 +02:00
map-file volume: Add LFE balance API 2015-10-30 09:13:10 +02:00