Lines Matching refs:cs4349

75 	struct cs4349_private *cs4349 = snd_soc_component_get_drvdata(component);  in cs4349_set_dai_fmt()  local
84 cs4349->mode = format & SND_SOC_DAIFMT_FORMAT_MASK; in cs4349_set_dai_fmt()
98 struct cs4349_private *cs4349 = snd_soc_component_get_drvdata(component); in cs4349_pcm_hw_params() local
101 cs4349->rate = params_rate(params); in cs4349_pcm_hw_params()
103 switch (cs4349->mode) { in cs4349_pcm_hw_params()
279 struct cs4349_private *cs4349; in cs4349_i2c_probe() local
282 cs4349 = devm_kzalloc(&client->dev, sizeof(*cs4349), GFP_KERNEL); in cs4349_i2c_probe()
283 if (!cs4349) in cs4349_i2c_probe()
286 cs4349->regmap = devm_regmap_init_i2c(client, &cs4349_regmap); in cs4349_i2c_probe()
287 if (IS_ERR(cs4349->regmap)) { in cs4349_i2c_probe()
288 ret = PTR_ERR(cs4349->regmap); in cs4349_i2c_probe()
294 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe()
296 if (IS_ERR(cs4349->reset_gpio)) in cs4349_i2c_probe()
297 return PTR_ERR(cs4349->reset_gpio); in cs4349_i2c_probe()
299 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_i2c_probe()
301 i2c_set_clientdata(client, cs4349); in cs4349_i2c_probe()
310 struct cs4349_private *cs4349 = i2c_get_clientdata(client); in cs4349_i2c_remove() local
313 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_i2c_remove()
319 struct cs4349_private *cs4349 = dev_get_drvdata(dev); in cs4349_runtime_suspend() local
322 ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, PWR_DWN); in cs4349_runtime_suspend()
326 regcache_cache_only(cs4349->regmap, true); in cs4349_runtime_suspend()
329 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_runtime_suspend()
336 struct cs4349_private *cs4349 = dev_get_drvdata(dev); in cs4349_runtime_resume() local
339 ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, 0); in cs4349_runtime_resume()
343 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_runtime_resume()
345 regcache_cache_only(cs4349->regmap, false); in cs4349_runtime_resume()
346 regcache_sync(cs4349->regmap); in cs4349_runtime_resume()