Lines Matching defs:hdev
263 struct hdac_device *hdev;
270 hdev = &hda_pvt->codec->core;
283 dev_err(&hdev->dev, "codec prepare failed %d\n", ret);
400 struct hdac_device *hdev = &hda_pvt->codec->core;
406 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
408 dev_err(&hdev->dev, "hdac link not found\n");
412 snd_hdac_ext_bus_link_get(hdev->bus, hlink);
420 snd_hdac_display_power(hdev->bus,
424 hdev->addr, hcodec, true);
426 dev_err(&hdev->dev, "failed to create hda codec %d\n", ret);
434 hdev->type = HDA_DEV_ASOC;
440 pm_runtime_get_noresume(&hdev->dev);
446 dev_err(&hdev->dev, "name failed %s\n", hcodec->preset->name);
452 dev_err(&hdev->dev, "regmap init failed\n");
460 dev_err(&hdev->dev, "patch failed %d\n", ret);
464 dev_dbg(&hdev->dev, "no patch file found\n");
469 dev_err(&hdev->dev, "unable to map pcms to dai %d\n", ret);
477 dev_err(&hdev->dev, "unable to create controls %d\n",
486 snd_hdac_display_power(hdev->bus,
490 pm_runtime_allow(&hdev->dev);
497 pm_runtime_put(&hdev->dev);
498 pm_runtime_suspend(&hdev->dev);
506 snd_hdac_regmap_exit(hdev);
508 pm_runtime_put(&hdev->dev);
510 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
518 struct hdac_device *hdev = &hda_pvt->codec->core;
522 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
524 dev_err(&hdev->dev, "hdac link not found\n");
528 pm_runtime_disable(&hdev->dev);
529 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
591 static int hdac_hda_dev_probe(struct hdac_device *hdev)
593 struct hdac_hda_priv *hda_pvt = dev_get_drvdata(&hdev->dev);
598 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
600 dev_err(&hdev->dev, "hdac link not found\n");
603 snd_hdac_ext_bus_link_get(hdev->bus, hlink);
607 ret = devm_snd_soc_register_component(&hdev->dev,
611 ret = devm_snd_soc_register_component(&hdev->dev,
616 dev_err(&hdev->dev, "failed to register HDA codec %d\n", ret);
620 snd_hdac_ext_bus_link_put(hdev->bus, hlink);
625 static int hdac_hda_dev_remove(struct hdac_device *hdev)