Searched refs:cs4349 (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/sound/soc/codecs/ |
H A D | cs4349.c | 2 * cs4349.c -- CS4349 ALSA Soc Audio driver 33 #include "cs4349.h" 78 struct cs4349_private *cs4349 = snd_soc_codec_get_drvdata(codec); cs4349_set_dai_fmt() local 87 cs4349->mode = format & SND_SOC_DAIFMT_FORMAT_MASK; cs4349_set_dai_fmt() 101 struct cs4349_private *cs4349 = snd_soc_codec_get_drvdata(codec); cs4349_pcm_hw_params() local 104 cs4349->rate = params_rate(params); cs4349_pcm_hw_params() 106 switch (cs4349->mode) { cs4349_pcm_hw_params() 283 struct cs4349_private *cs4349; cs4349_i2c_probe() local 286 cs4349 = devm_kzalloc(&client->dev, sizeof(*cs4349), GFP_KERNEL); cs4349_i2c_probe() 287 if (!cs4349) cs4349_i2c_probe() 290 cs4349->regmap = devm_regmap_init_i2c(client, &cs4349_regmap); cs4349_i2c_probe() 291 if (IS_ERR(cs4349->regmap)) { cs4349_i2c_probe() 292 ret = PTR_ERR(cs4349->regmap); cs4349_i2c_probe() 298 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, cs4349_i2c_probe() 300 if (IS_ERR(cs4349->reset_gpio)) cs4349_i2c_probe() 301 return PTR_ERR(cs4349->reset_gpio); cs4349_i2c_probe() 303 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); cs4349_i2c_probe() 305 i2c_set_clientdata(client, cs4349); cs4349_i2c_probe() 313 struct cs4349_private *cs4349 = i2c_get_clientdata(client); cs4349_i2c_remove() local 318 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); cs4349_i2c_remove() 326 struct cs4349_private *cs4349 = dev_get_drvdata(dev); cs4349_runtime_suspend() local 329 ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, PWR_DWN); cs4349_runtime_suspend() 333 regcache_cache_only(cs4349->regmap, true); cs4349_runtime_suspend() 336 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); cs4349_runtime_suspend() 343 struct cs4349_private *cs4349 = dev_get_drvdata(dev); cs4349_runtime_resume() local 346 ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, 0); cs4349_runtime_resume() 350 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); cs4349_runtime_resume() 352 regcache_cache_only(cs4349->regmap, false); cs4349_runtime_resume() 353 regcache_sync(cs4349->regmap); cs4349_runtime_resume() 365 { .compatible = "cirrus,cs4349", }, 372 {"cs4349", 0}, 380 .name = "cs4349",
|
H A D | Makefile | 49 snd-soc-cs4349-objs := cs4349.o 244 obj-$(CONFIG_SND_SOC_CS4349) += snd-soc-cs4349.o
|
Completed in 100 milliseconds