Lines Matching refs:dev
43 static int __maybe_unused tegra210_dmic_runtime_suspend(struct device *dev) in tegra210_dmic_runtime_suspend() argument
45 struct tegra210_dmic *dmic = dev_get_drvdata(dev); in tegra210_dmic_runtime_suspend()
55 static int __maybe_unused tegra210_dmic_runtime_resume(struct device *dev) in tegra210_dmic_runtime_resume() argument
57 struct tegra210_dmic *dmic = dev_get_drvdata(dev); in tegra210_dmic_runtime_resume()
62 dev_err(dev, "failed to enable DMIC clock, err: %d\n", err); in tegra210_dmic_runtime_resume()
97 dev_err(dai->dev, "invalid DMIC client channels\n"); in tegra210_dmic_hw_params()
111 dev_err(dai->dev, "can't set DMIC clock rate %u, err: %d\n", in tegra210_dmic_hw_params()
146 dev_err(dai->dev, "unsupported format!\n"); in tegra210_dmic_hw_params()
428 static bool tegra210_dmic_wr_reg(struct device *dev, unsigned int reg) in tegra210_dmic_wr_reg() argument
442 static bool tegra210_dmic_rd_reg(struct device *dev, unsigned int reg) in tegra210_dmic_rd_reg() argument
444 if (tegra210_dmic_wr_reg(dev, reg)) in tegra210_dmic_rd_reg()
458 static bool tegra210_dmic_volatile_reg(struct device *dev, unsigned int reg) in tegra210_dmic_volatile_reg() argument
488 struct device *dev = &pdev->dev; in tegra210_dmic_probe() local
493 dmic = devm_kzalloc(dev, sizeof(*dmic), GFP_KERNEL); in tegra210_dmic_probe()
503 dev_set_drvdata(dev, dmic); in tegra210_dmic_probe()
505 dmic->clk_dmic = devm_clk_get(dev, "dmic"); in tegra210_dmic_probe()
507 dev_err(dev, "can't retrieve DMIC clock\n"); in tegra210_dmic_probe()
515 dmic->regmap = devm_regmap_init_mmio(dev, regs, in tegra210_dmic_probe()
518 dev_err(dev, "regmap init failed\n"); in tegra210_dmic_probe()
524 err = devm_snd_soc_register_component(dev, &tegra210_dmic_compnt, in tegra210_dmic_probe()
528 dev_err(dev, "can't register DMIC component, err: %d\n", err); in tegra210_dmic_probe()
532 pm_runtime_enable(dev); in tegra210_dmic_probe()
539 pm_runtime_disable(&pdev->dev); in tegra210_dmic_remove()