Lines Matching refs:priv
75 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_spk_ev() local
94 if (!priv->spk_ena && manual_ena) { in arizona_spk_ev()
96 priv->spk_ena_pending = true; in arizona_spk_ev()
110 if (priv->spk_ena_pending) { in arizona_spk_ev()
113 priv->spk_ena_pending = false; in arizona_spk_ev()
114 priv->spk_ena++; in arizona_spk_ev()
119 priv->spk_ena--; in arizona_spk_ev()
120 if (!priv->spk_ena) in arizona_spk_ev()
129 if (!priv->spk_ena) in arizona_spk_ev()
194 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_init_spk() local
195 struct arizona *arizona = priv->arizona; in arizona_init_spk()
522 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_in_set_vu() local
531 for (i = 0; i < priv->num_inputs; i++) in arizona_in_set_vu()
540 struct arizona_priv *priv = snd_soc_codec_get_drvdata(w->codec); in arizona_in_ev() local
550 priv->in_pending++; in arizona_in_ev()
556 priv->in_pending--; in arizona_in_ev()
557 if (priv->in_pending == 0) { in arizona_in_ev()
608 struct arizona_priv *priv = snd_soc_codec_get_drvdata(w->codec); in arizona_hp_ev() local
624 priv->arizona->hp_ena &= ~mask; in arizona_hp_ev()
625 priv->arizona->hp_ena |= val; in arizona_hp_ev()
628 if (priv->arizona->hpdet_magic) in arizona_hp_ev()
660 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_set_opclk() local
668 refclk = priv->sysclk; in arizona_set_opclk()
672 refclk = priv->asyncclk; in arizona_set_opclk()
709 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_set_sysclk() local
710 struct arizona *arizona = priv->arizona; in arizona_set_sysclk()
721 clk = &priv->sysclk; in arizona_set_sysclk()
727 clk = &priv->asyncclk; in arizona_set_sysclk()
970 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_startup() local
971 struct arizona_dai_priv *dai_priv = &priv->dai[dai->id - 1]; in arizona_startup()
977 base_rate = priv->sysclk; in arizona_startup()
980 base_rate = priv->asyncclk; in arizona_startup()
1004 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_hw_params_rate() local
1005 struct arizona_dai_priv *dai_priv = &priv->dai[dai->id - 1]; in arizona_hw_params_rate()
1052 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_hw_params() local
1053 struct arizona *arizona = priv->arizona; in arizona_hw_params()
1136 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_dai_set_sysclk() local
1137 struct arizona_dai_priv *dai_priv = &priv->dai[dai->id - 1]; in arizona_dai_set_sysclk()
1201 int arizona_init_dai(struct arizona_priv *priv, int id) in arizona_init_dai() argument
1203 struct arizona_dai_priv *dai_priv = &priv->dai[id]; in arizona_init_dai()