Lines Matching refs:codec
26 /* load the legacy HDA codec driver */
27 static int request_codec_module(struct hda_codec *codec)
33 switch (codec->probe_id) {
36 mod = "snd-hda-codec-generic";
40 snd_hdac_codec_modalias(&codec->core, alias, sizeof(alias));
46 dev_dbg(&codec->core.dev, "loading codec module: %s\n", mod);
50 return device_attach(hda_codec_dev(codec));
53 static int hda_codec_load_module(struct hda_codec *codec)
55 int ret = request_codec_module(codec);
58 codec->probe_id = HDA_CODEC_ID_GENERIC;
59 ret = request_codec_module(codec);
70 struct hda_codec *codec;
73 list_for_each_codec(codec, hbus)
74 if (codec->jacktbl.used)
75 mask |= BIT(codec->core.addr);
85 struct hda_codec *codec;
90 list_for_each_codec(codec, hbus)
95 if (codec->jacktbl.used)
96 pm_request_resume(&codec->core.dev);
112 /* probe individual codec */
118 struct hda_codec *codec;
134 dev_dbg(sdev->dev, "HDA codec #%d probed OK: response: %x\n",
142 hda_priv->codec.bus = hbus;
143 hdev = &hda_priv->codec.core;
144 codec = &hda_priv->codec;
146 /* only probe ASoC codec drivers for HDAC-HDMI */
165 codec->probe_id = HDA_CODEC_ID_GENERIC;
167 codec->probe_id = 0;
170 ret = hda_codec_load_module(codec);
210 dev_warn(bus->dev, "codec #%d probe error, ret: %d\n",
237 /* i915 exposes a HDA codec for HDMI audio */