Lines Matching refs:nid
31 hda_nid_t nid; /* NID of this widget */ member
114 static int add_new_node(struct hda_codec *codec, struct hda_gspec *spec, hda_nid_t nid) in add_new_node() argument
123 node->nid = nid; in add_new_node()
124 nconns = snd_hda_get_connections(codec, nid, conn_list, in add_new_node()
143 node->wid_caps = get_wcaps(codec, nid); in add_new_node()
147 node->pin_caps = snd_hda_param_read(codec, node->nid, AC_PAR_PIN_CAP); in add_new_node()
148 node->pin_ctl = snd_hda_codec_read(codec, node->nid, 0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0); in add_new_node()
149 node->def_cfg = snd_hda_codec_read(codec, node->nid, 0, AC_VERB_GET_CONFIG_DEFAULT, 0); in add_new_node()
154 node->amp_out_caps = snd_hda_param_read(codec, node->nid, AC_PAR_AMP_OUT_CAP); in add_new_node()
160 node->amp_in_caps = snd_hda_param_read(codec, node->nid, AC_PAR_AMP_IN_CAP); in add_new_node()
175 hda_nid_t nid; in build_afg_tree() local
183 nodes = snd_hda_get_sub_nodes(codec, codec->afg, &nid); in build_afg_tree()
184 if (! nid || nodes < 0) { in build_afg_tree()
190 for (i = 0; i < nodes; i++, nid++) { in build_afg_tree()
191 if ((err = add_new_node(codec, spec, nid)) < 0) in build_afg_tree()
203 static struct hda_gnode *hda_get_node(struct hda_gspec *spec, hda_nid_t nid) in hda_get_node() argument
208 if (node->nid == nid) in hda_get_node()
220 snd_printdd("UNMUTE OUT: NID=0x%x\n", node->nid); in unmute_output()
225 snd_hda_codec_amp_stereo(codec, node->nid, HDA_OUTPUT, 0, 0xff, val); in unmute_output()
235 snd_printdd("UNMUTE IN: NID=0x%x IDX=0x%x\n", node->nid, index); in unmute_input()
240 snd_hda_codec_amp_stereo(codec, node->nid, HDA_INPUT, index, 0xff, val); in unmute_input()
250 snd_printdd("CONNECT: NID=0x%x IDX=0x%x\n", node->nid, index); in select_input_connection()
251 return snd_hda_codec_write_cache(codec, node->nid, 0, in select_input_connection()
284 snd_printdd("Skip Digital OUT node %x\n", node->nid); in parse_output_path()
287 snd_printdd("AUD_OUT found %x\n", node->nid); in parse_output_path()
379 snd_hda_codec_write_cache(codec, node->nid, 0, in parse_output_jack()
459 spec->adc_node->nid, &spec->cur_cap_src); in capture_source_put()
570 snd_hda_codec_write_cache(codec, node->nid, 0, in parse_adc_sub_nodes()
608 snd_printdd("AUD_IN = %x\n", adc_node->nid); in parse_input_path()
645 snd_printdd("[Capture Source] NID=0x%x, #SRC=%d\n", adc_node->nid, spec->input_mux.num_items); in parse_input_path()
684 static void add_input_loopback(struct hda_codec *codec, hda_nid_t nid, in add_input_loopback() argument
695 p->nid = nid; in add_input_loopback()
701 #define add_input_loopback(codec,nid,dir,idx) argument
722 knew = (struct snd_kcontrol_new)HDA_CODEC_MUTE(name, node->nid, index, HDA_INPUT); in create_mixer()
724 add_input_loopback(codec, node->nid, HDA_INPUT, index); in create_mixer()
725 snd_printdd("[%s] NID=0x%x, DIR=IN, IDX=0x%x\n", name, node->nid, index); in create_mixer()
732 knew = (struct snd_kcontrol_new)HDA_CODEC_MUTE(name, node->nid, 0, HDA_OUTPUT); in create_mixer()
734 add_input_loopback(codec, node->nid, HDA_OUTPUT, 0); in create_mixer()
735 snd_printdd("[%s] NID=0x%x, DIR=OUT\n", name, node->nid); in create_mixer()
748 knew = (struct snd_kcontrol_new)HDA_CODEC_VOLUME(name, node->nid, index, HDA_INPUT); in create_mixer()
749 snd_printdd("[%s] NID=0x%x, DIR=IN, IDX=0x%x\n", name, node->nid, index); in create_mixer()
756 knew = (struct snd_kcontrol_new)HDA_CODEC_VOLUME(name, node->nid, 0, HDA_OUTPUT); in create_mixer()
757 snd_printdd("[%s] NID=0x%x, DIR=OUT\n", name, node->nid); in create_mixer()
871 HDA_CODEC_VOLUME(name, adc_node->nid, in build_input_controls()
1003 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in generic_pcm2_prepare()
1004 snd_hda_codec_setup_stream(codec, spec->dac_node[1]->nid, in generic_pcm2_prepare()
1015 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in generic_pcm2_cleanup()
1016 snd_hda_codec_cleanup_stream(codec, spec->dac_node[1]->nid); in generic_pcm2_cleanup()
1036 info->stream[0].nid = spec->dac_node[0]->nid; in build_generic_pcms()
1044 info->stream[1].nid = spec->adc_node->nid; in build_generic_pcms()
1051 static int generic_check_power_status(struct hda_codec *codec, hda_nid_t nid) in generic_check_power_status() argument
1054 return snd_hda_check_amp_list_power(codec, &spec->loopback, nid); in generic_check_power_status()