Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 19 of 19) sorted by relevance

/sound/pci/hda/
Dhda_proc.c50 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument
53 caps = snd_hda_param_read(codec, nid, in print_amp_caps()
69 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals() argument
79 val = snd_hda_codec_read(codec, nid, 0, in print_amp_vals()
84 val = snd_hda_codec_read(codec, nid, 0, in print_amp_vals()
125 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps() argument
127 unsigned int pcm = snd_hda_param_read(codec, nid, AC_PAR_PCM); in print_pcm_caps()
128 unsigned int stream = snd_hda_param_read(codec, nid, AC_PAR_STREAM); in print_pcm_caps()
169 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps() argument
175 caps = snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); in print_pin_caps()
[all …]
Dhda_local.h29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument
30 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19))
32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
41 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
43 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
44 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction)
46 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
47 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction)
49 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
50 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
[all …]
Dhda_codec.c147 make_codec_cmd(struct hda_codec *codec, hda_nid_t nid, int direct, in make_codec_cmd() argument
154 val |= (u32)nid << 20; in make_codec_cmd()
172 unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument
179 res = make_codec_cmd(codec, nid, direct, verb, parm); in snd_hda_codec_read()
204 int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int direct, in snd_hda_codec_write() argument
211 res = make_codec_cmd(codec, nid, direct, verb, parm); in snd_hda_codec_write()
231 for (; seq->nid; seq++) in snd_hda_sequence_write()
232 snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); in snd_hda_sequence_write()
245 int snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_sub_nodes() argument
250 parm = snd_hda_param_read(codec, nid, AC_PAR_NODE_COUNT); in snd_hda_get_sub_nodes()
[all …]
Dhda_generic.c31 hda_nid_t nid; /* NID of this widget */ member
114 static int add_new_node(struct hda_codec *codec, struct hda_gspec *spec, hda_nid_t nid) in add_new_node() argument
123 node->nid = nid; in add_new_node()
124 nconns = snd_hda_get_connections(codec, nid, conn_list, in add_new_node()
143 node->wid_caps = get_wcaps(codec, nid); in add_new_node()
147 node->pin_caps = snd_hda_param_read(codec, node->nid, AC_PAR_PIN_CAP); in add_new_node()
148 node->pin_ctl = snd_hda_codec_read(codec, node->nid, 0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0); in add_new_node()
149 node->def_cfg = snd_hda_codec_read(codec, node->nid, 0, AC_VERB_GET_CONFIG_DEFAULT, 0); in add_new_node()
154 node->amp_out_caps = snd_hda_param_read(codec, node->nid, AC_PAR_AMP_OUT_CAP); in add_new_node()
160 node->amp_in_caps = snd_hda_param_read(codec, node->nid, AC_PAR_AMP_IN_CAP); in add_new_node()
[all …]
Dpatch_sigmatel.c148 hda_nid_t nid; member
155 hda_nid_t nid; member
505 hda_nid_t nid = spec->amp_nids[spec->cur_amux]; in stac92xx_amp_volume_get() local
508 kcontrol->private_value |= nid; in stac92xx_amp_volume_get()
518 hda_nid_t nid = spec->amp_nids[spec->cur_amux]; in stac92xx_amp_volume_put() local
521 kcontrol->private_value |= nid; in stac92xx_amp_volume_put()
583 hda_nid_t nid; in stac92xx_smux_enum_put() local
592 nid = spec->multiout.dig_out_nid; in stac92xx_smux_enum_put()
594 nid = codec->slave_dig_outs[smux_idx - 1]; in stac92xx_smux_enum_put()
600 snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, in stac92xx_smux_enum_put()
[all …]
Dpatch_via.c150 hda_nid_t nid = get_amp_nid(kcontrol); in mic_boost_tlv() local
153 && (nid == 0x1a || nid == 0x1e)) { in mic_boost_tlv()
172 hda_nid_t nid = get_amp_nid(kcontrol); in mic_boost_volume_info() local
175 && (nid == 0x1a || nid == 0x1e)) { in mic_boost_volume_info()
314 hda_nid_t nid, int pin_type, in via_auto_set_output_and_unmute() argument
318 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, in via_auto_set_output_and_unmute()
320 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE, in via_auto_set_output_and_unmute()
331 hda_nid_t nid = spec->autocfg.line_out_pins[i]; in via_auto_init_multi_out() local
332 if (nid) in via_auto_init_multi_out()
333 via_auto_set_output_and_unmute(codec, nid, PIN_OUT, i); in via_auto_init_multi_out()
[all …]
Dpatch_realtek.c389 hda_nid_t nid = spec->capsrc_nids ? in alc_mux_enum_put() local
407 snd_hda_codec_amp_stereo(codec, nid, HDA_INPUT, in alc_mux_enum_put()
415 return snd_hda_input_mux_put(codec, imux, ucontrol, nid, in alc_mux_enum_put()
524 hda_nid_t nid = kcontrol->private_value & 0xffff; in alc_pin_mode_get() local
527 unsigned int pinctl = snd_hda_codec_read(codec, nid, 0, in alc_pin_mode_get()
544 hda_nid_t nid = kcontrol->private_value & 0xffff; in alc_pin_mode_put() local
547 unsigned int pinctl = snd_hda_codec_read(codec, nid, 0, in alc_pin_mode_put()
557 snd_hda_codec_write_cache(codec, nid, 0, in alc_pin_mode_put()
572 snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, in alc_pin_mode_put()
574 snd_hda_codec_amp_stereo(codec, nid, HDA_INPUT, 0, in alc_pin_mode_put()
[all …]
Dpatch_cmedia.c351 hda_nid_t nid; in cmi9880_fill_multi_dac_nids() local
360 nid = cfg->line_out_pins[i]; in cmi9880_fill_multi_dac_nids()
362 if (nid >= 0x0b && nid <= 0x0e) { in cmi9880_fill_multi_dac_nids()
363 spec->dac_nids[i] = (nid - 0x0b) + 0x03; in cmi9880_fill_multi_dac_nids()
364 assigned[nid - 0x0b] = 1; in cmi9880_fill_multi_dac_nids()
369 nid = cfg->line_out_pins[i]; in cmi9880_fill_multi_dac_nids()
370 if (nid <= 0x0e) in cmi9880_fill_multi_dac_nids()
389 hda_nid_t nid; in cmi9880_fill_multi_init() local
396 nid = cfg->line_out_pins[i]; in cmi9880_fill_multi_init()
398 spec->multi_init[j].nid = nid; in cmi9880_fill_multi_init()
[all …]
Dhda_codec.h667 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
707 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member
802 struct hda_codec *codec, hda_nid_t nid);
822 unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid,
825 int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int direct,
827 #define snd_hda_param_read(codec, nid, param) \ argument
828 snd_hda_codec_read(codec, nid, 0, AC_VERB_PARAMETERS, param)
829 int snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid,
831 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
835 hda_nid_t nid; member
[all …]
Dpatch_conexant.c51 hda_nid_t nid; member
201 .nid = 0, /* fill later */
213 .nid = 0, /* fill later */
225 .nid = 0, /* fill later */
268 .nid = 0, /* fill later */
287 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = in conexant_build_pcms()
296 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adc_nids[0]; in conexant_build_pcms()
305 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = in conexant_build_pcms()
310 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = in conexant_build_pcms()
352 hda_nid_t nid, int type) in conexant_add_jack() argument
[all …]
Dhda_eld.c146 static unsigned char hdmi_get_eld_byte(struct hda_codec *codec, hda_nid_t nid, in hdmi_get_eld_byte() argument
151 val = snd_hda_codec_read(codec, nid, 0, in hdmi_get_eld_byte()
312 static int hdmi_present_sense(struct hda_codec *codec, hda_nid_t nid) in hdmi_present_sense() argument
314 return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PIN_SENSE, 0); in hdmi_present_sense()
317 static int hdmi_eld_valid(struct hda_codec *codec, hda_nid_t nid) in hdmi_eld_valid() argument
322 present = hdmi_present_sense(codec, nid); in hdmi_eld_valid()
334 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid) in snd_hdmi_get_eld_size() argument
336 return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_HDMI_DIP_SIZE, in snd_hdmi_get_eld_size()
341 struct hda_codec *codec, hda_nid_t nid) in snd_hdmi_get_eld() argument
348 if (!hdmi_eld_valid(codec, nid)) in snd_hdmi_get_eld()
[all …]
Dhda_beep.c44 snd_hda_codec_write_cache(codec, beep->nid, 0, in snd_hda_generate_beep()
79 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device() argument
119 snd_hda_codec_write(codec, nid, 0, in snd_hda_attach_beep_device()
122 beep->nid = nid; in snd_hda_attach_beep_device()
Dpatch_analog.c210 static int ad198x_check_power_status(struct hda_codec *codec, hda_nid_t nid) in ad198x_check_power_status() argument
213 return snd_hda_check_amp_list_power(codec, &spec->loopback, nid); in ad198x_check_power_status()
317 .nid = 0, /* fill later */
329 .nid = 0, /* fill later */
340 .nid = 0, /* fill later */
367 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->multiout.dac_nids[0]; in ad198x_build_pcms()
370 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adc_nids[0]; in ad198x_build_pcms()
378 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->multiout.dig_out_nid; in ad198x_build_pcms()
381 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in_nid; in ad198x_build_pcms()
448 hda_nid_t nid = kcontrol->private_value & 0xff; in ad198x_eapd_put() local
[all …]
Dhda_beep.h33 int nid; member
39 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
Dhda_hwdep.c281 int nid, verb, param; in init_verbs_store() local
283 if (sscanf(buf, "%i %i %i", &nid, &verb, &param) != 3) in init_verbs_store()
285 if (!nid || !verb) in init_verbs_store()
290 v->nid = nid; in init_verbs_store()
Dpatch_intelhdmi.c216 static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t nid, in hdmi_get_dip_index() argument
221 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_HDMI_DIP_INDEX, 0); in hdmi_get_dip_index()
228 static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t nid, in hdmi_set_dip_index() argument
235 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_HDMI_DIP_INDEX, val); in hdmi_set_dip_index()
238 static void hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t nid, in hdmi_write_dip_byte() argument
241 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_HDMI_DIP_DATA, val); in hdmi_write_dip_byte()
600 .nid = CVT_NID, /* NID to query formats and rates and setup streams */
Dpatch_si3054.c162 snd_hda_codec_setup_stream(codec, hinfo->nid, in si3054_pcm_prepare()
187 .nid = 0x1,
202 si3054_pcm.nid = codec->mfg; in si3054_build_pcms()
Dpatch_nvhdmi.c99 .nid = 0x4, /* NID to query formats and rates and setup streams */
Dpatch_atihdmi.c120 .nid = CVT_NID, /* NID to query formats and rates and setup streams */