From: Marcus Cooper <codekip...@gmail.com>

Signed-off-by: Marcus Cooper <codekip...@gmail.com>
---
 sound/soc/sunxi/sunxi-codec.c | 3 ---
 sound/soc/sunxi/sunxi-codec.h | 2 --
 2 files changed, 5 deletions(-)

diff --git a/sound/soc/sunxi/sunxi-codec.c b/sound/soc/sunxi/sunxi-codec.c
index 1b7f8f1..961efa7 100644
--- a/sound/soc/sunxi/sunxi-codec.c
+++ b/sound/soc/sunxi/sunxi-codec.c
@@ -1256,7 +1256,6 @@ static int snd_sunxi_codec_trigger(struct 
snd_pcm_substream *substream, int cmd)
                case SNDRV_PCM_TRIGGER_START:
                case SNDRV_PCM_TRIGGER_RESUME:
                case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
-                       capture_prtd->state |= ST_RUNNING;
                        codec_capture_start();
                        mdelay(1);
                        codec_wr_control(SUNXI_ADC_FIFOC, 0x1, ADC_FIFO_FLUSH, 
0x1);
@@ -1266,12 +1265,10 @@ static int snd_sunxi_codec_trigger(struct 
snd_pcm_substream *substream, int cmd)
                        codec_capture_stop();
                        break;
                case SNDRV_PCM_TRIGGER_STOP:
-                       capture_prtd->state &= ~ST_RUNNING;
                        codec_capture_stop();
                        sunxi_dma_stop(capture_prtd->params);
                        break;
                case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
-                       capture_prtd->state &= ~ST_RUNNING;
                        sunxi_dma_stop(capture_prtd->params);
                        break;
                default:
diff --git a/sound/soc/sunxi/sunxi-codec.h b/sound/soc/sunxi/sunxi-codec.h
index 99bbd8e..4317f55 100644
--- a/sound/soc/sunxi/sunxi-codec.h
+++ b/sound/soc/sunxi/sunxi-codec.h
@@ -101,8 +101,6 @@ enum m1_codec_config {
 void  __iomem *baseaddr;
 
 #define AUDIO_RATE_DEFAULT     44100
-#define ST_RUNNING             (1<<0)
-#define ST_OPENED              (1<<1)
 
 #define codec_rdreg(reg)           readl((baseaddr+(reg)))
 #define codec_wrreg(reg,val)  writel((val),(baseaddr+(reg)))
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to