Lines Matching refs:wm8900

757 	struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec);  in wm8900_set_fll()  local
760 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll()
773 wm8900->fll_in = freq_in; in wm8900_set_fll()
774 wm8900->fll_out = freq_out; in wm8900_set_fll()
782 wm8900->fll_in = freq_in; in wm8900_set_fll()
783 wm8900->fll_out = freq_out; in wm8900_set_fll()
1126 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); in wm8900_suspend() local
1127 int fll_out = wm8900->fll_out; in wm8900_suspend()
1128 int fll_in = wm8900->fll_in; in wm8900_suspend()
1138 wm8900->fll_out = fll_out; in wm8900_suspend()
1139 wm8900->fll_in = fll_in; in wm8900_suspend()
1148 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); in wm8900_resume() local
1153 ret = regcache_sync(wm8900->regmap); in wm8900_resume()
1162 if (wm8900->fll_out) { in wm8900_resume()
1163 int fll_out = wm8900->fll_out; in wm8900_resume()
1164 int fll_in = wm8900->fll_in; in wm8900_resume()
1166 wm8900->fll_in = 0; in wm8900_resume()
1167 wm8900->fll_out = 0; in wm8900_resume()
1241 struct wm8900_priv *wm8900; in wm8900_spi_probe() local
1244 wm8900 = devm_kzalloc(&spi->dev, sizeof(struct wm8900_priv), in wm8900_spi_probe()
1246 if (wm8900 == NULL) in wm8900_spi_probe()
1249 wm8900->regmap = devm_regmap_init_spi(spi, &wm8900_regmap); in wm8900_spi_probe()
1250 if (IS_ERR(wm8900->regmap)) in wm8900_spi_probe()
1251 return PTR_ERR(wm8900->regmap); in wm8900_spi_probe()
1253 spi_set_drvdata(spi, wm8900); in wm8900_spi_probe()
1281 struct wm8900_priv *wm8900; in wm8900_i2c_probe() local
1284 wm8900 = devm_kzalloc(&i2c->dev, sizeof(struct wm8900_priv), in wm8900_i2c_probe()
1286 if (wm8900 == NULL) in wm8900_i2c_probe()
1289 wm8900->regmap = devm_regmap_init_i2c(i2c, &wm8900_regmap); in wm8900_i2c_probe()
1290 if (IS_ERR(wm8900->regmap)) in wm8900_i2c_probe()
1291 return PTR_ERR(wm8900->regmap); in wm8900_i2c_probe()
1293 i2c_set_clientdata(i2c, wm8900); in wm8900_i2c_probe()