Lines Matching defs:nid

159 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
164 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx);
165 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0);
169 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
175 val = __alc_read_coefex_idx(codec, nid, coef_idx);
183 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
186 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx);
187 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PROC_COEF, coef_val);
190 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
194 __alc_write_coefex_idx(codec, nid, coef_idx, coef_val);
201 static void __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
205 unsigned int val = __alc_read_coefex_idx(codec, nid, coef_idx);
208 __alc_write_coefex_idx(codec, nid, coef_idx,
212 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
217 __alc_update_coefex_idx(codec, nid, coef_idx, mask, bits_set);
236 unsigned char nid;
243 { .nid = (_nid), .idx = (_idx), .mask = (_mask), .val = (_val) }
252 for (; fw->nid; fw++) {
254 __alc_write_coefex_idx(codec, fw->nid, fw->idx, fw->val);
256 __alc_update_coefex_idx(codec, fw->nid, fw->idx,
366 static void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid,
370 spec->pll_nid = nid;
390 val = snd_hda_codec_read(codec, jack->nid, 0,
536 static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on)
538 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN)
540 if (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)
541 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_EAPD_BTLENABLE,
573 if (pin->nid != mic_pin)
574 snd_hda_codec_read(codec, pin->nid, 0,
683 unsigned nid = 0;
701 nid = 0x1d;
703 nid = 0x17;
704 ass = snd_hda_codec_get_pincfg(codec, nid);
733 nid, spec->cdefine.sku_cfg);
748 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums)
752 if (list[i] == nid)
757 static bool found_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums)
759 return find_idx_in_nid_list(nid, list, nums) >= 0;
774 unsigned nid;
798 nid = 0x1d;
800 nid = 0x17;
801 ass = snd_hda_codec_get_pincfg(codec, nid);
804 ass, nid);
860 hda_nid_t nid;
862 nid = ports[tmp];
863 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins,
866 spec->gen.autocfg.hp_pins[0] = nid;
1118 static int set_beep_amp(struct alc_spec *spec, hda_nid_t nid,
1122 unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir);
1161 #define set_beep_amp(spec, nid, idx, dir) 0
3247 snd_hda_jack_set_button_state(codec, jack->nid, report);
4326 hda_nid_t nid,
4331 if (power_state != AC_PWRST_D3 || nid == 0 ||
4332 (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid))
4336 snd_hda_set_pin_ctl(codec, nid,
4337 snd_hda_codec_get_pin_target(codec, nid));
4339 return snd_hda_gen_path_power_filter(codec, nid, power_state);
4774 unsigned char nid;
4797 alc_write_coef_idx(codec, 0x22, amps[i].nid);
6127 /* Returns the nid of the external mic input pin, or 0 if it cannot be found. */
6132 hda_nid_t nid;
6139 nid = cfg->inputs[i].pin;
6140 defcfg = snd_hda_codec_get_pincfg(codec, nid);
6143 return nid;
6181 hda_nid_t nid = cfg->inputs[i].pin;
6185 defcfg = snd_hda_codec_get_pincfg(codec, nid);
6189 snd_hda_override_amp_caps(codec, nid, HDA_INPUT,
11786 hda_nid_t nid,
11790 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data)