Lines Matching refs:cvt_nid
55 hda_nid_t cvt_nid; member
76 hda_nid_t cvt_nid; member
109 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
115 hda_nid_t cvt_nid);
322 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index() argument
328 if (get_cvt(spec, cvt_idx)->cvt_nid == cvt_nid) in cvt_nid_to_cvt_index()
331 codec_warn(codec, "HDMI: cvt NID 0x%x not registered\n", cvt_nid); in cvt_nid_to_cvt_index()
499 per_pin->dev_id, per_pin->cvt_nid); in print_eld_info()
769 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in hdmi_setup_audio_infoframe()
883 hda_nid_t cvt_nid, hda_nid_t nid) in haswell_verify_D0() argument
890 if (!snd_hda_check_power_state(codec, cvt_nid, AC_PWRST_D0)) in haswell_verify_D0()
891 snd_hda_codec_write(codec, cvt_nid, 0, AC_VERB_SET_POWER_STATE, AC_PWRST_D0); in haswell_verify_D0()
946 static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in hdmi_setup_stream() argument
969 param = snd_hda_codec_read(codec, cvt_nid, 0, in hdmi_setup_stream()
978 snd_hda_codec_write(codec, cvt_nid, 0, in hdmi_setup_stream()
982 snd_hda_codec_setup_stream(codec, cvt_nid, stream_tag, 0, format); in hdmi_setup_stream()
1007 cvt_idx = cvt_nid_to_cvt_index(codec, per_pin->cvt_nid); in hdmi_choose_cvt()
1027 if (per_pin->mux_nids[mux_idx] == per_cvt->cvt_nid) in hdmi_choose_cvt()
1068 hda_nid_t cvt_nid) in intel_cvt_id_to_mux_idx() argument
1073 if (spec->cvt_nids[i] == cvt_nid) in intel_cvt_id_to_mux_idx()
1164 hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) in intel_not_share_assigned_cvt_nid() argument
1174 mux_idx = intel_cvt_id_to_mux_idx(spec, cvt_nid); in intel_not_share_assigned_cvt_nid()
1182 hda_nid_t cvt_nid) in pin_cvt_fixup() argument
1187 spec->ops.pin_cvt_fixup(codec, per_pin, cvt_nid); in pin_cvt_fixup()
1211 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
1213 pin_cvt_fixup(codec, NULL, per_cvt->cvt_nid); in hdmi_pcm_open_no_pin()
1276 per_pin->cvt_nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1277 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1280 if (get_wcaps(codec, per_cvt->cvt_nid) & AC_WCAP_STRIPE) in hdmi_pcm_open()
1291 snd_hda_spdif_ctls_assign(codec, pcm_idx, per_cvt->cvt_nid); in hdmi_pcm_open()
1407 struct hdmi_spec_per_pin *per_pin, hda_nid_t cvt_nid) in hdmi_get_pin_cvt_mux() argument
1412 if (per_pin->mux_nids[mux_idx] == cvt_nid) in hdmi_get_pin_cvt_mux()
1417 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid);
1441 per_pin->cvt_nid = hinfo->nid; in hdmi_pcm_setup_pin()
1663 snd_hda_codec_setup_stream(codec, per_pin->cvt_nid, in silent_stream_enable_i915()
1666 snd_hda_codec_setup_stream(codec, per_pin->cvt_nid, I915_SILENT_FMT_MASK, 0, format); in silent_stream_enable_i915()
1678 codec_dbg(codec, "HDMI: KAE %d cvt-NID=0x%x\n", enable, per_pin->cvt_nid); in silent_stream_set_kae()
1680 param = snd_hda_codec_read(codec, per_pin->cvt_nid, 0, AC_VERB_GET_DIGI_CONVERT_1, 0); in silent_stream_set_kae()
1688 snd_hda_codec_write(codec, per_pin->cvt_nid, 0, AC_VERB_SET_DIGI_CONVERT_3, param); in silent_stream_set_kae()
1729 per_pin->cvt_nid = per_cvt->cvt_nid; in silent_stream_enable()
1733 per_pin->pin_nid, per_cvt->cvt_nid); in silent_stream_enable()
1784 per_pin->pin_nid, per_pin->cvt_nid); in silent_stream_disable()
1786 cvt_idx = cvt_nid_to_cvt_index(codec, per_pin->cvt_nid); in silent_stream_disable()
1799 per_pin->cvt_nid = 0; in silent_stream_disable()
1944 static int hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_add_cvt() argument
1951 chans = get_wcaps(codec, cvt_nid); in hdmi_add_cvt()
1958 per_cvt->cvt_nid = cvt_nid; in hdmi_add_cvt()
1966 err = snd_hda_query_supported_pcm(codec, cvt_nid, in hdmi_add_cvt()
1974 spec->cvt_nids[spec->num_cvts] = cvt_nid; in hdmi_add_cvt()
2046 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in check_non_pcm_per_cvt() argument
2052 spdif = snd_hda_spdif_out_of_nid(codec, cvt_nid); in check_non_pcm_per_cvt()
2075 hda_nid_t cvt_nid = hinfo->nid; in generic_hdmi_playback_pcm_prepare() local
2090 pin_cvt_fixup(codec, NULL, cvt_nid); in generic_hdmi_playback_pcm_prepare()
2091 snd_hda_codec_setup_stream(codec, cvt_nid, in generic_hdmi_playback_pcm_prepare()
2118 non_pcm = check_non_pcm_per_cvt(codec, cvt_nid); in generic_hdmi_playback_pcm_prepare()
2123 if (get_wcaps(codec, cvt_nid) & AC_WCAP_STRIPE) { in generic_hdmi_playback_pcm_prepare()
2126 snd_hda_codec_write(codec, cvt_nid, 0, in generic_hdmi_playback_pcm_prepare()
2144 err = spec->ops.setup_stream(codec, cvt_nid, per_pin->pin_nid, in generic_hdmi_playback_pcm_prepare()
2889 static int i915_hsw_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in i915_hsw_setup_stream() argument
2903 haswell_verify_D0(codec, cvt_nid, pin_nid); in i915_hsw_setup_stream()
2911 res = hdmi_setup_stream(codec, cvt_nid, pin_nid, dev_id, in i915_hsw_setup_stream()
2925 hda_nid_t cvt_nid) in i915_pin_cvt_fixup() argument
2928 haswell_verify_D0(codec, per_pin->cvt_nid, per_pin->pin_nid); in i915_pin_cvt_fixup()
2935 intel_not_share_assigned_cvt_nid(codec, 0, 0, cvt_nid); in i915_pin_cvt_fixup()
3001 param = snd_hda_codec_read(codec, per_pin->cvt_nid, 0, in i915_adlp_hdmi_resume()
3008 param = snd_hda_codec_read(codec, per_pin->cvt_nid, 0, in i915_adlp_hdmi_resume()
3212 chans = get_wcaps(codec, per_cvt->cvt_nid); in simple_playback_build_pcms()
3222 pstr->nid = per_cvt->cvt_nid; in simple_playback_build_pcms()
3249 err = snd_hda_create_dig_out_ctls(codec, per_cvt->cvt_nid, in simple_playback_build_controls()
3250 per_cvt->cvt_nid, in simple_playback_build_controls()
3438 hda_nid_t cvt_nid, hda_nid_t pin_nid) in patch_simple_hdmi() argument
3454 spec->multiout.dig_out_nid = cvt_nid; in patch_simple_hdmi()
3463 per_cvt->cvt_nid = cvt_nid; in patch_simple_hdmi()
3545 spdif = snd_hda_spdif_out_of_nid(codec, per_cvt->cvt_nid); in nvhdmi_8ch_7x_pcm_prepare()
3876 hda_nid_t cvt_nid, in tegra_hdmi_set_format() argument
3890 nid = cvt_nid; in tegra_hdmi_set_format()
4352 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream() argument
4362 snd_hda_codec_write(codec, cvt_nid, 0, ATI_VERB_SET_RAMP_RATE, ramp_rate); in atihdmi_setup_stream()
4365 return hdmi_setup_stream(codec, cvt_nid, pin_nid, dev_id, in atihdmi_setup_stream()