ASoC: SAMSUNG: Fix the incorrect referencing of I2SCON register
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
This commit is contained in:
Родитель
4b80b8c2ee
Коммит
33195500ed
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче