]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - sound/soc/samsung/i2s.c
ASoC: SAMSUNG: Fix the incorrect referencing of I2SCON register
[mv-sheeva.git] / sound / soc / samsung / i2s.c
index d00ac3a7102c892196061af29a5d9bd0d3a5a1af..992a732b5211bccb5385256eaf37ff887259ee0a 100644 (file)
@@ -15,9 +15,8 @@
 #include <linux/clk.h>
 #include <linux/io.h>
 
-#include <sound/pcm.h>
-#include <sound/pcm_params.h>
 #include <sound/soc.h>
+#include <sound/pcm_params.h>
 
 #include <plat/audio.h>
 
@@ -192,7 +191,7 @@ static inline bool tx_active(struct i2s_dai *i2s)
        if (!i2s)
                return false;
 
-       active = readl(i2s->addr + I2SMOD);
+       active = readl(i2s->addr + I2SCON);
 
        if (is_secondary(i2s))
                active &= CON_TXSDMA_ACTIVE;
@@ -224,7 +223,7 @@ static inline bool rx_active(struct i2s_dai *i2s)
        if (!i2s)
                return false;
 
-       active = readl(i2s->addr + I2SMOD) & CON_RXDMA_ACTIVE;
+       active = readl(i2s->addr + I2SCON) & CON_RXDMA_ACTIVE;
 
        return active ? true : false;
 }