Lines Matching defs:dev

153 	dev_dbg(component->dev, "MICD rate %d,%d for %dHz %s\n",
202 dev_dbg(component->dev, "Dividing AIF%d clock to %dHz\n",
434 dev_dbg(component->dev, "ReTune Mobile %d %s/%dHz for %dHz sample rate\n",
773 dev_dbg(component->dev, "Active refcount incremented, now %d\n",
791 dev_dbg(component->dev, "Active refcount decremented, now %d\n",
845 pm_runtime_get_sync(component->dev);
849 dev_dbg(component->dev, "Referencing VMID, refcount is now %d\n",
926 dev_dbg(component->dev, "Dereferencing VMID, refcount is now %d\n",
980 pm_runtime_put(component->dev);
1010 dev_vdbg(component->dev, "Class W source AIF2DAC\n");
1014 dev_vdbg(component->dev, "Class W source AIF1DAC2\n");
1018 dev_vdbg(component->dev, "Class W source AIF1DAC1\n");
1022 dev_vdbg(component->dev, "DAC mixer setting: %x\n", reg);
1028 dev_vdbg(component->dev, "Left and right DAC mixers different\n");
1087 dev_err(component->dev, "Failed to enable MCLK%d\n",
1451 dev_dbg(component->dev, "SRC status: %x\n",
2282 dev_err(component->dev, "FLL%d is currently providing SYSCLK\n",
2314 dev_dbg(component->dev, "Bypassing FLL%d\n", id + 1);
2371 dev_err(component->dev, "Failed to enable MCLK for FLL%d\n",
2409 dev_warn(component->dev,
2444 dev_dbg(component->dev, "Configuring AIFs for 128fs\n");
2530 dev_dbg(dai->dev, "AIF%d using MCLK1 at %uHz\n",
2543 dev_dbg(dai->dev, "AIF%d using MCLK2 at %uHz\n",
2549 dev_dbg(dai->dev, "AIF%d using FLL1\n", dai->id);
2554 dev_dbg(dai->dev, "AIF%d using FLL2\n", dai->id);
2588 dev_dbg(component->dev, "Configuring AIFs for 128fs\n");
2942 dev_dbg(component->dev, "AIF1 using split LRCLK\n");
2955 dev_dbg(component->dev, "AIF2 using split LRCLK\n");
2986 dev_dbg(dai->dev, "Constraining channels to %d from %d\n",
3009 dev_dbg(dai->dev, "Sample rate is %dHz\n", srs[i].rate);
3010 dev_dbg(dai->dev, "AIF%dCLK is %dHz, target BCLK %dHz\n",
3018 dev_err(dai->dev, "AIF%dCLK not configured\n", dai->id);
3034 dev_dbg(dai->dev, "Selected AIF%dCLK/fs = %d\n",
3051 dev_dbg(dai->dev, "Using BCLK_DIV %d for actual BCLK %dHz\n",
3057 dev_err(dai->dev, "Unable to generate LRCLK from %dHz BCLK\n",
3061 dev_dbg(dai->dev, "Using LRCLK rate %d for actual LRCLK %dHz\n",
3309 dev_warn(component->dev, "Failed to stop FLL%d: %d\n",
3332 dev_warn(component->dev, "Failed to restore FLL%d: %d\n",
3398 dev_dbg(component->dev, "Allocated %d unique ReTune Mobile names\n",
3407 dev_err(wm8994->hubs.component->dev,
3432 dev_dbg(component->dev, "%d DRC configurations\n", pdata->num_drc_cfgs);
3445 wm8994->drc_texts = devm_kcalloc(wm8994->hubs.component->dev,
3467 dev_err(wm8994->hubs.component->dev,
3471 dev_dbg(component->dev, "%d ReTune Mobile configurations\n",
3513 dev_warn(component->dev, "Not a WM8994\n");
3517 pm_runtime_get_sync(component->dev);
3535 dev_warn(component->dev, "Invalid MICBIAS %d\n", micbias);
3540 dev_warn(component->dev, "Failed to configure MICBIAS%d: %d\n",
3543 dev_dbg(component->dev, "Configuring microphone detection on %d %p\n",
3566 pm_runtime_put(component->dev);
3578 struct device *dev = priv->wm8994->dev;
3583 pm_runtime_get_sync(dev);
3587 dev_err(dev, "Failed to read microphone status: %d\n",
3589 pm_runtime_put(dev);
3593 dev_dbg(dev, "Microphone status: %x\n", reg);
3633 pm_runtime_put(dev);
3642 trace_snd_soc_jack_irq(dev_name(component->dev));
3645 pm_wakeup_event(component->dev, 300);
3703 struct device *dev = wm8994->wm8994->dev;
3709 dev_dbg(dev, "Reporting open circuit\n");
3731 dev_dbg(component->dev, "Detected open circuit\n");
3743 dev_dbg(component->dev, "Detected microphone\n");
3756 dev_dbg(component->dev, "Detected headphone\n");
3778 pm_runtime_get_sync(component->dev);
3788 dev_dbg(component->dev, "Starting mic detection\n");
3807 pm_runtime_put(component->dev);
3819 pm_runtime_get_sync(component->dev);
3827 dev_err(component->dev, "Failed to read jack status: %d\n", reg);
3829 pm_runtime_put(component->dev);
3833 dev_dbg(component->dev, "JACKDET %x\n", reg);
3838 dev_dbg(component->dev, "Jack detected\n");
3854 dev_dbg(component->dev, "Jack not detected\n");
3895 pm_runtime_put(component->dev);
3944 pm_runtime_get_sync(component->dev);
4014 pm_runtime_put(component->dev);
4027 pm_runtime_get_sync(component->dev);
4035 pm_runtime_put(component->dev);
4055 pm_runtime_get_sync(component->dev);
4064 dev_err(component->dev,
4067 pm_runtime_put(component->dev);
4072 dev_dbg(component->dev, "Mic detect data not valid\n");
4083 dev_warn(component->dev, "No impedance range reported for jack\n");
4086 trace_snd_soc_jack_irq(dev_name(component->dev));
4093 dev_err(component->dev, "Failed to read jack status: %d\n",
4096 dev_dbg(component->dev, "Ignoring removed jack\n");
4118 pm_runtime_put(component->dev);
4126 dev_err(component->dev, "FIFO error\n");
4135 dev_err(component->dev, "Thermal warning\n");
4144 dev_crit(component->dev, "Thermal shutdown\n");
4152 struct wm8994 *control = dev_get_drvdata(component->dev->parent);
4267 dev_warn(component->dev,
4277 dev_warn(component->dev,
4286 dev_warn(component->dev,
4295 dev_warn(component->dev,
4310 dev_warn(component->dev,
4346 pm_runtime_get_sync(component->dev);
4354 dev_err(component->dev, "Failed to read GPIO1 state: %d\n", ret);
4366 dev_err(component->dev, "Failed to read GPIO6 state: %d\n", ret);
4376 pm_runtime_put(component->dev);
4629 wm8994 = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_priv),
4637 wm8994->wm8994 = dev_get_drvdata(pdev->dev.parent);
4642 ret = devm_clk_bulk_get_optional(pdev->dev.parent, ARRAY_SIZE(wm8994->mclk),
4645 dev_err(&pdev->dev, "Failed to get clocks: %d\n", ret);
4649 pm_runtime_enable(&pdev->dev);
4650 pm_runtime_idle(&pdev->dev);
4652 ret = devm_snd_soc_register_component(&pdev->dev, &soc_component_dev_wm8994,
4655 pm_runtime_disable(&pdev->dev);
4662 pm_runtime_disable(&pdev->dev);
4666 static int wm8994_suspend(struct device *dev)
4668 struct wm8994_priv *wm8994 = dev_get_drvdata(dev);
4679 static int wm8994_resume(struct device *dev)
4681 struct wm8994_priv *wm8994 = dev_get_drvdata(dev);