• Home
  • Raw
  • Download

Lines Matching refs:hinfo

267 			struct hda_pcm_stream *hinfo)  in hinfo_to_pcm_index()  argument
273 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index()
276 codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pcm_index()
281 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
290 per_pin->pcm->pcm->stream == hinfo) in hinfo_to_pin_index()
294 codec_dbg(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pin_index()
1143 static int hdmi_pcm_open_no_pin(struct hda_pcm_stream *hinfo, in hdmi_pcm_open_no_pin() argument
1153 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open_no_pin()
1163 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
1171 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open_no_pin()
1172 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open_no_pin()
1173 hinfo->rates = per_cvt->rates; in hdmi_pcm_open_no_pin()
1174 hinfo->formats = per_cvt->formats; in hdmi_pcm_open_no_pin()
1175 hinfo->maxbps = per_cvt->maxbps; in hdmi_pcm_open_no_pin()
1178 runtime->hw.channels_min = hinfo->channels_min; in hdmi_pcm_open_no_pin()
1179 runtime->hw.channels_max = hinfo->channels_max; in hdmi_pcm_open_no_pin()
1180 runtime->hw.formats = hinfo->formats; in hdmi_pcm_open_no_pin()
1181 runtime->hw.rates = hinfo->rates; in hdmi_pcm_open_no_pin()
1191 static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, in hdmi_pcm_open() argument
1204 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open()
1209 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1220 err = hdmi_pcm_open_no_pin(hinfo, codec, substream); in hdmi_pcm_open()
1239 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1252 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open()
1253 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open()
1254 hinfo->rates = per_cvt->rates; in hdmi_pcm_open()
1255 hinfo->formats = per_cvt->formats; in hdmi_pcm_open()
1256 hinfo->maxbps = per_cvt->maxbps; in hdmi_pcm_open()
1261 snd_hdmi_eld_update_pcm_info(&eld->info, hinfo); in hdmi_pcm_open()
1262 if (hinfo->channels_min > hinfo->channels_max || in hdmi_pcm_open()
1263 !hinfo->rates || !hinfo->formats) { in hdmi_pcm_open()
1265 hinfo->nid = 0; in hdmi_pcm_open()
1274 runtime->hw.channels_min = hinfo->channels_min; in hdmi_pcm_open()
1275 runtime->hw.channels_max = hinfo->channels_max; in hdmi_pcm_open()
1276 runtime->hw.formats = hinfo->formats; in hdmi_pcm_open()
1277 runtime->hw.rates = hinfo->rates; in hdmi_pcm_open()
1380 struct hda_pcm_stream *hinfo; in hdmi_pcm_setup_pin() local
1395 hinfo = pcm->stream; in hdmi_pcm_setup_pin()
1398 per_pin->cvt_nid = hinfo->nid; in hdmi_pcm_setup_pin()
1400 mux_idx = hdmi_get_pin_cvt_mux(spec, per_pin, hinfo->nid); in hdmi_pcm_setup_pin()
1408 snd_hda_spdif_ctls_assign(codec, per_pin->pcm_idx, hinfo->nid); in hdmi_pcm_setup_pin()
1410 non_pcm = check_non_pcm_per_cvt(codec, hinfo->nid); in hdmi_pcm_setup_pin()
1863 static int generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_prepare() argument
1869 hda_nid_t cvt_nid = hinfo->nid; in generic_hdmi_playback_pcm_prepare()
1880 pin_idx = hinfo_to_pin_index(codec, hinfo); in generic_hdmi_playback_pcm_prepare()
1938 static int generic_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in generic_hdmi_playback_pcm_cleanup() argument
1942 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in generic_hdmi_playback_pcm_cleanup()
1946 static int hdmi_pcm_close(struct hda_pcm_stream *hinfo, in hdmi_pcm_close() argument
1956 if (hinfo->nid) { in hdmi_pcm_close()
1957 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_close()
1960 cvt_idx = cvt_nid_to_cvt_index(codec, hinfo->nid); in hdmi_pcm_close()
1967 hinfo->nid = 0; in hdmi_pcm_close()
1972 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_close()
2838 static int simple_playback_pcm_open(struct hda_pcm_stream *hinfo, in simple_playback_pcm_open() argument
2871 static int simple_playback_pcm_close(struct hda_pcm_stream *hinfo, in simple_playback_pcm_close() argument
2879 static int simple_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in simple_playback_pcm_prepare() argument
2976 static int nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_close() argument
3001 static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_prepare() argument
3326 static int tegra_hdmi_pcm_prepare(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_prepare() argument
3334 err = generic_hdmi_playback_pcm_prepare(hinfo, codec, stream_tag, in tegra_hdmi_pcm_prepare()
3345 static int tegra_hdmi_pcm_cleanup(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_cleanup() argument
3352 return generic_hdmi_playback_pcm_cleanup(hinfo, codec, substream); in tegra_hdmi_pcm_cleanup()