Lines Matching refs:dev
235 dev_err(component->dev, "unsupported dai format\n"); in cs42xx8_set_dai_fmt()
252 dev_err(component->dev, "unsupported master/slave mode\n"); in cs42xx8_set_dai_fmt()
293 dev_err(component->dev, in cs42xx8_hw_params()
332 dev_err(component->dev, "unsupported sysclk ratio\n"); in cs42xx8_hw_params()
431 static bool cs42xx8_volatile_register(struct device *dev, unsigned int reg) in cs42xx8_volatile_register() argument
441 static bool cs42xx8_writeable_register(struct device *dev, unsigned int reg) in cs42xx8_writeable_register() argument
513 int cs42xx8_probe(struct device *dev, struct regmap *regmap, struct cs42xx8_driver_data *drvdata) in cs42xx8_probe() argument
520 dev_err(dev, "failed to allocate regmap: %d\n", ret); in cs42xx8_probe()
524 cs42xx8 = devm_kzalloc(dev, sizeof(*cs42xx8), GFP_KERNEL); in cs42xx8_probe()
528 dev_set_drvdata(dev, cs42xx8); in cs42xx8_probe()
534 cs42xx8->gpiod_reset = devm_gpiod_get_optional(dev, "reset", in cs42xx8_probe()
541 cs42xx8->clk = devm_clk_get(dev, "mclk"); in cs42xx8_probe()
543 dev_err(dev, "failed to get the clock: %ld\n", in cs42xx8_probe()
553 ret = devm_regulator_bulk_get(dev, in cs42xx8_probe()
556 dev_err(dev, "failed to request supplies: %d\n", ret); in cs42xx8_probe()
563 dev_err(dev, "failed to enable supplies: %d\n", ret); in cs42xx8_probe()
573 dev_err(dev, "failed to get device ID, ret = %d", ret); in cs42xx8_probe()
579 dev_err(dev, "unmatched chip ID: %d\n", in cs42xx8_probe()
585 dev_info(dev, "found device, revision %X\n", in cs42xx8_probe()
593 ret = devm_snd_soc_register_component(dev, &cs42xx8_driver, &cs42xx8_dai, 1); in cs42xx8_probe()
595 dev_err(dev, "failed to register component:%d\n", ret); in cs42xx8_probe()
610 static int cs42xx8_runtime_resume(struct device *dev) in cs42xx8_runtime_resume() argument
612 struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); in cs42xx8_runtime_resume()
617 dev_err(dev, "failed to enable mclk: %d\n", ret); in cs42xx8_runtime_resume()
626 dev_err(dev, "failed to enable supplies: %d\n", ret); in cs42xx8_runtime_resume()
638 dev_err(dev, "failed to sync regmap: %d\n", ret); in cs42xx8_runtime_resume()
653 static int cs42xx8_runtime_suspend(struct device *dev) in cs42xx8_runtime_suspend() argument
655 struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); in cs42xx8_runtime_suspend()