Lines Matching refs: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,
330 delay += hinfo->ops.get_delay(hinfo, apcm->codec,
649 snd_hda_power_up(apcm->codec);
651 err = hinfo->ops.open(hinfo, apcm->codec, substream);
666 hinfo->ops.close(hinfo, apcm->codec, substream);
683 snd_hda_power_down(apcm->codec);
724 int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec,
757 apcm->codec = codec;
818 "No response from codec, disabling MSI: last cmd=0x%08x\n",
827 /* If this critical timeout happens during the codec probing
828 * phase, this is likely an access to a non-existing codec
844 "No response from codec, resetting bus: last cmd=0x%08x\n",
986 int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
990 struct hdac_bus *bus = &codec->bus->core;
1020 void snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start)
1022 struct hdac_bus *bus = &codec->bus->core;
1030 void snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec,
1033 struct hdac_bus *bus = &codec->bus->core;
1144 * race condition where codec response in RIRB may
1173 * Probe the given codec address
1191 dev_dbg(chip->card->dev, "codec #%d probed OK\n", addr);
1250 /* First try to probe all given codec slots */
1254 /* Some BIOSen give you wrong codec addresses
1261 * codec often screws up the controller chip,
1273 /* Then create codec instances */
1276 struct hda_codec *codec;
1277 err = snd_hda_codec_new(&chip->bus, chip->card, c, &codec);
1280 codec->jackpoll_interval = chip->jackpoll_interval;
1281 codec->beep_mode = chip->beep_mode;
1293 /* configure each codec instance */
1296 struct hda_codec *codec, *next;
1299 list_for_each_codec(codec, &chip->bus) {
1300 if (!snd_hda_codec_configure(codec))
1305 /* unregister failed codecs if any codec has been probed */
1306 list_for_each_codec_safe(codec, next, &chip->bus) {
1307 if (!codec->configured) {
1308 codec_err(codec, "Unable to configure, disabling\n");
1309 snd_hdac_device_unregister(&codec->core);