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 */
1362 /* try to assign DACs to pins and return the resultant badness */
1364 const hda_nid_t *pins, hda_nid_t *dacs,
1378 hda_nid_t pin = pins[i];
1491 /* count the number of input pins that are capable to be multi-io */
1516 * When hardwired is set, try to fill ony hardwired pins, and returns
1517 * zero if any pins are filled, non-zero if nothing found.
1518 * When hardwired is off, try to fill possible input pins, and returns
1606 /* map DACs for all pins in the list if they are single connections */
1608 const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx)
1618 dac = get_dac_if_single(codec, pins[i]);
1621 path = snd_hda_add_new_path(codec, dac, pins[i],
1624 path = snd_hda_add_new_path(codec, dac, pins[i], 0);
2739 hda_nid_t *pins)
2745 hda_nid_t pin = pins[i];
2888 /* no jack mode for fixed pins */
3177 /* filter out invalid adc_nids that don't give all active input pins;
3286 * create playback/capture controls for input pins
3887 /* check only line-in and mic pins */
4332 const hda_nid_t *pins, bool on)
4338 for (i = 0; i < num_pins && pins[i]; i++) {
4339 if (is_jack_detectable(codec, pins[i]))
4340 snd_hda_jack_detect_enable_callback(codec, pins[i], cb);
4342 set_path_power(codec, pins[i], true, -1);
4347 * the digital I/O pins are excluded because of the unreliable detectsion
4366 /* sync path power up/down with the jack states of given pins */
4368 const hda_nid_t *pins)
4372 for (i = 0; i < num_pins && pins[i]; i++)
4373 if (is_jack_detectable(codec, pins[i]))
4374 set_pin_power_jack(codec, pins[i], -1);
4377 /* sync path power up/down with pins; called at init and resume */
4397 int num_pins, const hda_nid_t *pins)
4404 if (!pins[i])
4406 if (get_nid_path(codec, nid, pins[i], 0))
4414 path->path[1] = pins[i];
4481 static bool detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins)
4487 hda_nid_t nid = pins[i];
4490 /* don't detect pins retasked as inputs */
4500 static void do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins,
4507 hda_nid_t nid = pins[i];
4571 /* Control HP pins/amps depending on master_mute state;
4572 * in general, HP pins/amps control should be enabled in all cases,
4634 hda_nid_t *pins = spec->autocfg.hp_pins;
4639 pins++;
4643 spec->hp_jack_present = detect_jacks(codec, num_pins, pins);
4691 /* don't detect pins retasked as outputs */
4908 /* check whether all auto-mic pins are valid; setup indices if OK */
5158 /* check the multiple speaker and headphone pins */
5992 /* set up input pins and loopback paths */
6059 /* clear unsol-event tags on unused pins; Conexant codecs seem to leave