Lines Matching refs:wm8991
1095 struct wm8991_priv *wm8991 = snd_soc_codec_get_drvdata(codec); in wm8991_set_bias_level() local
1111 regcache_sync(wm8991->regmap); in wm8991_set_bias_level()
1199 regcache_mark_dirty(wm8991->regmap); in wm8991_set_bias_level()
1273 struct wm8991_priv *wm8991; in wm8991_i2c_probe() local
1277 wm8991 = devm_kzalloc(&i2c->dev, sizeof(*wm8991), GFP_KERNEL); in wm8991_i2c_probe()
1278 if (!wm8991) in wm8991_i2c_probe()
1281 wm8991->regmap = devm_regmap_init_i2c(i2c, &wm8991_regmap); in wm8991_i2c_probe()
1282 if (IS_ERR(wm8991->regmap)) in wm8991_i2c_probe()
1283 return PTR_ERR(wm8991->regmap); in wm8991_i2c_probe()
1285 i2c_set_clientdata(i2c, wm8991); in wm8991_i2c_probe()
1287 ret = regmap_read(wm8991->regmap, WM8991_RESET, &val); in wm8991_i2c_probe()
1297 ret = regmap_write(wm8991->regmap, WM8991_RESET, 0); in wm8991_i2c_probe()
1303 regmap_update_bits(wm8991->regmap, WM8991_AUDIO_INTERFACE_4, in wm8991_i2c_probe()
1306 regmap_update_bits(wm8991->regmap, WM8991_GPIO1_GPIO2, in wm8991_i2c_probe()
1309 regmap_update_bits(wm8991->regmap, WM8991_POWER_MANAGEMENT_1, in wm8991_i2c_probe()
1313 regmap_update_bits(wm8991->regmap, WM8991_POWER_MANAGEMENT_2, in wm8991_i2c_probe()
1316 regmap_write(wm8991->regmap, WM8991_DAC_CTRL, 0); in wm8991_i2c_probe()
1317 regmap_write(wm8991->regmap, WM8991_LEFT_OUTPUT_VOLUME, in wm8991_i2c_probe()
1319 regmap_write(wm8991->regmap, WM8991_RIGHT_OUTPUT_VOLUME, in wm8991_i2c_probe()