Lines Matching refs:nid

22 #define param_read(codec, nid, parm) \  argument
23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument
56 if (item->nid == nid) { in print_nid_array()
75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() argument
82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms()
94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument
97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps()
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument
126 if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0) in is_stereo_amps()
134 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals() argument
141 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); in print_amp_vals()
146 val = snd_hda_codec_read(codec, nid, 0, in print_amp_vals()
151 val = snd_hda_codec_read(codec, nid, 0, in print_amp_vals()
200 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps() argument
202 unsigned int pcm = param_read(codec, nid, AC_PAR_PCM); in print_pcm_caps()
203 unsigned int stream = param_read(codec, nid, AC_PAR_STREAM); in print_pcm_caps()
305 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps() argument
313 caps = param_read(codec, nid, AC_PAR_PIN_CAP); in print_pin_caps()
363 val = snd_hda_codec_read(codec, nid, 0, in print_pin_caps()
374 caps = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONFIG_DEFAULT, 0); in print_pin_caps()
401 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls() argument
406 pinctls = snd_hda_codec_read(codec, nid, 0, in print_pin_ctls()
439 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob() argument
441 unsigned int cap = param_read(codec, nid, AC_PAR_VOL_KNB_CAP); in print_vol_knob()
444 cap = snd_hda_codec_read(codec, nid, 0, in print_vol_knob()
451 struct hda_codec *codec, hda_nid_t nid, in print_audio_io() argument
454 int conv = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0); in print_audio_io()
461 int sdi = snd_hda_codec_read(codec, nid, 0, in print_audio_io()
469 struct hda_codec *codec, hda_nid_t nid) in print_digital_conv() argument
471 unsigned int digi1 = snd_hda_codec_read(codec, nid, 0, in print_digital_conv()
513 struct hda_codec *codec, hda_nid_t nid) in print_power_state() argument
526 int sup = param_read(codec, nid, AC_PAR_POWER_STATE); in print_power_state()
527 int pwr = snd_hda_codec_read(codec, nid, 0, in print_power_state()
554 struct hda_codec *codec, hda_nid_t nid) in print_unsol_cap() argument
556 int unsol = snd_hda_codec_read(codec, nid, 0, in print_unsol_cap()
574 struct hda_codec *codec, hda_nid_t nid) in print_proc_caps() argument
577 unsigned int proc_caps = param_read(codec, nid, AC_PAR_PROC_CAP); in print_proc_caps()
587 oldindex = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_COEF_INDEX, 0); in print_proc_caps()
590 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, i); in print_proc_caps()
591 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, in print_proc_caps()
595 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, oldindex); in print_proc_caps()
599 struct hda_codec *codec, hda_nid_t nid, in print_conn_list() argument
611 curr = snd_hda_codec_read(codec, nid, 0, in print_conn_list()
625 cache_len = snd_hda_get_conn_list(codec, nid, &list); in print_conn_list()
639 struct hda_codec *codec, hda_nid_t nid) in print_gpio() argument
655 enable = snd_hda_codec_read(codec, nid, 0, in print_gpio()
657 direction = snd_hda_codec_read(codec, nid, 0, in print_gpio()
659 wake = snd_hda_codec_read(codec, nid, 0, in print_gpio()
661 unsol = snd_hda_codec_read(codec, nid, 0, in print_gpio()
663 sticky = snd_hda_codec_read(codec, nid, 0, in print_gpio()
665 data = snd_hda_codec_read(codec, nid, 0, in print_gpio()
678 print_nid_array(buffer, codec, nid, &codec->mixers); in print_gpio()
679 print_nid_array(buffer, codec, nid, &codec->nids); in print_gpio()
683 hda_nid_t nid, int dev_num) in print_dpmst_connections() argument
688 conn_len = snd_hda_get_num_raw_conns(codec, nid); in print_dpmst_connections()
696 dev_id_saved = snd_hda_get_dev_select(codec, nid); in print_dpmst_connections()
698 snd_hda_set_dev_select(codec, nid, dev_num); in print_dpmst_connections()
699 curr = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONNECT_SEL, 0); in print_dpmst_connections()
700 if (snd_hda_get_raw_connections(codec, nid, conn, conn_len) < 0) in print_dpmst_connections()
711 snd_hda_set_dev_select(codec, nid, dev_id_saved); in print_dpmst_connections()
715 struct hda_codec *codec, hda_nid_t nid) in print_device_list() argument
721 devlist_len = snd_hda_get_devices(codec, nid, dev_list, in print_device_list()
727 curr = snd_hda_codec_read(codec, nid, 0, in print_device_list()
742 print_dpmst_connections(buffer, codec, nid, i); in print_device_list()
778 hda_nid_t nid, fg; in print_codec_info() local
795 nodes = snd_hda_get_sub_nodes(codec, fg, &nid); in print_codec_info()
796 if (! nid || nodes < 0) { in print_codec_info()
806 for (i = 0; i < nodes; i++, nid++) { in print_codec_info()
808 param_read(codec, nid, AC_PAR_AUDIO_WIDGET_CAP); in print_codec_info()
813 snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid, in print_codec_info()
837 print_nid_array(buffer, codec, nid, &codec->mixers); in print_codec_info()
838 print_nid_array(buffer, codec, nid, &codec->nids); in print_codec_info()
839 print_nid_pcms(buffer, codec, nid); in print_codec_info()
848 conn_len = snd_hda_get_num_raw_conns(codec, nid); in print_codec_info()
855 if (snd_hda_get_raw_connections(codec, nid, conn, in print_codec_info()
863 print_amp_caps(buffer, codec, nid, HDA_INPUT); in print_codec_info()
868 print_amp_vals(buffer, codec, nid, HDA_INPUT, in print_codec_info()
871 print_amp_vals(buffer, codec, nid, HDA_INPUT, in print_codec_info()
876 print_amp_caps(buffer, codec, nid, HDA_OUTPUT); in print_codec_info()
880 print_amp_vals(buffer, codec, nid, HDA_OUTPUT, in print_codec_info()
883 print_amp_vals(buffer, codec, nid, HDA_OUTPUT, in print_codec_info()
890 print_pin_caps(buffer, codec, nid, &supports_vref); in print_codec_info()
891 print_pin_ctls(buffer, codec, nid, supports_vref); in print_codec_info()
895 print_vol_knob(buffer, codec, nid); in print_codec_info()
899 print_audio_io(buffer, codec, nid, wid_type); in print_codec_info()
901 print_digital_conv(buffer, codec, nid); in print_codec_info()
904 print_pcm_caps(buffer, codec, nid); in print_codec_info()
910 print_unsol_cap(buffer, codec, nid); in print_codec_info()
913 print_power_state(buffer, codec, nid); in print_codec_info()
921 print_device_list(buffer, codec, nid); in print_codec_info()
924 print_conn_list(buffer, codec, nid, wid_type, in print_codec_info()
928 print_proc_caps(buffer, codec, nid); in print_codec_info()
931 codec->proc_widget_hook(buffer, codec, nid); in print_codec_info()