Lines Matching refs:cvt

103 	struct hdac_hdmi_cvt *cvt;  member
118 struct hdac_hdmi_cvt *cvt; member
146 struct hdac_hdmi_cvt *cvt) in hdac_hdmi_get_pcm_from_cvt() argument
151 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt()
365 struct hdac_hdmi_cvt *cvt = pcm->cvt; in hdac_hdmi_setup_audio_infoframe() local
377 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe()
458 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); in hdac_hdmi_set_stream()
481 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); in hdac_hdmi_set_hw_params()
530 struct hdac_hdmi_cvt *cvt) in hdac_hdmi_get_port_from_cvt() argument
537 if (pcm->cvt == cvt) { in hdac_hdmi_get_port_from_cvt()
550 if (port->mux_nids[i] == cvt->nid && in hdac_hdmi_get_port_from_cvt()
570 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_verify_connect_sel_all_pins() local
573 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_verify_connect_sel_all_pins()
574 port = hdac_hdmi_get_port_from_cvt(hdev, hdmi, cvt); in hdac_hdmi_verify_connect_sel_all_pins()
579 __func__, cvt->name, port->pin->nid, cvt_idx); in hdac_hdmi_verify_connect_sel_all_pins()
596 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_pcm_open() local
602 cvt = dai_map->cvt; in hdac_hdmi_pcm_open()
603 port = hdac_hdmi_get_port_from_cvt(hdev, hdmi, cvt); in hdac_hdmi_pcm_open()
642 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); in hdac_hdmi_pcm_close()
657 hdac_hdmi_query_cvt_params(struct hdac_device *hdev, struct hdac_hdmi_cvt *cvt) in hdac_hdmi_query_cvt_params() argument
663 chans = get_wcaps(hdev, cvt->nid); in hdac_hdmi_query_cvt_params()
666 cvt->params.channels_min = 2; in hdac_hdmi_query_cvt_params()
668 cvt->params.channels_max = chans; in hdac_hdmi_query_cvt_params()
672 err = snd_hdac_query_supported_pcm(hdev, cvt->nid, in hdac_hdmi_query_cvt_params()
673 &cvt->params.rates, in hdac_hdmi_query_cvt_params()
674 &cvt->params.formats, in hdac_hdmi_query_cvt_params()
676 &cvt->params.maxbps); in hdac_hdmi_query_cvt_params()
680 cvt->nid, err); in hdac_hdmi_query_cvt_params()
818 struct hdac_hdmi_cvt *cvt = w->priv; in hdac_hdmi_cvt_output_widget_event() local
826 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, cvt); in hdac_hdmi_cvt_output_widget_event()
832 hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D0); in hdac_hdmi_cvt_output_widget_event()
835 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
839 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
842 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
844 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
857 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
859 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
862 hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D3); in hdac_hdmi_cvt_output_widget_event()
940 if (!strcmp(cvt_name, pcm->cvt->name)) { in hdac_hdmi_set_pin_port_mux()
971 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_create_pin_port_muxs() local
1012 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_create_pin_port_muxs()
1014 sprintf(mux_items, "cvt %d", cvt->nid); in hdac_hdmi_create_pin_port_muxs()
1082 struct hdac_hdmi_cvt *cvt; in create_fill_widget_route_map() local
1097 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in create_fill_widget_route_map()
1098 sprintf(widget_name, "Converter %d", cvt->nid); in create_fill_widget_route_map()
1100 snd_soc_dapm_aif_in, cvt, in create_fill_widget_route_map()
1182 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_init_dai_map() local
1188 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_init_dai_map()
1191 dai_map->cvt = cvt; in hdac_hdmi_init_dai_map()
1208 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_add_cvt() local
1211 cvt = devm_kzalloc(&hdev->dev, sizeof(*cvt), GFP_KERNEL); in hdac_hdmi_add_cvt()
1212 if (!cvt) in hdac_hdmi_add_cvt()
1215 cvt->nid = nid; in hdac_hdmi_add_cvt()
1216 sprintf(name, "cvt %d", cvt->nid); in hdac_hdmi_add_cvt()
1217 cvt->name = devm_kstrdup(&hdev->dev, name, GFP_KERNEL); in hdac_hdmi_add_cvt()
1218 if (!cvt->name) in hdac_hdmi_add_cvt()
1221 list_add_tail(&cvt->head, &hdmi->cvt_list); in hdac_hdmi_add_cvt()
1224 return hdac_hdmi_query_cvt_params(hdev, cvt); in hdac_hdmi_add_cvt()
1567 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_create_dais() local
1581 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_create_dais()
1582 ret = snd_hdac_query_supported_pcm(hdev, cvt->nid, in hdac_hdmi_create_dais()
1907 pcm->cvt = hdmi->dai_map[dai->id].cvt; in hdac_hdmi_jack_init()