Lines Matching defs:hdev

410 	struct hdac_device *hdev = &hda_pvt->codec->core;
416 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
418 dev_err(&hdev->dev, "%s: hdac link not found\n", __func__);
422 snd_hdac_ext_bus_link_get(hdev->bus, hlink);
430 snd_hdac_display_power(hdev->bus,
434 hdev->addr, hcodec, true);
436 dev_err(&hdev->dev, "%s: failed to create hda codec %d\n", __func__, ret);
444 dev_info(&hdev->dev, "Applying patch firmware '%s'\n",
447 &hdev->dev);
453 dev_err(&hdev->dev, "%s: failed to load hda patch %d\n", __func__, ret);
465 hdev->type = HDA_DEV_ASOC;
471 pm_runtime_get_noresume(&hdev->dev);
477 dev_err(&hdev->dev, "%s: name failed %s\n", __func__, hcodec->preset->name);
483 dev_err(&hdev->dev, "%s: regmap init failed\n", __func__);
491 dev_err(&hdev->dev, "%s: patch failed %d\n", __func__, ret);
495 dev_dbg(&hdev->dev, "%s: no patch file found\n", __func__);
500 dev_err(&hdev->dev, "%s: unable to map pcms to dai %d\n", __func__, ret);
508 dev_err(&hdev->dev, "%s: unable to create controls %d\n",
517 snd_hdac_display_power(hdev->bus,
521 pm_runtime_allow(&hdev->dev);
528 pm_runtime_put(&hdev->dev);
529 pm_runtime_suspend(&hdev->dev);
537 snd_hdac_regmap_exit(hdev);
539 pm_runtime_put(&hdev->dev);
541 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
549 struct hdac_device *hdev = &hda_pvt->codec->core;
553 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
555 dev_err(&hdev->dev, "%s: hdac link not found\n", __func__);
559 pm_runtime_disable(&hdev->dev);
560 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
622 static int hdac_hda_dev_probe(struct hdac_device *hdev)
624 struct hdac_hda_priv *hda_pvt = dev_get_drvdata(&hdev->dev);
629 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
631 dev_err(&hdev->dev, "%s: hdac link not found\n", __func__);
634 snd_hdac_ext_bus_link_get(hdev->bus, hlink);
638 ret = devm_snd_soc_register_component(&hdev->dev,
642 ret = devm_snd_soc_register_component(&hdev->dev,
647 dev_err(&hdev->dev, "%s: failed to register HDA codec %d\n", __func__, ret);
651 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
656 static int hdac_hda_dev_remove(struct hdac_device *hdev)