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()
375 dev_err(&hcodec->core.dev, "didn't find PCM for DAI %s\n", dai->name); in snd_soc_find_pcm_from_dai()
379 static bool is_hdmi_codec(struct hda_codec *hcodec) in is_hdmi_codec() argument
383 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in is_hdmi_codec()
398 struct hda_codec *hcodec = hda_pvt->codec; in hdac_hda_codec_probe() local
420 ret = snd_hda_codec_device_new(hcodec->bus, component->card->snd_card, in hdac_hda_codec_probe()
421 hdev->addr, hcodec, true); in hdac_hda_codec_probe()
439 hcodec->bus->card = dapm->card->snd_card; in hdac_hda_codec_probe()
441 ret = snd_hda_codec_set_name(hcodec, hcodec->preset->name); in hdac_hda_codec_probe()
443 dev_err(&hdev->dev, "name failed %s\n", hcodec->preset->name); in hdac_hda_codec_probe()
447 ret = snd_hdac_regmap_init(&hcodec->core); in hdac_hda_codec_probe()
453 patch = (hda_codec_patch_t)hcodec->preset->driver_data; in hdac_hda_codec_probe()
455 ret = patch(hcodec); in hdac_hda_codec_probe()
464 ret = snd_hda_codec_parse_pcms(hcodec); in hdac_hda_codec_probe()
471 if (!is_hdmi_codec(hcodec)) { in hdac_hda_codec_probe()
472 ret = snd_hda_codec_build_controls(hcodec); in hdac_hda_codec_probe()
480 hcodec->core.lazy_cache = true; in hdac_hda_codec_probe()
500 if (hcodec->patch_ops.free) in hdac_hda_codec_probe()
501 hcodec->patch_ops.free(hcodec); in hdac_hda_codec_probe()