Lines Matching refs:nid

22 #define param_read(codec, nid, parm) \
23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
48 struct hda_codec *codec, hda_nid_t nid,
56 if (item->nid == nid) {
75 struct hda_codec *codec, hda_nid_t nid)
82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL)
94 struct hda_codec *codec, hda_nid_t nid, int dir)
97 caps = param_read(codec, nid, dir == HDA_OUTPUT ?
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid,
126 if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0)
134 struct hda_codec *codec, hda_nid_t nid,
141 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices);
146 val = snd_hda_codec_read(codec, nid, 0,
151 val = snd_hda_codec_read(codec, nid, 0,
200 struct hda_codec *codec, hda_nid_t nid)
202 unsigned int pcm = param_read(codec, nid, AC_PAR_PCM);
203 unsigned int stream = param_read(codec, nid, AC_PAR_STREAM);
305 struct hda_codec *codec, hda_nid_t nid,
313 caps = param_read(codec, nid, AC_PAR_PIN_CAP);
363 val = snd_hda_codec_read(codec, nid, 0,
374 caps = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONFIG_DEFAULT, 0);
401 struct hda_codec *codec, hda_nid_t nid,
406 pinctls = snd_hda_codec_read(codec, nid, 0,
439 struct hda_codec *codec, hda_nid_t nid)
441 unsigned int cap = param_read(codec, nid, AC_PAR_VOL_KNB_CAP);
444 cap = snd_hda_codec_read(codec, nid, 0,
451 struct hda_codec *codec, hda_nid_t nid,
454 int conv = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0);
461 int sdi = snd_hda_codec_read(codec, nid, 0,
469 struct hda_codec *codec, hda_nid_t nid)
471 unsigned int digi1 = snd_hda_codec_read(codec, nid, 0,
513 struct hda_codec *codec, hda_nid_t nid)
526 int sup = param_read(codec, nid, AC_PAR_POWER_STATE);
527 int pwr = snd_hda_codec_read(codec, nid, 0,
554 struct hda_codec *codec, hda_nid_t nid)
556 int unsol = snd_hda_codec_read(codec, nid, 0,
574 struct hda_codec *codec, hda_nid_t nid)
577 unsigned int proc_caps = param_read(codec, nid, AC_PAR_PROC_CAP);
587 oldindex = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_COEF_INDEX, 0);
590 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, i);
591 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF,
595 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, oldindex);
599 struct hda_codec *codec, hda_nid_t nid,
611 curr = snd_hda_codec_read(codec, nid, 0,
625 cache_len = snd_hda_get_conn_list(codec, nid, &list);
639 struct hda_codec *codec, hda_nid_t nid)
655 enable = snd_hda_codec_read(codec, nid, 0,
657 direction = snd_hda_codec_read(codec, nid, 0,
659 wake = snd_hda_codec_read(codec, nid, 0,
661 unsol = snd_hda_codec_read(codec, nid, 0,
663 sticky = snd_hda_codec_read(codec, nid, 0,
665 data = snd_hda_codec_read(codec, nid, 0,
678 print_nid_array(buffer, codec, nid, &codec->mixers);
679 print_nid_array(buffer, codec, nid, &codec->nids);
683 struct hda_codec *codec, hda_nid_t nid)
689 devlist_len = snd_hda_get_devices(codec, nid, dev_list,
695 curr = snd_hda_codec_read(codec, nid, 0,
742 hda_nid_t nid, fg;
759 nodes = snd_hda_get_sub_nodes(codec, fg, &nid);
760 if (! nid || nodes < 0) {
770 for (i = 0; i < nodes; i++, nid++) {
772 param_read(codec, nid, AC_PAR_AUDIO_WIDGET_CAP);
777 snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid,
801 print_nid_array(buffer, codec, nid, &codec->mixers);
802 print_nid_array(buffer, codec, nid, &codec->nids);
803 print_nid_pcms(buffer, codec, nid);
812 conn_len = snd_hda_get_num_raw_conns(codec, nid);
819 if (snd_hda_get_raw_connections(codec, nid, conn,
827 print_amp_caps(buffer, codec, nid, HDA_INPUT);
832 print_amp_vals(buffer, codec, nid, HDA_INPUT,
835 print_amp_vals(buffer, codec, nid, HDA_INPUT,
840 print_amp_caps(buffer, codec, nid, HDA_OUTPUT);
844 print_amp_vals(buffer, codec, nid, HDA_OUTPUT,
847 print_amp_vals(buffer, codec, nid, HDA_OUTPUT,
854 print_pin_caps(buffer, codec, nid, &supports_vref);
855 print_pin_ctls(buffer, codec, nid, supports_vref);
859 print_vol_knob(buffer, codec, nid);
863 print_audio_io(buffer, codec, nid, wid_type);
865 print_digital_conv(buffer, codec, nid);
868 print_pcm_caps(buffer, codec, nid);
874 print_unsol_cap(buffer, codec, nid);
877 print_power_state(buffer, codec, nid);
885 print_device_list(buffer, codec, nid);
888 print_conn_list(buffer, codec, nid, wid_type,
892 print_proc_caps(buffer, codec, nid);
895 codec->proc_widget_hook(buffer, codec, nid);