Lines Matching refs:nid
26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument
27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument
30 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0)
32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument
42 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags }
44 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
45 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0)
47 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
48 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
50 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
51 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
53 #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ argument
54 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, 3, xindex, direction, \
57 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
63 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
65 #define HDA_CODEC_MUTE_IDX(xname, xcidx, nid, xindex, direction) \ argument
66 HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, 3, xindex, direction)
68 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument
69 HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction)
71 #define HDA_CODEC_MUTE(xname, nid, xindex, direction) \ argument
72 HDA_CODEC_MUTE_MONO(xname, nid, 3, xindex, direction)
75 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
81 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
84 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) \ argument
85 HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir)
88 #define HDA_CODEC_MUTE_BEEP_MONO(xname, nid, channel, xindex, direction) \ argument
89 HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, 0, nid, channel, xindex, direction)
91 #define HDA_CODEC_MUTE_BEEP(xname, nid, xindex, direction) \ argument
92 HDA_CODEC_MUTE_BEEP_MONO(xname, nid, 3, xindex, direction)
117 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument
118 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx)
119 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid,
121 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid,
123 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch,
125 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid,
127 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
169 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid);
188 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,
272 hda_nid_t nid; member
460 int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid);
461 int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid,
464 #define for_each_hda_codec_node(nid, codec) \ argument
465 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++)
479 static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) in get_wcaps() argument
481 if (nid < codec->core.start_nid || in get_wcaps()
482 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps()
484 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
506 hda_nid_t nid, u32 val) in snd_hda_override_wcaps() argument
508 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps()
509 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps()
510 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
513 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction);
514 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir,
528 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) in snd_hda_query_pin_caps() argument
530 return snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); in snd_hda_query_pin_caps()
545 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, in snd_hda_override_pin_caps() argument
548 return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps); in snd_hda_override_pin_caps()
551 bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid,
554 #define nid_has_mute(codec, nid, dir) \ argument
555 snd_hda_check_amp_caps(codec, nid, dir, (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE))
556 #define nid_has_volume(codec, nid, dir) \ argument
557 snd_hda_check_amp_caps(codec, nid, dir, AC_AMPCAP_NUM_STEPS)
566 hda_nid_t nid; member
570 int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid,
573 unsigned int index, hda_nid_t nid);
621 hda_nid_t nid; member
633 hda_nid_t nid);
637 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, in snd_hda_check_power_state() argument
640 return snd_hdac_check_power_state(&codec->core, nid, target_state); in snd_hda_check_power_state()
644 hda_nid_t nid, in snd_hda_sync_power_state() argument
647 return snd_hdac_sync_power_state(&codec->core, nid, target_state); in snd_hda_sync_power_state()
650 hda_nid_t nid,
726 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid);
727 int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid,
735 int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid,