Lines Matching refs:cvt_nid
55 hda_nid_t cvt_nid; member
76 hda_nid_t cvt_nid; member
110 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
116 hda_nid_t cvt_nid);
323 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index() argument
329 if (get_cvt(spec, cvt_idx)->cvt_nid == cvt_nid) in cvt_nid_to_cvt_index()
332 codec_warn(codec, "HDMI: cvt NID 0x%x not registered\n", cvt_nid); in cvt_nid_to_cvt_index()
500 per_pin->dev_id, per_pin->cvt_nid); in print_eld_info()
770 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in hdmi_setup_audio_infoframe()
884 hda_nid_t cvt_nid, hda_nid_t nid) in haswell_verify_D0() argument
891 if (!snd_hda_check_power_state(codec, cvt_nid, AC_PWRST_D0)) in haswell_verify_D0()
892 snd_hda_codec_write(codec, cvt_nid, 0, AC_VERB_SET_POWER_STATE, AC_PWRST_D0); in haswell_verify_D0()
947 static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in hdmi_setup_stream() argument
970 param = snd_hda_codec_read(codec, cvt_nid, 0, in hdmi_setup_stream()
979 snd_hda_codec_write(codec, cvt_nid, 0, in hdmi_setup_stream()
983 snd_hda_codec_setup_stream(codec, cvt_nid, stream_tag, 0, format); in hdmi_setup_stream()
1008 cvt_idx = cvt_nid_to_cvt_index(codec, per_pin->cvt_nid); in hdmi_choose_cvt()
1028 if (per_pin->mux_nids[mux_idx] == per_cvt->cvt_nid) in hdmi_choose_cvt()
1069 hda_nid_t cvt_nid) in intel_cvt_id_to_mux_idx() argument
1074 if (spec->cvt_nids[i] == cvt_nid) in intel_cvt_id_to_mux_idx()
1165 hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) in intel_not_share_assigned_cvt_nid() argument
1175 mux_idx = intel_cvt_id_to_mux_idx(spec, cvt_nid); in intel_not_share_assigned_cvt_nid()
1183 hda_nid_t cvt_nid) in pin_cvt_fixup() argument
1188 spec->ops.pin_cvt_fixup(codec, per_pin, cvt_nid); in pin_cvt_fixup()
1212 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
1214 pin_cvt_fixup(codec, NULL, per_cvt->cvt_nid); in hdmi_pcm_open_no_pin()
1277 per_pin->cvt_nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1278 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1281 if (get_wcaps(codec, per_cvt->cvt_nid) & AC_WCAP_STRIPE) in hdmi_pcm_open()
1292 snd_hda_spdif_ctls_assign(codec, pcm_idx, per_cvt->cvt_nid); in hdmi_pcm_open()
1417 struct hdmi_spec_per_pin *per_pin, hda_nid_t cvt_nid) in hdmi_get_pin_cvt_mux() argument
1422 if (per_pin->mux_nids[mux_idx] == cvt_nid) in hdmi_get_pin_cvt_mux()
1427 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid);
1451 per_pin->cvt_nid = hinfo->nid; in hdmi_pcm_setup_pin()
1673 snd_hda_codec_setup_stream(codec, per_pin->cvt_nid, in silent_stream_enable_i915()
1676 snd_hda_codec_setup_stream(codec, per_pin->cvt_nid, I915_SILENT_FMT_MASK, 0, format); in silent_stream_enable_i915()
1688 codec_dbg(codec, "HDMI: KAE %d cvt-NID=0x%x\n", enable, per_pin->cvt_nid); in silent_stream_set_kae()
1690 param = snd_hda_codec_read(codec, per_pin->cvt_nid, 0, AC_VERB_GET_DIGI_CONVERT_1, 0); in silent_stream_set_kae()
1698 snd_hda_codec_write(codec, per_pin->cvt_nid, 0, AC_VERB_SET_DIGI_CONVERT_3, param); in silent_stream_set_kae()
1739 per_pin->cvt_nid = per_cvt->cvt_nid; in silent_stream_enable()
1743 per_pin->pin_nid, per_cvt->cvt_nid); in silent_stream_enable()
1794 per_pin->pin_nid, per_pin->cvt_nid); in silent_stream_disable()
1796 cvt_idx = cvt_nid_to_cvt_index(codec, per_pin->cvt_nid); in silent_stream_disable()
1809 per_pin->cvt_nid = 0; in silent_stream_disable()
1955 static int hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_add_cvt() argument
1962 chans = get_wcaps(codec, cvt_nid); in hdmi_add_cvt()
1969 per_cvt->cvt_nid = cvt_nid; in hdmi_add_cvt()
1977 err = snd_hda_query_supported_pcm(codec, cvt_nid, in hdmi_add_cvt()
1985 spec->cvt_nids[spec->num_cvts] = cvt_nid; in hdmi_add_cvt()
2060 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in check_non_pcm_per_cvt() argument
2066 spdif = snd_hda_spdif_out_of_nid(codec, cvt_nid); in check_non_pcm_per_cvt()
2089 hda_nid_t cvt_nid = hinfo->nid; in generic_hdmi_playback_pcm_prepare() local
2104 pin_cvt_fixup(codec, NULL, cvt_nid); in generic_hdmi_playback_pcm_prepare()
2105 snd_hda_codec_setup_stream(codec, cvt_nid, in generic_hdmi_playback_pcm_prepare()
2132 non_pcm = check_non_pcm_per_cvt(codec, cvt_nid); in generic_hdmi_playback_pcm_prepare()
2137 if (get_wcaps(codec, cvt_nid) & AC_WCAP_STRIPE) { in generic_hdmi_playback_pcm_prepare()
2140 snd_hda_codec_write(codec, cvt_nid, 0, in generic_hdmi_playback_pcm_prepare()
2158 err = spec->ops.setup_stream(codec, cvt_nid, per_pin->pin_nid, in generic_hdmi_playback_pcm_prepare()
2903 static int i915_hsw_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in i915_hsw_setup_stream() argument
2917 haswell_verify_D0(codec, cvt_nid, pin_nid); in i915_hsw_setup_stream()
2925 res = hdmi_setup_stream(codec, cvt_nid, pin_nid, dev_id, in i915_hsw_setup_stream()
2939 hda_nid_t cvt_nid) in i915_pin_cvt_fixup() argument
2942 haswell_verify_D0(codec, per_pin->cvt_nid, per_pin->pin_nid); in i915_pin_cvt_fixup()
2949 intel_not_share_assigned_cvt_nid(codec, 0, 0, cvt_nid); in i915_pin_cvt_fixup()
3015 param = snd_hda_codec_read(codec, per_pin->cvt_nid, 0, in i915_adlp_hdmi_resume()
3022 param = snd_hda_codec_read(codec, per_pin->cvt_nid, 0, in i915_adlp_hdmi_resume()
3226 chans = get_wcaps(codec, per_cvt->cvt_nid); in simple_playback_build_pcms()
3236 pstr->nid = per_cvt->cvt_nid; in simple_playback_build_pcms()
3263 err = snd_hda_create_dig_out_ctls(codec, per_cvt->cvt_nid, in simple_playback_build_controls()
3264 per_cvt->cvt_nid, in simple_playback_build_controls()
3452 hda_nid_t cvt_nid, hda_nid_t pin_nid) in patch_simple_hdmi() argument
3468 spec->multiout.dig_out_nid = cvt_nid; in patch_simple_hdmi()
3477 per_cvt->cvt_nid = cvt_nid; in patch_simple_hdmi()
3559 spdif = snd_hda_spdif_out_of_nid(codec, per_cvt->cvt_nid); in nvhdmi_8ch_7x_pcm_prepare()
3890 hda_nid_t cvt_nid, in tegra_hdmi_set_format() argument
3904 nid = cvt_nid; in tegra_hdmi_set_format()
4366 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream() argument
4376 snd_hda_codec_write(codec, cvt_nid, 0, ATI_VERB_SET_RAMP_RATE, ramp_rate); in atihdmi_setup_stream()
4379 return hdmi_setup_stream(codec, cvt_nid, pin_nid, dev_id, in atihdmi_setup_stream()