]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/soc/soc-jack.c
Merge branch 'for-3.2' into for-3.3
[karo-tx-linux.git] / sound / soc / soc-jack.c
index fa31d9c2abd8fe29c615f24f64b68f33bb33004f..6c5ebd38c1b0f050f515dbb2dc1c47acaafc1ba4 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/interrupt.h>
 #include <linux/workqueue.h>
 #include <linux/delay.h>
+#include <linux/export.h>
 #include <trace/events/asoc.h>
 
 /**
@@ -188,6 +189,8 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
                list_add(&(pins[i].list), &jack->pins);
        }
 
+       snd_soc_dapm_new_widgets(&jack->codec->card->dapm);
+
        /* Update to reflect the last reported status; canned jack
         * implementations are likely to set their state before the
         * card has an opportunity to associate pins.