Lines Matching refs:hinfo

379 			      struct hda_pcm_stream *hinfo)  in hinfo_to_pin_index()  argument
385 if (get_pcm_rec(spec, pin_idx)->stream == hinfo) in hinfo_to_pin_index()
388 codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pin_index()
1442 static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, in hdmi_pcm_open() argument
1455 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1469 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1482 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open()
1483 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open()
1484 hinfo->rates = per_cvt->rates; in hdmi_pcm_open()
1485 hinfo->formats = per_cvt->formats; in hdmi_pcm_open()
1486 hinfo->maxbps = per_cvt->maxbps; in hdmi_pcm_open()
1490 snd_hdmi_eld_update_pcm_info(&eld->info, hinfo); in hdmi_pcm_open()
1491 if (hinfo->channels_min > hinfo->channels_max || in hdmi_pcm_open()
1492 !hinfo->rates || !hinfo->formats) { in hdmi_pcm_open()
1494 hinfo->nid = 0; in hdmi_pcm_open()
1501 runtime->hw.channels_min = hinfo->channels_min; in hdmi_pcm_open()
1502 runtime->hw.channels_max = hinfo->channels_max; in hdmi_pcm_open()
1503 runtime->hw.formats = hinfo->formats; in hdmi_pcm_open()
1504 runtime->hw.rates = hinfo->rates; in hdmi_pcm_open()
1795 static int generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_prepare() argument
1801 hda_nid_t cvt_nid = hinfo->nid; in generic_hdmi_playback_pcm_prepare()
1803 int pin_idx = hinfo_to_pin_index(codec, hinfo); in generic_hdmi_playback_pcm_prepare()
1850 static int generic_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_cleanup() argument
1854 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in generic_hdmi_playback_pcm_cleanup()
1858 static int hdmi_pcm_close(struct hda_pcm_stream *hinfo, in hdmi_pcm_close() argument
1868 if (hinfo->nid) { in hdmi_pcm_close()
1869 cvt_idx = cvt_nid_to_cvt_index(codec, hinfo->nid); in hdmi_pcm_close()
1876 hinfo->nid = 0; in hdmi_pcm_close()
1878 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_close()
2592 static int simple_playback_pcm_open(struct hda_pcm_stream *hinfo, in simple_playback_pcm_open() argument
2625 static int simple_playback_pcm_close(struct hda_pcm_stream *hinfo, in simple_playback_pcm_close() argument
2633 static int simple_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in simple_playback_pcm_prepare() argument
2730 static int nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_close() argument
2755 static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_prepare() argument
3074 static int tegra_hdmi_pcm_prepare(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_prepare() argument
3082 err = generic_hdmi_playback_pcm_prepare(hinfo, codec, stream_tag, in tegra_hdmi_pcm_prepare()
3093 static int tegra_hdmi_pcm_cleanup(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_cleanup() argument
3100 return generic_hdmi_playback_pcm_cleanup(hinfo, codec, substream); in tegra_hdmi_pcm_cleanup()