diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-22 20:56:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-22 21:07:23 -0500 |
commit | 1435b9402fe0fb27ac4ec5bb271112de2c4806c0 (patch) | |
tree | 5c800d20cb3a19668f8dbf35cfc20cd649bd766b /sound/soc | |
parent | 6a504a751124889e0bdbb25963a7edf7aeedb7bd (diff) |
ASoC: ifdef out trace points from modules for x86
No idea why this works on ARM but not x86.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/88pm860x-codec.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm8350.c | 4 | ||||
-rw-r--r-- | sound/soc/codecs/wm8903.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm8962.c | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index a34fb924e77b..3e798a12ee3d 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c | |||
@@ -1263,9 +1263,11 @@ static irqreturn_t pm860x_codec_handler(int irq, void *data) | |||
1263 | mask = pm860x->det.hs_shrt | pm860x->det.hook_det | pm860x->det.lo_shrt | 1263 | mask = pm860x->det.hs_shrt | pm860x->det.hook_det | pm860x->det.lo_shrt |
1264 | | pm860x->det.hp_det; | 1264 | | pm860x->det.hp_det; |
1265 | 1265 | ||
1266 | #ifndef CONFIG_SND_SOC_88PM860X | ||
1266 | if (status & (HEADSET_STATUS | MIC_STATUS | SHORT_HS1 | SHORT_HS2 | | 1267 | if (status & (HEADSET_STATUS | MIC_STATUS | SHORT_HS1 | SHORT_HS2 | |
1267 | SHORT_LO1 | SHORT_LO2)) | 1268 | SHORT_LO1 | SHORT_LO2)) |
1268 | trace_snd_soc_jack_irq(dev_name(pm860x->codec->dev)); | 1269 | trace_snd_soc_jack_irq(dev_name(pm860x->codec->dev)); |
1270 | #endif | ||
1269 | 1271 | ||
1270 | if ((pm860x->det.hp_det & SND_JACK_HEADPHONE) | 1272 | if ((pm860x->det.hp_det & SND_JACK_HEADPHONE) |
1271 | && (status & HEADSET_STATUS)) | 1273 | && (status & HEADSET_STATUS)) |
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 82d877df3fb0..db07137bf3b9 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -1379,12 +1379,16 @@ static irqreturn_t wm8350_hp_jack_handler(int irq, void *data) | |||
1379 | 1379 | ||
1380 | switch (irq - wm8350->irq_base) { | 1380 | switch (irq - wm8350->irq_base) { |
1381 | case WM8350_IRQ_CODEC_JCK_DET_L: | 1381 | case WM8350_IRQ_CODEC_JCK_DET_L: |
1382 | #ifndef CONFIG_SND_SOC_WM8350_MODULE | ||
1382 | trace_snd_soc_jack_irq("WM8350 HPL"); | 1383 | trace_snd_soc_jack_irq("WM8350 HPL"); |
1384 | #endif | ||
1383 | jack = &priv->hpl; | 1385 | jack = &priv->hpl; |
1384 | break; | 1386 | break; |
1385 | 1387 | ||
1386 | case WM8350_IRQ_CODEC_JCK_DET_R: | 1388 | case WM8350_IRQ_CODEC_JCK_DET_R: |
1389 | #ifndef CONFIG_SND_SOC_WM8350_MODULE | ||
1387 | trace_snd_soc_jack_irq("WM8350 HPR"); | 1390 | trace_snd_soc_jack_irq("WM8350 HPR"); |
1391 | #endif | ||
1388 | jack = &priv->hpr; | 1392 | jack = &priv->hpr; |
1389 | break; | 1393 | break; |
1390 | 1394 | ||
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index b32699bc1927..02de5ae42d63 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c | |||
@@ -1534,8 +1534,10 @@ static irqreturn_t wm8903_irq(int irq, void *data) | |||
1534 | mic_report = wm8903->mic_last_report; | 1534 | mic_report = wm8903->mic_last_report; |
1535 | int_pol = snd_soc_read(codec, WM8903_INTERRUPT_POLARITY_1); | 1535 | int_pol = snd_soc_read(codec, WM8903_INTERRUPT_POLARITY_1); |
1536 | 1536 | ||
1537 | #ifndef CONFIG_SND_SOC_WM8903_MODULE | ||
1537 | if (int_val & (WM8903_MICSHRT_EINT | WM8903_MICDET_EINT)) | 1538 | if (int_val & (WM8903_MICSHRT_EINT | WM8903_MICDET_EINT)) |
1538 | trace_snd_soc_jack_irq(dev_name(codec->dev)); | 1539 | trace_snd_soc_jack_irq(dev_name(codec->dev)); |
1540 | #endif | ||
1539 | 1541 | ||
1540 | if (int_val & WM8903_MICSHRT_EINT) { | 1542 | if (int_val & WM8903_MICSHRT_EINT) { |
1541 | dev_dbg(codec->dev, "Microphone short (pol=%x)\n", int_pol); | 1543 | dev_dbg(codec->dev, "Microphone short (pol=%x)\n", int_pol); |
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index a24f83d604c9..b311b465c4d8 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3354,7 +3354,9 @@ static irqreturn_t wm8962_irq(int irq, void *data) | |||
3354 | if (active & (WM8962_MICSCD_EINT | WM8962_MICD_EINT)) { | 3354 | if (active & (WM8962_MICSCD_EINT | WM8962_MICD_EINT)) { |
3355 | dev_dbg(codec->dev, "Microphone event detected\n"); | 3355 | dev_dbg(codec->dev, "Microphone event detected\n"); |
3356 | 3356 | ||
3357 | #ifndef CONFIG_SOUND_SOC_WM862_MODULE | ||
3357 | trace_snd_soc_jack_irq(dev_name(codec->dev)); | 3358 | trace_snd_soc_jack_irq(dev_name(codec->dev)); |
3359 | #endif | ||
3358 | 3360 | ||
3359 | pm_wakeup_event(codec->dev, 300); | 3361 | pm_wakeup_event(codec->dev, 300); |
3360 | 3362 | ||