Lines Matching refs:priv
596 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_spklo_spk_amp_event() local
600 priv->shutdwn_delay = 150; in cs42l73_spklo_spk_amp_event()
612 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_ear_amp_event() local
616 if (priv->shutdwn_delay < 50) in cs42l73_ear_amp_event()
617 priv->shutdwn_delay = 50; in cs42l73_ear_amp_event()
630 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_hp_amp_event() local
634 if (priv->shutdwn_delay < 30) in cs42l73_hp_amp_event()
635 priv->shutdwn_delay = 30; in cs42l73_hp_amp_event()
990 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_set_mclk() local
1005 priv->mclksel + 1, cs42l73_mclkx_coeffs[mclkx_coeff].mclkx, in cs42l73_set_mclk()
1008 dmmcc = (priv->mclksel << 4) | in cs42l73_set_mclk()
1013 priv->sysclk = mclkx_coeff; in cs42l73_set_mclk()
1014 priv->mclk = mclk; in cs42l73_set_mclk()
1023 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_set_sysclk() local
1040 priv->mclksel = clk_id; in cs42l73_set_sysclk()
1048 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_set_dai_fmt() local
1113 priv->config[id].spc = spc; in cs42l73_set_dai_fmt()
1114 priv->config[id].mmcc = mmcc; in cs42l73_set_dai_fmt()
1161 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_pcm_hw_params() local
1166 if (priv->config[id].mmcc & MS_MASTER) { in cs42l73_pcm_hw_params()
1170 cs42l73_get_mclk_coeff(priv->mclk, srate); in cs42l73_pcm_hw_params()
1177 id, priv->mclk, srate, in cs42l73_pcm_hw_params()
1180 priv->config[id].mmcc &= 0xC0; in cs42l73_pcm_hw_params()
1181 priv->config[id].mmcc |= cs42l73_mclk_coeffs[mclk_coeff].mmcc; in cs42l73_pcm_hw_params()
1182 priv->config[id].spc &= 0xFC; in cs42l73_pcm_hw_params()
1184 if (priv->mclk >= 6400000) in cs42l73_pcm_hw_params()
1185 priv->config[id].spc |= MCK_SCLK_64FS; in cs42l73_pcm_hw_params()
1187 priv->config[id].spc |= MCK_SCLK_MCLK; in cs42l73_pcm_hw_params()
1190 priv->config[id].spc &= 0xFC; in cs42l73_pcm_hw_params()
1191 priv->config[id].spc |= MCK_SCLK_64FS; in cs42l73_pcm_hw_params()
1194 priv->config[id].srate = srate; in cs42l73_pcm_hw_params()
1196 snd_soc_write(codec, CS42L73_SPC(id), priv->config[id].spc); in cs42l73_pcm_hw_params()
1197 snd_soc_write(codec, CS42L73_MMCC(id), priv->config[id].mmcc); in cs42l73_pcm_hw_params()