Lines Matching refs:cvt
102 struct hdac_hdmi_cvt *cvt;
117 struct hdac_hdmi_cvt *cvt;
145 struct hdac_hdmi_cvt *cvt)
150 if (pcm->cvt == cvt)
364 struct hdac_hdmi_cvt *cvt = pcm->cvt;
376 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels);
457 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
479 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
519 * Also query connection list of the pin, to validate the cvt to port map.
528 struct hdac_hdmi_cvt *cvt)
535 if (pcm->cvt == cvt) {
548 if (port->mux_nids[i] == cvt->nid &&
568 struct hdac_hdmi_cvt *cvt;
571 list_for_each_entry(cvt, &hdmi->cvt_list, head) {
572 port = hdac_hdmi_get_port_from_cvt(hdev, hdmi, cvt);
577 __func__, cvt->name, port->pin->nid, cvt_idx);
594 struct hdac_hdmi_cvt *cvt;
600 cvt = dai_map->cvt;
601 port = hdac_hdmi_get_port_from_cvt(hdev, hdmi, cvt);
640 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
655 hdac_hdmi_query_cvt_params(struct hdac_device *hdev, struct hdac_hdmi_cvt *cvt)
661 chans = get_wcaps(hdev, cvt->nid);
664 cvt->params.channels_min = 2;
666 cvt->params.channels_max = chans;
670 err = snd_hdac_query_supported_pcm(hdev, cvt->nid,
671 &cvt->params.rates,
672 &cvt->params.formats,
673 &cvt->params.maxbps);
677 cvt->nid, err);
815 struct hdac_hdmi_cvt *cvt = w->priv;
823 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, cvt);
829 hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D0);
832 snd_hdac_codec_write(hdev, cvt->nid, 0,
836 snd_hdac_codec_write(hdev, cvt->nid, 0,
839 snd_hdac_codec_write(hdev, cvt->nid, 0,
841 snd_hdac_codec_write(hdev, cvt->nid, 0,
854 snd_hdac_codec_write(hdev, cvt->nid, 0,
856 snd_hdac_codec_write(hdev, cvt->nid, 0,
859 hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D3);
937 if (!strcmp(cvt_name, pcm->cvt->name)) {
968 struct hdac_hdmi_cvt *cvt;
1000 /* enum texts: ["NONE", "cvt #", "cvt #", ...] */
1009 list_for_each_entry(cvt, &hdmi->cvt_list, head) {
1011 sprintf(mux_items, "cvt %d", cvt->nid);
1028 /* Add cvt <- input <- mux route map */
1066 * cvt -> "Input sel control" -> pin-port_mux
1079 struct hdac_hdmi_cvt *cvt;
1094 list_for_each_entry(cvt, &hdmi->cvt_list, head) {
1095 sprintf(widget_name, "Converter %d", cvt->nid);
1097 snd_soc_dapm_aif_in, cvt,
1135 /* For cvt to pin_mux mapping */
1179 struct hdac_hdmi_cvt *cvt;
1185 list_for_each_entry(cvt, &hdmi->cvt_list, head) {
1188 dai_map->cvt = cvt;
1205 struct hdac_hdmi_cvt *cvt;
1208 cvt = devm_kzalloc(&hdev->dev, sizeof(*cvt), GFP_KERNEL);
1209 if (!cvt)
1212 cvt->nid = nid;
1213 sprintf(name, "cvt %d", cvt->nid);
1214 cvt->name = devm_kstrdup(&hdev->dev, name, GFP_KERNEL);
1215 if (!cvt->name)
1218 list_add_tail(&cvt->head, &hdmi->cvt_list);
1221 return hdac_hdmi_query_cvt_params(hdev, cvt);
1564 struct hdac_hdmi_cvt *cvt;
1578 list_for_each_entry(cvt, &hdmi->cvt_list, head) {
1579 ret = snd_hdac_query_supported_pcm(hdev, cvt->nid,
1625 * Parse all nodes and store the cvt/pin nids in array
1626 * Add one time initialization for pin and cvt widgets
1673 dev_err(&hdev->dev, "Bad pin/cvt setup in %s\n", __func__);
1905 pcm->cvt = hdmi->dai_map[dai->id].cvt;