Lines Matching refs:cs4265
3 * cs4265.c -- CS4265 ALSA SoC audio driver
28 #include "cs4265.h"
322 struct cs4265_private *cs4265 = snd_soc_component_get_drvdata(component);
331 cs4265->sysclk = freq;
335 cs4265->sysclk = 0;
343 struct cs4265_private *cs4265 = snd_soc_component_get_drvdata(component);
376 cs4265->format = iface;
407 struct cs4265_private *cs4265 = snd_soc_component_get_drvdata(component);
411 ((cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK)
415 index = cs4265_get_clk_index(cs4265->sysclk, params_rate(params));
428 switch (cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK) {
508 .name = "cs4265-dai1",
526 .name = "cs4265-dai2",
572 struct cs4265_private *cs4265;
577 cs4265 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4265_private),
579 if (cs4265 == NULL)
582 cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap);
583 if (IS_ERR(cs4265->regmap)) {
584 ret = PTR_ERR(cs4265->regmap);
589 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev,
591 if (IS_ERR(cs4265->reset_gpio))
592 return PTR_ERR(cs4265->reset_gpio);
594 if (cs4265->reset_gpio) {
596 gpiod_set_value_cansleep(cs4265->reset_gpio, 1);
599 i2c_set_clientdata(i2c_client, cs4265);
601 ret = regmap_read(cs4265->regmap, CS4265_CHIP_ID, ®);
619 regmap_write(cs4265->regmap, CS4265_PWRCTL, 0x0F);
628 struct cs4265_private *cs4265 = i2c_get_clientdata(i2c);
630 if (cs4265->reset_gpio)
631 gpiod_set_value_cansleep(cs4265->reset_gpio, 0);
635 { .compatible = "cirrus,cs4265", },
641 { "cs4265", 0 },
648 .name = "cs4265",