Lines Matching refs:hinfo
264 struct hda_pcm_stream *hinfo) in hinfo_to_pcm_index() argument
270 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index()
273 codec_warn(codec, "HDMI: hinfo %p not tied to a PCM\n", hinfo); in hinfo_to_pcm_index()
278 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
287 per_pin->pcm->pcm->stream == hinfo) in hinfo_to_pin_index()
291 codec_dbg(codec, "HDMI: hinfo %p (pcm %d) not registered\n", hinfo, in hinfo_to_pin_index()
292 hinfo_to_pcm_index(codec, hinfo)); in hinfo_to_pin_index()
1179 static int hdmi_pcm_open_no_pin(struct hda_pcm_stream *hinfo, in hdmi_pcm_open_no_pin() argument
1189 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open_no_pin()
1199 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
1207 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open_no_pin()
1208 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open_no_pin()
1209 hinfo->rates = per_cvt->rates; in hdmi_pcm_open_no_pin()
1210 hinfo->formats = per_cvt->formats; in hdmi_pcm_open_no_pin()
1211 hinfo->maxbps = per_cvt->maxbps; in hdmi_pcm_open_no_pin()
1214 runtime->hw.channels_min = hinfo->channels_min; in hdmi_pcm_open_no_pin()
1215 runtime->hw.channels_max = hinfo->channels_max; in hdmi_pcm_open_no_pin()
1216 runtime->hw.formats = hinfo->formats; in hdmi_pcm_open_no_pin()
1217 runtime->hw.rates = hinfo->rates; in hdmi_pcm_open_no_pin()
1227 static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, in hdmi_pcm_open() argument
1240 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open()
1245 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1256 err = hdmi_pcm_open_no_pin(hinfo, codec, substream); in hdmi_pcm_open()
1273 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1290 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open()
1291 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open()
1292 hinfo->rates = per_cvt->rates; in hdmi_pcm_open()
1293 hinfo->formats = per_cvt->formats; in hdmi_pcm_open()
1294 hinfo->maxbps = per_cvt->maxbps; in hdmi_pcm_open()
1299 snd_hdmi_eld_update_pcm_info(&eld->info, hinfo); in hdmi_pcm_open()
1300 if (hinfo->channels_min > hinfo->channels_max || in hdmi_pcm_open()
1301 !hinfo->rates || !hinfo->formats) { in hdmi_pcm_open()
1303 hinfo->nid = 0; in hdmi_pcm_open()
1311 runtime->hw.channels_min = hinfo->channels_min; in hdmi_pcm_open()
1312 runtime->hw.channels_max = hinfo->channels_max; in hdmi_pcm_open()
1313 runtime->hw.formats = hinfo->formats; in hdmi_pcm_open()
1314 runtime->hw.rates = hinfo->rates; in hdmi_pcm_open()
1457 struct hda_pcm_stream *hinfo; in hdmi_pcm_setup_pin() local
1472 hinfo = pcm->stream; in hdmi_pcm_setup_pin()
1475 per_pin->cvt_nid = hinfo->nid; in hdmi_pcm_setup_pin()
1477 mux_idx = hdmi_get_pin_cvt_mux(spec, per_pin, hinfo->nid); in hdmi_pcm_setup_pin()
1485 snd_hda_spdif_ctls_assign(codec, per_pin->pcm_idx, hinfo->nid); in hdmi_pcm_setup_pin()
1487 non_pcm = check_non_pcm_per_cvt(codec, hinfo->nid); in hdmi_pcm_setup_pin()
2048 static int generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_prepare() argument
2054 hda_nid_t cvt_nid = hinfo->nid; in generic_hdmi_playback_pcm_prepare()
2064 pin_idx = hinfo_to_pin_index(codec, hinfo); in generic_hdmi_playback_pcm_prepare()
2131 static int generic_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_cleanup() argument
2135 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in generic_hdmi_playback_pcm_cleanup()
2139 static int hdmi_pcm_close(struct hda_pcm_stream *hinfo, in hdmi_pcm_close() argument
2151 if (hinfo->nid) { in hdmi_pcm_close()
2152 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_close()
2157 cvt_idx = cvt_nid_to_cvt_index(codec, hinfo->nid); in hdmi_pcm_close()
2164 hinfo->nid = 0; in hdmi_pcm_close()
2170 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_close()
3243 static int simple_playback_pcm_open(struct hda_pcm_stream *hinfo, in simple_playback_pcm_open() argument
3276 static int simple_playback_pcm_close(struct hda_pcm_stream *hinfo, in simple_playback_pcm_close() argument
3284 static int simple_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in simple_playback_pcm_prepare() argument
3382 static int nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_close() argument
3407 static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_prepare() argument
3791 static int tegra_hdmi_pcm_prepare(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_prepare() argument
3799 err = generic_hdmi_playback_pcm_prepare(hinfo, codec, stream_tag, in tegra_hdmi_pcm_prepare()
3810 static int tegra_hdmi_pcm_cleanup(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_cleanup() argument
3817 return generic_hdmi_playback_pcm_cleanup(hinfo, codec, substream); in tegra_hdmi_pcm_cleanup()