• Home
  • Raw
  • Download

Lines Matching refs:hdev

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