pulseaudio/src/modules/alsa
Tanu Kaskinen a222a07920 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
2016-06-28 16:55:42 +03:00
..
mixer alsa-mixer: Support for Creative SoundBlaster Omni Surround 5.1 USB sound card with latest firmware 2016-04-19 16:44:41 +03:00
alsa-mixer.c alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-mixer.h alsa-mixer: Fill in input and output names 2015-11-22 04:59:21 +02:00
alsa-sink.c alsa: reread configuration when opening new devices 2016-06-22 12:55:54 +05:30
alsa-sink.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
alsa-source.c alsa: reread configuration when opening new devices 2016-06-22 12:55:54 +05:30
alsa-source.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
alsa-ucm.c alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-ucm.h alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-util.c alsa: Don't disable timer-based scheduling on USB devices 2015-12-29 06:00:14 +05:30
alsa-util.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
module-alsa-card.c alsa: set availability for (some) unavailable profiles 2016-06-28 16:55:42 +03:00
module-alsa-sink.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
module-alsa-source.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00