ASoC: Yet more x86 tracepoint workarounds
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 29 Dec 2010 13:05:21 +0000 (13:05 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 29 Dec 2010 13:06:18 +0000 (13:06 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/88pm860x-codec.c
sound/soc/codecs/wm8350.c
sound/soc/codecs/wm8994.c

index 5da8207a696185fdb2e2920228993cfcd5c9b66d..06b6981b8d6d6e87aa8519113d936946412246e4 100644 (file)
@@ -1262,7 +1262,7 @@ static irqreturn_t pm860x_codec_handler(int irq, void *data)
        mask = pm860x->det.hs_shrt | pm860x->det.hook_det | pm860x->det.lo_shrt
                | pm860x->det.hp_det;
 
-#ifndef CONFIG_SND_SOC_88PM860X
+#ifndef CONFIG_SND_SOC_88PM860X_MODULE
        if (status & (HEADSET_STATUS | MIC_STATUS | SHORT_HS1 | SHORT_HS2 |
                      SHORT_LO1 | SHORT_LO2))
                trace_snd_soc_jack_irq(dev_name(pm860x->codec->dev));
index db07137bf3b9d7bf1d67f77720d14f75cbcbb8c6..6d6dc9efe9145d0f044d4e39762f52c9a9aca2af 100644 (file)
@@ -1463,7 +1463,9 @@ static irqreturn_t wm8350_mic_handler(int irq, void *data)
        u16 reg;
        int report = 0;
 
+#ifndef CONFIG_SND_SOC_WM8350_MODULE
        trace_snd_soc_jack_irq("WM8350 mic");
+#endif
 
        reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS);
        if (reg & WM8350_JACK_MICSCD_LVL)
index 067a532bed1506067e360d0bda5a90e28aa32184..247a6a99feb8f8cb4d8249e5e83764b897fba15f 100644 (file)
@@ -2756,7 +2756,9 @@ static irqreturn_t wm8994_mic_irq(int irq, void *data)
        int reg;
        int report;
 
+#ifndef CONFIG_SND_SOC_WM8994_MODULE
        trace_snd_soc_jack_irq(dev_name(codec->dev));
+#endif
 
        reg = snd_soc_read(codec, WM8994_INTERRUPT_RAW_STATUS_2);
        if (reg < 0) {
@@ -2904,7 +2906,9 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
                goto out;
        }
 
+#ifndef CONFIG_SND_SOC_WM8994_MODULE
        trace_snd_soc_jack_irq(dev_name(codec->dev));
+#endif
 
        if (wm8994->jack_cb)
                wm8994->jack_cb(reg, wm8994->jack_cb_data);