Lines Matching refs:wm8900

748 	struct wm8900_priv *wm8900 = snd_soc_component_get_drvdata(component);  in wm8900_set_fll()  local
751 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll()
764 wm8900->fll_in = freq_in; in wm8900_set_fll()
765 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()
1117 struct wm8900_priv *wm8900 = snd_soc_component_get_drvdata(component); in wm8900_suspend() local
1118 int fll_out = wm8900->fll_out; in wm8900_suspend()
1119 int fll_in = wm8900->fll_in; in wm8900_suspend()
1129 wm8900->fll_out = fll_out; in wm8900_suspend()
1130 wm8900->fll_in = fll_in; in wm8900_suspend()
1139 struct wm8900_priv *wm8900 = snd_soc_component_get_drvdata(component); in wm8900_resume() local
1144 ret = regcache_sync(wm8900->regmap); in wm8900_resume()
1153 if (wm8900->fll_out) { in wm8900_resume()
1154 int fll_out = wm8900->fll_out; in wm8900_resume()
1155 int fll_in = wm8900->fll_in; in wm8900_resume()
1157 wm8900->fll_in = 0; in wm8900_resume()
1158 wm8900->fll_out = 0; in wm8900_resume()
1235 struct wm8900_priv *wm8900; in wm8900_spi_probe() local
1238 wm8900 = devm_kzalloc(&spi->dev, sizeof(struct wm8900_priv), in wm8900_spi_probe()
1240 if (wm8900 == NULL) in wm8900_spi_probe()
1243 wm8900->regmap = devm_regmap_init_spi(spi, &wm8900_regmap); in wm8900_spi_probe()
1244 if (IS_ERR(wm8900->regmap)) in wm8900_spi_probe()
1245 return PTR_ERR(wm8900->regmap); in wm8900_spi_probe()
1247 spi_set_drvdata(spi, wm8900); in wm8900_spi_probe()
1273 struct wm8900_priv *wm8900; in wm8900_i2c_probe() local
1276 wm8900 = devm_kzalloc(&i2c->dev, sizeof(struct wm8900_priv), in wm8900_i2c_probe()
1278 if (wm8900 == NULL) in wm8900_i2c_probe()
1281 wm8900->regmap = devm_regmap_init_i2c(i2c, &wm8900_regmap); in wm8900_i2c_probe()
1282 if (IS_ERR(wm8900->regmap)) in wm8900_i2c_probe()
1283 return PTR_ERR(wm8900->regmap); in wm8900_i2c_probe()
1285 i2c_set_clientdata(i2c, wm8900); in wm8900_i2c_probe()