Lines Matching refs:rtd
75 struct i2s_stream_instance *rtd; in acp3x_i2s_hwparams() local
84 rtd = substream->runtime->private_data; in acp3x_i2s_hwparams()
90 rtd->i2s_instance = pinfo->play_i2s_instance; in acp3x_i2s_hwparams()
92 rtd->i2s_instance = pinfo->cap_i2s_instance; in acp3x_i2s_hwparams()
99 rtd->xfer_resolution = 0x0; in acp3x_i2s_hwparams()
102 rtd->xfer_resolution = 0x02; in acp3x_i2s_hwparams()
105 rtd->xfer_resolution = 0x04; in acp3x_i2s_hwparams()
108 rtd->xfer_resolution = 0x05; in acp3x_i2s_hwparams()
114 switch (rtd->i2s_instance) { in acp3x_i2s_hwparams()
125 switch (rtd->i2s_instance) { in acp3x_i2s_hwparams()
137 val = rv_readl(rtd->acp3x_base + reg_val); in acp3x_i2s_hwparams()
138 rv_writel(val | 0x2, rtd->acp3x_base + reg_val); in acp3x_i2s_hwparams()
139 rv_writel(adata->tdm_fmt, rtd->acp3x_base + frmt_reg); in acp3x_i2s_hwparams()
141 val = rv_readl(rtd->acp3x_base + reg_val); in acp3x_i2s_hwparams()
143 val = val | (rtd->xfer_resolution << 3); in acp3x_i2s_hwparams()
144 rv_writel(val, rtd->acp3x_base + reg_val); in acp3x_i2s_hwparams()
151 struct i2s_stream_instance *rtd; in acp3x_i2s_trigger() local
155 rtd = substream->runtime->private_data; in acp3x_i2s_trigger()
164 rtd->bytescount = acp_get_byte_count(rtd, in acp3x_i2s_trigger()
167 switch (rtd->i2s_instance) { in acp3x_i2s_trigger()
184 switch (rtd->i2s_instance) { in acp3x_i2s_trigger()
201 rv_writel(period_bytes, rtd->acp3x_base + water_val); in acp3x_i2s_trigger()
202 rv_writel(buf_size, rtd->acp3x_base + buf_reg); in acp3x_i2s_trigger()
203 val = rv_readl(rtd->acp3x_base + reg_val); in acp3x_i2s_trigger()
205 rv_writel(val, rtd->acp3x_base + reg_val); in acp3x_i2s_trigger()
206 rv_writel(1, rtd->acp3x_base + ier_val); in acp3x_i2s_trigger()
213 switch (rtd->i2s_instance) { in acp3x_i2s_trigger()
223 switch (rtd->i2s_instance) { in acp3x_i2s_trigger()
232 val = rv_readl(rtd->acp3x_base + reg_val); in acp3x_i2s_trigger()
234 rv_writel(val, rtd->acp3x_base + reg_val); in acp3x_i2s_trigger()
236 if (!(rv_readl(rtd->acp3x_base + mmACP_BTTDM_ITER) & BIT(0)) && in acp3x_i2s_trigger()
237 !(rv_readl(rtd->acp3x_base + mmACP_BTTDM_IRER) & BIT(0))) in acp3x_i2s_trigger()
238 rv_writel(0, rtd->acp3x_base + mmACP_BTTDM_IER); in acp3x_i2s_trigger()
239 if (!(rv_readl(rtd->acp3x_base + mmACP_I2STDM_ITER) & BIT(0)) && in acp3x_i2s_trigger()
240 !(rv_readl(rtd->acp3x_base + mmACP_I2STDM_IRER) & BIT(0))) in acp3x_i2s_trigger()
241 rv_writel(0, rtd->acp3x_base + mmACP_I2STDM_IER); in acp3x_i2s_trigger()