Lines Matching defs:codec
73 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream);
98 hinfo->ops.close(hinfo, apcm->codec, substream);
99 snd_hda_power_down(apcm->codec);
140 snd_hda_codec_cleanup(apcm->codec, hinfo, substream);
157 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid);
192 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag,
313 delay += hinfo->ops.get_delay(hinfo, apcm->codec,
631 snd_hda_power_up(apcm->codec);
633 err = hinfo->ops.open(hinfo, apcm->codec, substream);
648 hinfo->ops.close(hinfo, apcm->codec, substream);
665 snd_hda_power_down(apcm->codec);
695 int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec,
728 apcm->codec = codec;
789 "No response from codec, disabling MSI: last cmd=0x%08x\n",
798 /* If this critical timeout happens during the codec probing
799 * phase, this is likely an access to a non-existing codec
815 "No response from codec, resetting bus: last cmd=0x%08x\n",
955 int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
959 struct hdac_bus *bus = &codec->bus->core;
989 void snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start)
991 struct hdac_bus *bus = &codec->bus->core;
999 void snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec,
1002 struct hdac_bus *bus = &codec->bus->core;
1099 * race condition where codec response in RIRB may
1125 * Probe the given codec address
1143 dev_dbg(chip->card->dev, "codec #%d probed OK\n", addr);
1202 /* First try to probe all given codec slots */
1206 /* Some BIOSen give you wrong codec addresses
1213 * codec often screws up the controller chip,
1225 /* Then create codec instances */
1228 struct hda_codec *codec;
1229 err = snd_hda_codec_new(&chip->bus, chip->card, c, &codec);
1232 codec->jackpoll_interval = chip->jackpoll_interval;
1233 codec->beep_mode = chip->beep_mode;
1234 codec->ctl_dev_id = chip->ctl_dev_id;
1246 /* configure each codec instance */
1249 struct hda_codec *codec, *next;
1252 list_for_each_codec(codec, &chip->bus) {
1253 if (!snd_hda_codec_configure(codec))
1258 /* unregister failed codecs if any codec has been probed */
1259 list_for_each_codec_safe(codec, next, &chip->bus) {
1260 if (!codec->configured) {
1261 codec_err(codec, "Unable to configure, disabling\n");
1262 snd_hdac_device_unregister(&codec->core);