[pulseaudio-discuss] [PATCH] alsa-card: do not return early in init_jacks when no jacks are found
Maarten Lankhorst
maarten.lankhorst at canonical.com
Tue Apr 2 02:43:57 PDT 2013
This will allow init_eld_ctls to succeed even when no jacks are found.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
---
diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index 3b96cea..822f9c9 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -487,9 +490,6 @@ static void init_jacks(struct userdata *u) {
pa_log_debug("Found %d jacks.", pa_hashmap_size(u->jacks));
- if (pa_hashmap_size(u->jacks) == 0)
- return;
-
u->mixer_fdl = pa_alsa_fdlist_new();
u->mixer_handle = pa_alsa_open_mixer(u->alsa_card_index, NULL, &u->hctl_handle);
More information about the pulseaudio-discuss
mailing list