[pulseaudio-discuss] [PATCH v2 6/6] alsa: set availability for (some) unavailable profiles

Alexander E. Patrakov patrakov at gmail.com
Sun Jun 12 16:29:09 UTC 2016


12.06.2016 19:16, Alexander E. Patrakov пишет:
> 10.06.2016 22:55, Tanu Kaskinen пишет:
>> 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
>
> Looks OK to me, too. I was surprised that the only calls to
> pa_card_profile_set_available() were in bluez modules.
>
> Now all that remains is to test it with my hardware, I will do it a bit
> later.
>

The patch series works here as advertised.

-- 
Alexander E. Patrakov


More information about the pulseaudio-discuss mailing list