Lines Matching refs:stype
41 #define I2SSTAT_BUSY(stype) \
42 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SSTAT_TB : PSC_I2SSTAT_RB)
43 #define I2SPCR_START(stype) \
44 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TS : PSC_I2SPCR_RS)
45 #define I2SPCR_STOP(stype) \
46 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TP : PSC_I2SPCR_RP)
47 #define I2SPCR_CLRFIFO(stype) \
48 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TC : PSC_I2SPCR_RC)
179 static int au1xpsc_i2s_start(struct au1xpsc_audio_data *pscdata, int stype)
194 __raw_writel(I2SPCR_CLRFIFO(stype), I2S_PCR(pscdata));
196 __raw_writel(I2SPCR_START(stype), I2S_PCR(pscdata));
201 while (!(__raw_readl(I2S_STAT(pscdata)) & I2SSTAT_BUSY(stype)) && tmo)
205 __raw_writel(I2SPCR_STOP(stype), I2S_PCR(pscdata));
213 static int au1xpsc_i2s_stop(struct au1xpsc_audio_data *pscdata, int stype)
217 __raw_writel(I2SPCR_STOP(stype), I2S_PCR(pscdata));
222 while ((__raw_readl(I2S_STAT(pscdata)) & I2SSTAT_BUSY(stype)) && tmo)
240 int ret, stype = substream->stream;
245 ret = au1xpsc_i2s_start(pscdata, stype);
249 ret = au1xpsc_i2s_stop(pscdata, stype);