]> code.delx.au - pulseaudio/commit
card: Add card profile availability
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Mon, 18 Feb 2013 08:10:31 +0000 (09:10 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Feb 2013 15:36:17 +0000 (17:36 +0200)
commitafd33da56a0b174c43ca44bce21b8ef0efaca1fa
tree0e7f4908f532e0c4c4ab9cf8e99d0bb802c9421a
parent8851644a3c76cf29c8244a19446781cfa1943763
card: Add card profile availability

Some cards are capable to announce if a specific profile is available or
not, effectively predicting whether a profile switch would fail or would
likely succeed. This can for example be useful for a UI that would gray
out any unavailable profile.

In addition, this information can be useful for internal modules
implementing automatic profile-switching policies, such as
module-switch-on-port-available or module-bluetooth-policy.

In particular, this information is essential when a port is associated
to multiple card profiles and therefore the port availability flag does
not provide enough information. The port "bluetooth-output" falls into
this category, for example, since it doesn't distinguish HSP/HFP from
A2DP.
src/pulsecore/card.c
src/pulsecore/card.h
src/pulsecore/core.h