Lines Matching refs:nid
39 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument
40 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
42 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument
43 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0)
45 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument
55 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags }
57 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
58 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0)
60 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
61 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
63 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
64 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
66 #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ argument
67 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, 3, xindex, direction, \
70 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
76 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
78 #define HDA_CODEC_MUTE_IDX(xname, xcidx, nid, xindex, direction) \ argument
79 HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, 3, xindex, direction)
81 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument
82 HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction)
84 #define HDA_CODEC_MUTE(xname, nid, xindex, direction) \ argument
85 HDA_CODEC_MUTE_MONO(xname, nid, 3, xindex, direction)
88 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
94 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
97 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) \ argument
98 HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir)
101 #define HDA_CODEC_MUTE_BEEP_MONO(xname, nid, channel, xindex, direction) \ argument
102 HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, 0, nid, channel, xindex, direction)
104 #define HDA_CODEC_MUTE_BEEP(xname, nid, xindex, direction) \ argument
105 HDA_CODEC_MUTE_BEEP_MONO(xname, nid, 3, xindex, direction)
130 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument
131 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx)
132 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid,
134 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid,
136 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch,
138 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid,
140 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
182 #define HDA_BIND_MUTE_MONO(xname, nid, channel, indices, direction) \ argument
187 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, indices, direction) }
190 #define HDA_BIND_MUTE(xname,nid,indices,dir) \ argument
191 HDA_BIND_MUTE_MONO(xname,nid,3,indices,dir)
250 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid);
269 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,
353 hda_nid_t nid; member
513 int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid);
514 int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid,
517 #define for_each_hda_codec_node(nid, codec) \ argument
518 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++)
523 static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) in get_wcaps() argument
525 if (nid < codec->core.start_nid || in get_wcaps()
526 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps()
528 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
550 hda_nid_t nid, u32 val) in snd_hda_override_wcaps() argument
552 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps()
553 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps()
554 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
557 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction);
558 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir,
572 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) in snd_hda_query_pin_caps() argument
574 return snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); in snd_hda_query_pin_caps()
589 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, in snd_hda_override_pin_caps() argument
592 return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps); in snd_hda_override_pin_caps()
595 bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid,
598 #define nid_has_mute(codec, nid, dir) \ argument
599 snd_hda_check_amp_caps(codec, nid, dir, (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE))
600 #define nid_has_volume(codec, nid, dir) \ argument
601 snd_hda_check_amp_caps(codec, nid, dir, AC_AMPCAP_NUM_STEPS)
610 hda_nid_t nid; member
614 int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid,
617 unsigned int index, hda_nid_t nid);
665 hda_nid_t nid; member
677 hda_nid_t nid);
681 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, in snd_hda_check_power_state() argument
684 return snd_hdac_check_power_state(&codec->core, nid, target_state); in snd_hda_check_power_state()
688 hda_nid_t nid,
762 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid);
763 int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid,
771 int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid,