Lines Matching refs:hinfo
374 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
380 if (get_pcm_rec(spec, pin_idx)->stream == hinfo) in hinfo_to_pin_index()
383 codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pin_index()
1437 static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, in hdmi_pcm_open() argument
1450 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1464 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1477 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open()
1478 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open()
1479 hinfo->rates = per_cvt->rates; in hdmi_pcm_open()
1480 hinfo->formats = per_cvt->formats; in hdmi_pcm_open()
1481 hinfo->maxbps = per_cvt->maxbps; in hdmi_pcm_open()
1485 snd_hdmi_eld_update_pcm_info(&eld->info, hinfo); in hdmi_pcm_open()
1486 if (hinfo->channels_min > hinfo->channels_max || in hdmi_pcm_open()
1487 !hinfo->rates || !hinfo->formats) { in hdmi_pcm_open()
1489 hinfo->nid = 0; in hdmi_pcm_open()
1496 runtime->hw.channels_min = hinfo->channels_min; in hdmi_pcm_open()
1497 runtime->hw.channels_max = hinfo->channels_max; in hdmi_pcm_open()
1498 runtime->hw.formats = hinfo->formats; in hdmi_pcm_open()
1499 runtime->hw.rates = hinfo->rates; in hdmi_pcm_open()
1783 static int generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_prepare() argument
1789 hda_nid_t cvt_nid = hinfo->nid; in generic_hdmi_playback_pcm_prepare()
1791 int pin_idx = hinfo_to_pin_index(codec, hinfo); in generic_hdmi_playback_pcm_prepare()
1829 static int generic_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_cleanup() argument
1833 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in generic_hdmi_playback_pcm_cleanup()
1837 static int hdmi_pcm_close(struct hda_pcm_stream *hinfo, in hdmi_pcm_close() argument
1847 if (hinfo->nid) { in hdmi_pcm_close()
1848 cvt_idx = cvt_nid_to_cvt_index(codec, hinfo->nid); in hdmi_pcm_close()
1855 hinfo->nid = 0; in hdmi_pcm_close()
1857 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_close()
2531 static int simple_playback_pcm_open(struct hda_pcm_stream *hinfo, in simple_playback_pcm_open() argument
2564 static int simple_playback_pcm_close(struct hda_pcm_stream *hinfo, in simple_playback_pcm_close() argument
2572 static int simple_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in simple_playback_pcm_prepare() argument
2669 static int nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_close() argument
2694 static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_prepare() argument