Changes since v1: - Fixes according to David Henningsson's comments - Use card_new hook instead of card_put when settling on a profile - Make pa_alsa_availability_from_jacks() expect a pa_dynarray* for the jacks. Update callers in alsa-mixer.c and module-alsa-card.c Mario Sanchez Prada (1): Don't settle on a card profile if it doesn't have any available port src/modules/alsa/alsa-mixer.c | 21 +++++++++ src/modules/alsa/alsa-util.c | 60 +++++++++++++++++++++++++ src/modules/alsa/alsa-util.h | 2 + src/modules/alsa/module-alsa-card.c | 65 ++++++++------------------- src/modules/module-switch-on-port-available.c | 54 ++++++++++++++++++++++ 5 files changed, 156 insertions(+), 46 deletions(-) -- 2.1.0