Lines Matching refs:hcodec

328 	struct hda_codec *hcodec = &hda_pvt->codec;  in snd_soc_find_pcm_from_dai()  local
361 dev_err(&hcodec->core.dev, "invalid dai id %d\n", dai->id); in snd_soc_find_pcm_from_dai()
365 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in snd_soc_find_pcm_from_dai()
370 dev_err(&hcodec->core.dev, "didn't find PCM for DAI %s\n", dai->name); in snd_soc_find_pcm_from_dai()
374 static bool is_hdmi_codec(struct hda_codec *hcodec) in is_hdmi_codec() argument
378 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in is_hdmi_codec()
393 struct hda_codec *hcodec = &hda_pvt->codec; in hdac_hda_codec_probe() local
415 ret = snd_hda_codec_device_new(hcodec->bus, component->card->snd_card, in hdac_hda_codec_probe()
416 hdev->addr, hcodec); in hdac_hda_codec_probe()
434 hcodec->bus->card = dapm->card->snd_card; in hdac_hda_codec_probe()
436 ret = snd_hda_codec_set_name(hcodec, hcodec->preset->name); in hdac_hda_codec_probe()
438 dev_err(&hdev->dev, "name failed %s\n", hcodec->preset->name); in hdac_hda_codec_probe()
442 ret = snd_hdac_regmap_init(&hcodec->core); in hdac_hda_codec_probe()
448 patch = (hda_codec_patch_t)hcodec->preset->driver_data; in hdac_hda_codec_probe()
450 ret = patch(hcodec); in hdac_hda_codec_probe()
460 hcodec->mst_no_extra_pcms = 1; in hdac_hda_codec_probe()
462 ret = snd_hda_codec_parse_pcms(hcodec); in hdac_hda_codec_probe()
469 if (!is_hdmi_codec(hcodec)) { in hdac_hda_codec_probe()
470 ret = snd_hda_codec_build_controls(hcodec); in hdac_hda_codec_probe()
478 hcodec->core.lazy_cache = true; in hdac_hda_codec_probe()
498 if (hcodec->patch_ops.free) in hdac_hda_codec_probe()
499 hcodec->patch_ops.free(hcodec); in hdac_hda_codec_probe()