Skip to content

Commit

Permalink
ASoC: SAMSUNG: Fix the incorrect referencing of I2SCON register
Browse files Browse the repository at this point in the history
If DMA active status should be checked, I2SCON register should be referenced.
In this patch, Fix the incorrect referencing of I2SCON register.

Reported-by : Lakkyung Jung <lakkyung.jung@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
  • Loading branch information
Sangbeom Kim authored and Mark Brown committed Jun 10, 2011
1 parent 4b80b8c commit 3319550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/samsung/i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,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;
Expand Down Expand Up @@ -223,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;
}
Expand Down

0 comments on commit 3319550

Please sign in to comment.