[RFC PATCH 23/24] sound: imx-pcm-fiq: replace fiq enable/disable interface with irq apis

Venkatraman S svenkatr at ti.com
Tue Aug 23 15:31:35 UTC 2011


From: Venkatraman S <venkat at linaro.org>

The underlying implementation in enable_fiq/disable_fiq uses
the irqs anyway, so use them directly.

Signed-off-by: Venkatraman S <venkat at linaro.org>
---
 sound/soc/imx/imx-pcm-fiq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/imx/imx-pcm-fiq.c b/sound/soc/imx/imx-pcm-fiq.c
index 413b78d..7f12b4b 100644
--- a/sound/soc/imx/imx-pcm-fiq.c
+++ b/sound/soc/imx/imx-pcm-fiq.c
@@ -138,7 +138,7 @@ static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
 		hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns),
 		      HRTIMER_MODE_REL);
 		if (++fiq_enable == 1)
-			enable_fiq(imx_pcm_fiq);
+			enable_irq(imx_pcm_fiq + FIQ_START);
 
 		break;
 
@@ -148,7 +148,7 @@ static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
 		atomic_set(&iprtd->running, 0);
 
 		if (--fiq_enable == 0)
-			disable_fiq(imx_pcm_fiq);
+			disable_irq(imx_pcm_fiq + FIQ_START);
 
 		break;
 	default:
-- 
1.7.1




More information about the linaro-dev mailing list