struct snd_dmaengine_dai_dma_data idma_playback;
dma_filter_fn filter;
u32 quirks;
- u32 suspend_i2smod;
- u32 suspend_i2scon;
- u32 suspend_i2spsr;
const struct samsung_i2s_variant_regs *variant_regs;
spinlock_t *lock;
/* Rate of RCLK source clock */
unsigned long rclk_srcrate;
+ /* Cache of selected I2S registers for system suspend */
+ u32 suspend_i2smod;
+ u32 suspend_i2scon;
+ u32 suspend_i2spsr;
+
/* The clock provider's data */
struct clk *clk_table[3];
struct clk_onecell_data clk_data;
struct samsung_i2s_priv *priv = dev_get_drvdata(dev);
struct i2s_dai *i2s = samsung_i2s_get_pri_dai(dev);
- i2s->suspend_i2smod = readl(i2s->addr + I2SMOD);
- i2s->suspend_i2scon = readl(i2s->addr + I2SCON);
- i2s->suspend_i2spsr = readl(i2s->addr + I2SPSR);
+ priv->suspend_i2smod = readl(i2s->addr + I2SMOD);
+ priv->suspend_i2scon = readl(i2s->addr + I2SCON);
+ priv->suspend_i2spsr = readl(i2s->addr + I2SPSR);
if (priv->op_clk)
clk_disable_unprepare(priv->op_clk);
}
}
- writel(i2s->suspend_i2scon, i2s->addr + I2SCON);
- writel(i2s->suspend_i2smod, i2s->addr + I2SMOD);
- writel(i2s->suspend_i2spsr, i2s->addr + I2SPSR);
+ writel(priv->suspend_i2scon, i2s->addr + I2SCON);
+ writel(priv->suspend_i2smod, i2s->addr + I2SMOD);
+ writel(priv->suspend_i2spsr, i2s->addr + I2SPSR);
return 0;
}