Lines Matching refs:hdev
410 struct hdac_device *hdev = &hda_pvt->codec->core; in hdac_hda_codec_probe() local
416 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_probe()
418 dev_err(&hdev->dev, "%s: hdac link not found\n", __func__); in hdac_hda_codec_probe()
422 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_codec_probe()
430 snd_hdac_display_power(hdev->bus, in hdac_hda_codec_probe()
434 hdev->addr, hcodec, true); in hdac_hda_codec_probe()
436 dev_err(&hdev->dev, "%s: failed to create hda codec %d\n", __func__, ret); in hdac_hda_codec_probe()
444 dev_info(&hdev->dev, "Applying patch firmware '%s'\n", in hdac_hda_codec_probe()
447 &hdev->dev); in hdac_hda_codec_probe()
453 dev_err(&hdev->dev, "%s: failed to load hda patch %d\n", __func__, ret); in hdac_hda_codec_probe()
465 hdev->type = HDA_DEV_ASOC; in hdac_hda_codec_probe()
471 pm_runtime_get_noresume(&hdev->dev); in hdac_hda_codec_probe()
477 dev_err(&hdev->dev, "%s: name failed %s\n", __func__, hcodec->preset->name); in hdac_hda_codec_probe()
483 dev_err(&hdev->dev, "%s: regmap init failed\n", __func__); in hdac_hda_codec_probe()
494 dev_err(&hdev->dev, "%s: probe failed %d\n", __func__, ret); in hdac_hda_codec_probe()
500 dev_err(&hdev->dev, "%s: unable to map pcms to dai %d\n", __func__, ret); in hdac_hda_codec_probe()
508 dev_err(&hdev->dev, "%s: unable to create controls %d\n", in hdac_hda_codec_probe()
517 snd_hdac_display_power(hdev->bus, in hdac_hda_codec_probe()
521 pm_runtime_allow(&hdev->dev); in hdac_hda_codec_probe()
528 pm_runtime_put(&hdev->dev); in hdac_hda_codec_probe()
529 pm_runtime_suspend(&hdev->dev); in hdac_hda_codec_probe()
537 snd_hdac_regmap_exit(hdev); in hdac_hda_codec_probe()
539 pm_runtime_put(&hdev->dev); in hdac_hda_codec_probe()
541 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe()
549 struct hdac_device *hdev = &hda_pvt->codec->core; in hdac_hda_codec_remove() local
554 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove()
556 dev_err(&hdev->dev, "%s: hdac link not found\n", __func__); in hdac_hda_codec_remove()
560 pm_runtime_disable(&hdev->dev); in hdac_hda_codec_remove()
561 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove()
623 static int hdac_hda_dev_probe(struct hdac_device *hdev) in hdac_hda_dev_probe() argument
625 struct hdac_hda_priv *hda_pvt = dev_get_drvdata(&hdev->dev); in hdac_hda_dev_probe()
630 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_dev_probe()
632 dev_err(&hdev->dev, "%s: hdac link not found\n", __func__); in hdac_hda_dev_probe()
635 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_dev_probe()
639 ret = devm_snd_soc_register_component(&hdev->dev, in hdac_hda_dev_probe()
643 ret = devm_snd_soc_register_component(&hdev->dev, in hdac_hda_dev_probe()
648 dev_err(&hdev->dev, "%s: failed to register HDA codec %d\n", __func__, ret); in hdac_hda_dev_probe()
652 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_dev_probe()
657 static int hdac_hda_dev_remove(struct hdac_device *hdev) in hdac_hda_dev_remove() argument