Home
last modified time | relevance | path

Searched refs:pscdata (Results 1 – 2 of 2) sorted by relevance

/sound/soc/au1x/
Dpsc-ac97.c78 struct au1xpsc_audio_data *pscdata = ac97_to_pscdata(ac97); in au1xpsc_ac97_read() local
82 au_writel(PSC_AC97EVNT_CD, AC97_EVNT(pscdata)); in au1xpsc_ac97_read()
87 mutex_lock(&pscdata->lock); in au1xpsc_ac97_read()
90 AC97_CDC(pscdata)); in au1xpsc_ac97_read()
96 if (au_readl(AC97_EVNT(pscdata)) & PSC_AC97EVNT_CD) in au1xpsc_ac97_read()
100 data = au_readl(AC97_CDC(pscdata)); in au1xpsc_ac97_read()
102 au_writel(PSC_AC97EVNT_CD, AC97_EVNT(pscdata)); in au1xpsc_ac97_read()
105 mutex_unlock(&pscdata->lock); in au1xpsc_ac97_read()
119 struct au1xpsc_audio_data *pscdata = ac97_to_pscdata(ac97); in au1xpsc_ac97_write() local
122 au_writel(PSC_AC97EVNT_CD, AC97_EVNT(pscdata)); in au1xpsc_ac97_write()
[all …]
Dpsc-i2s.c57 struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(cpu_dai); in au1xpsc_i2s_set_fmt() local
63 ct = pscdata->cfg; in au1xpsc_i2s_set_fmt()
107 pscdata->cfg = ct; in au1xpsc_i2s_set_fmt()
117 struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai); in au1xpsc_i2s_hw_params() local
123 stat = au_readl(I2S_STAT(pscdata)); in au1xpsc_i2s_hw_params()
126 cfgbits = au_readl(I2S_CFG(pscdata)); in au1xpsc_i2s_hw_params()
128 (params_rate(params) != pscdata->rate)) in au1xpsc_i2s_hw_params()
132 pscdata->cfg &= ~(0x1f << 4); in au1xpsc_i2s_hw_params()
133 pscdata->cfg |= PSC_I2SCFG_SET_LEN(params->msbits); in au1xpsc_i2s_hw_params()
135 pscdata->rate = params_rate(params); in au1xpsc_i2s_hw_params()
[all …]