[pulseaudio-commits] src/modules

Arun Raghavan arun at kemper.freedesktop.org
Thu Oct 20 00:53:12 PDT 2011


 src/modules/alsa/module-alsa-card.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 12fe7569932254dcbfff31f41cbd0e71291cfe3a
Author: Tanu Kaskinen <tanu.kaskinen at digia.com>
Date:   Mon Oct 3 18:11:47 2011 +0300

    alsa: Handle the "profile" modarg in module-alsa-card

diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index c3e8824..5bf6480 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -294,6 +294,7 @@ int pa__init(pa_module *m) {
     struct userdata *u;
     pa_reserve_wrapper *reserve = NULL;
     const char *description;
+    const char *profile = NULL;
     char *fn = NULL;
     pa_bool_t namereg_fail = FALSE;
 
@@ -390,6 +391,9 @@ int pa__init(pa_module *m) {
         goto fail;
     }
 
+    if ((profile = pa_modargs_get_value(ma, "profile", NULL)))
+        pa_card_new_data_set_profile(&data, profile);
+
     u->card = pa_card_new(m->core, &data);
     pa_card_new_data_done(&data);
 



More information about the pulseaudio-commits mailing list