Lines Matching refs:wm9090
411 struct wm9090_priv *wm9090 = snd_soc_component_get_drvdata(component); in wm9090_add_controls() local
423 if (wm9090->pdata.lin1_diff) { in wm9090_add_controls()
433 if (wm9090->pdata.lin2_diff) { in wm9090_add_controls()
443 if (wm9090->pdata.agc_ena) { in wm9090_add_controls()
444 for (i = 0; i < ARRAY_SIZE(wm9090->pdata.agc); i++) in wm9090_add_controls()
446 wm9090->pdata.agc[i]); in wm9090_add_controls()
465 struct wm9090_priv *wm9090 = snd_soc_component_get_drvdata(component); in wm9090_set_bias_level() local
485 regcache_sync(wm9090->regmap); in wm9090_set_bias_level()
564 struct wm9090_priv *wm9090; in wm9090_i2c_probe() local
568 wm9090 = devm_kzalloc(&i2c->dev, sizeof(*wm9090), GFP_KERNEL); in wm9090_i2c_probe()
569 if (!wm9090) in wm9090_i2c_probe()
572 wm9090->regmap = devm_regmap_init_i2c(i2c, &wm9090_regmap); in wm9090_i2c_probe()
573 if (IS_ERR(wm9090->regmap)) { in wm9090_i2c_probe()
574 ret = PTR_ERR(wm9090->regmap); in wm9090_i2c_probe()
579 ret = regmap_read(wm9090->regmap, WM9090_SOFTWARE_RESET, ®); in wm9090_i2c_probe()
588 ret = regmap_write(wm9090->regmap, WM9090_SOFTWARE_RESET, 0); in wm9090_i2c_probe()
593 memcpy(&wm9090->pdata, i2c->dev.platform_data, in wm9090_i2c_probe()
594 sizeof(wm9090->pdata)); in wm9090_i2c_probe()
596 i2c_set_clientdata(i2c, wm9090); in wm9090_i2c_probe()