• Home
  • Raw
  • Download

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 int snd_hda_codec_amp_read(struct hda_codec *codec, hda_nid_t nid, int ch,
132 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch,
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,
142 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,
382 hda_nid_t nid; member
559 int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid);
560 int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid,
566 static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) in get_wcaps() argument
568 if (nid < codec->start_nid || in get_wcaps()
569 nid >= codec->start_nid + codec->num_nodes) in get_wcaps()
571 return codec->wcaps[nid - codec->start_nid]; in get_wcaps()
593 hda_nid_t nid, u32 val) in snd_hda_override_wcaps() argument
595 if (nid >= codec->start_nid && in snd_hda_override_wcaps()
596 nid < codec->start_nid + codec->num_nodes) in snd_hda_override_wcaps()
597 codec->wcaps[nid - codec->start_nid] = val; in snd_hda_override_wcaps()
600 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction);
601 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir,
603 u32 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid);
604 int snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid,
606 bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid,
609 #define nid_has_mute(codec, nid, dir) \ argument
610 snd_hda_check_amp_caps(codec, nid, dir, (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE))
611 #define nid_has_volume(codec, nid, dir) \ argument
612 snd_hda_check_amp_caps(codec, nid, dir, AC_AMPCAP_NUM_STEPS)
621 hda_nid_t nid; member
625 int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid,
628 unsigned int index, hda_nid_t nid);
676 hda_nid_t nid; member
688 hda_nid_t nid);
692 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, in snd_hda_check_power_state() argument
695 unsigned int state = snd_hda_codec_read(codec, nid, 0, in snd_hda_check_power_state()
704 hda_nid_t nid,
778 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid);
779 int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid,
787 int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid,