Lines Matching defs:pins

227 /* set pinctl target values for all given pins */
229 hda_nid_t *pins, unsigned int val)
233 set_pin_target(codec, pins[i], val, false);
610 if (type == AC_WID_PIN && idx > 0) /* only for input pins */
624 if (type == AC_WID_PIN && !idx) /* only for output pins */
1368 /* try to assign DACs to pins and return the resultant badness */
1370 const hda_nid_t *pins, hda_nid_t *dacs,
1384 hda_nid_t pin = pins[i];
1497 /* count the number of input pins that are capable to be multi-io */
1522 * When hardwired is set, try to fill ony hardwired pins, and returns
1523 * zero if any pins are filled, non-zero if nothing found.
1524 * When hardwired is off, try to fill possible input pins, and returns
1612 /* map DACs for all pins in the list if they are single connections */
1614 const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx)
1624 dac = get_dac_if_single(codec, pins[i]);
1627 path = snd_hda_add_new_path(codec, dac, pins[i],
1630 path = snd_hda_add_new_path(codec, dac, pins[i], 0);
2745 hda_nid_t *pins)
2751 hda_nid_t pin = pins[i];
2894 /* no jack mode for fixed pins */
3183 /* filter out invalid adc_nids that don't give all active input pins;
3292 * create playback/capture controls for input pins
3902 /* check only line-in and mic pins */
4221 const hda_nid_t *pins, bool on)
4227 for (i = 0; i < num_pins && pins[i]; i++) {
4228 if (is_jack_detectable(codec, pins[i]))
4229 snd_hda_jack_detect_enable_callback(codec, pins[i], cb);
4231 set_path_power(codec, pins[i], true, -1);
4236 * the digital I/O pins are excluded because of the unreliable detectsion
4255 /* sync path power up/down with the jack states of given pins */
4257 const hda_nid_t *pins)
4261 for (i = 0; i < num_pins && pins[i]; i++)
4262 if (is_jack_detectable(codec, pins[i]))
4263 set_pin_power_jack(codec, pins[i], -1);
4266 /* sync path power up/down with pins; called at init and resume */
4286 int num_pins, const hda_nid_t *pins)
4293 if (!pins[i])
4295 if (get_nid_path(codec, nid, pins[i], 0))
4303 path->path[1] = pins[i];
4370 static bool detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins)
4376 hda_nid_t nid = pins[i];
4379 /* don't detect pins retasked as inputs */
4389 static void do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins,
4396 hda_nid_t nid = pins[i];
4460 /* Control HP pins/amps depending on master_mute state;
4461 * in general, HP pins/amps control should be enabled in all cases,
4523 hda_nid_t *pins = spec->autocfg.hp_pins;
4528 pins++;
4532 spec->hp_jack_present = detect_jacks(codec, num_pins, pins);
4580 /* don't detect pins retasked as outputs */
4797 /* check whether all auto-mic pins are valid; setup indices if OK */
5050 /* check the multiple speaker and headphone pins */
5885 /* set up input pins and loopback paths */
5952 /* clear unsol-event tags on unused pins; Conexant codecs seem to leave