Lines Matching defs:hdev
260 struct hdac_device *hdev;
267 hdev = &hda_pvt->codec.core;
280 dev_err(&hdev->dev, "codec prepare failed %d\n", ret);
392 struct hdac_device *hdev = &hda_pvt->codec.core;
398 hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev));
400 dev_err(&hdev->dev, "hdac link not found\n");
404 snd_hdac_ext_bus_link_get(hdev->bus, hlink);
412 snd_hdac_display_power(hdev->bus,
416 hdev->addr, hcodec);
418 dev_err(&hdev->dev, "failed to create hda codec %d\n", ret);
426 hdev->type = HDA_DEV_ASOC;
432 pm_runtime_get_noresume(&hdev->dev);
438 dev_err(&hdev->dev, "name failed %s\n", hcodec->preset->name);
444 dev_err(&hdev->dev, "regmap init failed\n");
452 dev_err(&hdev->dev, "patch failed %d\n", ret);
456 dev_dbg(&hdev->dev, "no patch file found\n");
464 dev_err(&hdev->dev, "unable to map pcms to dai %d\n", ret);
472 dev_err(&hdev->dev, "unable to create controls %d\n",
481 snd_hdac_display_power(hdev->bus,
485 pm_runtime_allow(&hdev->dev);
492 pm_runtime_put(&hdev->dev);
493 pm_runtime_suspend(&hdev->dev);
501 snd_hdac_regmap_exit(hdev);
503 pm_runtime_put(&hdev->dev);
505 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
513 struct hdac_device *hdev = &hda_pvt->codec.core;
517 hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev));
519 dev_err(&hdev->dev, "hdac link not found\n");
523 pm_runtime_disable(&hdev->dev);
524 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
578 static int hdac_hda_dev_probe(struct hdac_device *hdev)
585 hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev));
587 dev_err(&hdev->dev, "hdac link not found\n");
590 snd_hdac_ext_bus_link_get(hdev->bus, hlink);
592 hda_pvt = hdac_to_hda_priv(hdev);
597 ret = devm_snd_soc_register_component(&hdev->dev,
601 dev_err(&hdev->dev, "failed to register HDA codec %d\n", ret);
605 dev_set_drvdata(&hdev->dev, hda_pvt);
606 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
611 static int hdac_hda_dev_remove(struct hdac_device *hdev)