Lines Matching refs:dev
320 dev_err(component->dev, "invalid DAI format\n"); in cs42l51_set_dai_fmt()
332 dev_err(component->dev, "Unknown master/slave configuration\n"); in cs42l51_set_dai_fmt()
432 dev_err(component->dev, "could not find matching ratio\n"); in cs42l51_hw_params()
489 dev_err(component->dev, "unknown format\n"); in cs42l51_hw_params()
495 dev_err(component->dev, "unknown format\n"); in cs42l51_hw_params()
605 static bool cs42l51_writeable_reg(struct device *dev, unsigned int reg) in cs42l51_writeable_reg() argument
645 static bool cs42l51_volatile_reg(struct device *dev, unsigned int reg) in cs42l51_volatile_reg() argument
655 static bool cs42l51_readable_reg(struct device *dev, unsigned int reg) in cs42l51_readable_reg() argument
710 int cs42l51_probe(struct device *dev, struct regmap *regmap) in cs42l51_probe() argument
719 cs42l51 = devm_kzalloc(dev, sizeof(struct cs42l51_private), in cs42l51_probe()
724 dev_set_drvdata(dev, cs42l51); in cs42l51_probe()
727 cs42l51->mclk_handle = devm_clk_get_optional(dev, "MCLK"); in cs42l51_probe()
734 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(cs42l51->supplies), in cs42l51_probe()
737 dev_err(dev, "Failed to request supplies: %d\n", ret); in cs42l51_probe()
744 dev_err(dev, "Failed to enable supplies: %d\n", ret); in cs42l51_probe()
748 cs42l51->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs42l51_probe()
754 dev_dbg(dev, "Release reset gpio\n"); in cs42l51_probe()
762 dev_err(dev, "failed to read I2C\n"); in cs42l51_probe()
768 dev_err(dev, "Invalid chip id: %x\n", val); in cs42l51_probe()
772 dev_info(dev, "Cirrus Logic CS42L51, Revision: %02X\n", in cs42l51_probe()
775 ret = devm_snd_soc_register_component(dev, in cs42l51_probe()
789 void cs42l51_remove(struct device *dev) in cs42l51_remove() argument
791 struct cs42l51_private *cs42l51 = dev_get_drvdata(dev); in cs42l51_remove()
799 dev_warn(dev, "Failed to disable all regulators (%pe)\n", in cs42l51_remove()
805 int __maybe_unused cs42l51_suspend(struct device *dev) in cs42l51_suspend() argument
807 struct cs42l51_private *cs42l51 = dev_get_drvdata(dev); in cs42l51_suspend()
816 int __maybe_unused cs42l51_resume(struct device *dev) in cs42l51_resume() argument
818 struct cs42l51_private *cs42l51 = dev_get_drvdata(dev); in cs42l51_resume()