pulseaudio/src
Hui Wang 6d41b93cdb switch-on-port-available: checking the off profile when switching profile
If the current active profile is off, it has no sinks and sources, and
if users plug a headset to the audio port, the profile including this
audio port becomes available and should be selected as active profile.

But with the current design, the profile_good_for_output() will return
false because the sources in off profile and target profile doesn't
match.

For example:
(Before users plug headset)
Profiles:
         HiFi (Speaker): Default (sinks: 1, sources: 1, priority: 8100, available: no)
         HiFi (Headphones): Default (sinks: 1, sources: 1, priority: 8200, available: no)
         off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: off

(After users plug headset)
Profiles:
         HiFi (Speaker): Default (sinks: 1, sources: 1, priority: 8100, available: yes)
         HiFi (Headphones): Default (sinks: 1, sources: 1, priority: 8200, available: yes)
         off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: off

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/354>
2021-01-18 17:51:49 +00:00
..
daemon module-devd-detect: new module for soundcard hotplug on FreeBSD 2021-01-18 16:33:53 +00:00
modules switch-on-port-available: checking the off profile when switching profile 2021-01-18 17:51:49 +00:00
pulse util: implement pa_get_binary_name on FreeBSD without procfs requirement 2021-01-18 16:33:53 +00:00
pulsecore pulsecore: remove ancient __FreeBSD_version < 600000 code 2021-01-18 16:33:53 +00:00
tests atomic-test: unbreak on FreeBSD (cpuset_t) 2021-01-18 16:33:53 +00:00
utils padsp: fix build on FreeBSD (use same ioctl signature as glibc) 2021-01-18 16:33:53 +00:00
.gitignore gitignore: Ignore hashmap-test 2020-08-06 14:34:56 +03:00
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile.am win32: Fix WSAStartup issues 2021-01-13 03:16:06 +00:00
map-file message-params: Add read functions for arrays 2020-12-03 14:41:39 +00:00
meson.build build-sys: meson: add execinfo dependency for FreeBSD 2021-01-18 16:33:53 +00:00