summaryrefslogtreecommitdiff
path: root/src/pulsecore/protocol-esound.c
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2015-10-23 13:37:11 +0300
committerTanu Kaskinen <tanuk@iki.fi>2016-06-28 16:55:42 +0300
commita222a07920731f3c4967faccab7469af50b428a4 (patch)
tree75214ad6c2098cc538096a4e22aaaeeda272777a /src/pulsecore/protocol-esound.c
parent0045f552aa866dfef8761ad516da098788471acd (diff)
alsa: set availability for (some) unavailable profiles
The alsa card hasn't so far set any availability for profiles. That caused an issue with some HDMI hardware: the sound card has two HDMI outputs, but only the second of them is actually usable. The unavailable port is marked as unavailable and the available port is marked as available, but this information isn't propagated to the profile availability. Without profile availability information, the initial profile policy picks the unavailable one, since it has a higher priority value. This patch adds simple logic for marking some profiles unavailable: if the profile only contains unavailable ports, the profile is unavailable too. This can be improved in the future so that if a profile contains sinks or sources that only contain unavailable ports, the profile should be marked as unavailable. Implementing that requires adding more information about the sinks and sources to pa_card_profile, however. BugLink: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8448
Diffstat (limited to 'src/pulsecore/protocol-esound.c')
0 files changed, 0 insertions, 0 deletions