Lines Matching refs:cvt
102 struct hdac_hdmi_cvt *cvt; member
117 struct hdac_hdmi_cvt *cvt; member
145 struct hdac_hdmi_cvt *cvt) in hdac_hdmi_get_pcm_from_cvt() argument
150 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt()
364 struct hdac_hdmi_cvt *cvt = pcm->cvt; in hdac_hdmi_setup_audio_infoframe() local
376 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe()
452 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); in hdac_hdmi_set_tdm_slot()
474 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); in hdac_hdmi_set_hw_params()
523 struct hdac_hdmi_cvt *cvt) in hdac_hdmi_get_port_from_cvt() argument
530 if (pcm->cvt == cvt) { in hdac_hdmi_get_port_from_cvt()
543 if (port->mux_nids[i] == cvt->nid && in hdac_hdmi_get_port_from_cvt()
563 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_verify_connect_sel_all_pins() local
566 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_verify_connect_sel_all_pins()
567 port = hdac_hdmi_get_port_from_cvt(hdev, hdmi, cvt); in hdac_hdmi_verify_connect_sel_all_pins()
572 __func__, cvt->name, port->pin->nid, cvt_idx); in hdac_hdmi_verify_connect_sel_all_pins()
589 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_pcm_open() local
595 cvt = dai_map->cvt; in hdac_hdmi_pcm_open()
596 port = hdac_hdmi_get_port_from_cvt(hdev, hdmi, cvt); in hdac_hdmi_pcm_open()
635 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); in hdac_hdmi_pcm_close()
650 hdac_hdmi_query_cvt_params(struct hdac_device *hdev, struct hdac_hdmi_cvt *cvt) in hdac_hdmi_query_cvt_params() argument
656 chans = get_wcaps(hdev, cvt->nid); in hdac_hdmi_query_cvt_params()
659 cvt->params.channels_min = 2; in hdac_hdmi_query_cvt_params()
661 cvt->params.channels_max = chans; in hdac_hdmi_query_cvt_params()
665 err = snd_hdac_query_supported_pcm(hdev, cvt->nid, in hdac_hdmi_query_cvt_params()
666 &cvt->params.rates, in hdac_hdmi_query_cvt_params()
667 &cvt->params.formats, in hdac_hdmi_query_cvt_params()
668 &cvt->params.maxbps); in hdac_hdmi_query_cvt_params()
672 cvt->nid, err); in hdac_hdmi_query_cvt_params()
810 struct hdac_hdmi_cvt *cvt = w->priv; in hdac_hdmi_cvt_output_widget_event() local
818 pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, cvt); in hdac_hdmi_cvt_output_widget_event()
824 hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D0); in hdac_hdmi_cvt_output_widget_event()
827 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
831 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
834 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
836 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
849 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
851 snd_hdac_codec_write(hdev, cvt->nid, 0, in hdac_hdmi_cvt_output_widget_event()
854 hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D3); in hdac_hdmi_cvt_output_widget_event()
932 if (!strcmp(cvt_name, pcm->cvt->name)) { in hdac_hdmi_set_pin_port_mux()
963 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_create_pin_port_muxs() local
1004 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_create_pin_port_muxs()
1006 sprintf(mux_items, "cvt %d", cvt->nid); in hdac_hdmi_create_pin_port_muxs()
1074 struct hdac_hdmi_cvt *cvt; in create_fill_widget_route_map() local
1089 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in create_fill_widget_route_map()
1090 sprintf(widget_name, "Converter %d", cvt->nid); in create_fill_widget_route_map()
1092 snd_soc_dapm_aif_in, cvt, in create_fill_widget_route_map()
1174 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_init_dai_map() local
1180 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_init_dai_map()
1183 dai_map->cvt = cvt; in hdac_hdmi_init_dai_map()
1200 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_add_cvt() local
1203 cvt = devm_kzalloc(&hdev->dev, sizeof(*cvt), GFP_KERNEL); in hdac_hdmi_add_cvt()
1204 if (!cvt) in hdac_hdmi_add_cvt()
1207 cvt->nid = nid; in hdac_hdmi_add_cvt()
1208 sprintf(name, "cvt %d", cvt->nid); in hdac_hdmi_add_cvt()
1209 cvt->name = devm_kstrdup(&hdev->dev, name, GFP_KERNEL); in hdac_hdmi_add_cvt()
1210 if (!cvt->name) in hdac_hdmi_add_cvt()
1213 list_add_tail(&cvt->head, &hdmi->cvt_list); in hdac_hdmi_add_cvt()
1216 return hdac_hdmi_query_cvt_params(hdev, cvt); in hdac_hdmi_add_cvt()
1559 struct hdac_hdmi_cvt *cvt; in hdac_hdmi_create_dais() local
1573 list_for_each_entry(cvt, &hdmi->cvt_list, head) { in hdac_hdmi_create_dais()
1574 ret = snd_hdac_query_supported_pcm(hdev, cvt->nid, in hdac_hdmi_create_dais()
1900 pcm->cvt = hdmi->dai_map[dai->id].cvt; in hdac_hdmi_jack_init()