Lines Matching refs:dir

19 			 int dir, int nid)  in lola_init_pin()  argument
33 else if (val == 0x0040000a && dir == CAPT) /* Dig=0, InAmp/ovrd */ in lola_init_pin()
35 else if (val == 0x0040000c && dir == PLAY) /* Dig=0, OutAmp/ovrd */ in lola_init_pin()
47 if (dir == PLAY) in lola_init_pin()
81 int lola_init_pins(struct lola *chip, int dir, int *nidp) in lola_init_pins() argument
85 for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { in lola_init_pins()
86 err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); in lola_init_pins()
89 if (chip->pin[dir].pins[i].is_analog) in lola_init_pins()
90 chip->pin[dir].num_analog_pins++; in lola_init_pins()
318 static int set_analog_volume(struct lola *chip, int dir,
322 int lola_setup_all_analog_gains(struct lola *chip, int dir, bool mute) in lola_setup_all_analog_gains() argument
327 pin = chip->pin[dir].pins; in lola_setup_all_analog_gains()
328 max_idx = chip->pin[dir].num_pins; in lola_setup_all_analog_gains()
333 set_analog_volume(chip, dir, idx, val, false); in lola_setup_all_analog_gains()
385 static int set_analog_volume(struct lola *chip, int dir, in set_analog_volume() argument
392 if (idx >= chip->pin[dir].num_pins) in set_analog_volume()
394 pin = &chip->pin[dir].pins[idx]; in set_analog_volume()
403 dir, idx, val); in set_analog_volume()
505 int dir = kcontrol->private_value; in lola_analog_vol_info() local
508 uinfo->count = chip->pin[dir].num_pins; in lola_analog_vol_info()
510 uinfo->value.integer.max = chip->pin[dir].pins[0].amp_num_steps; in lola_analog_vol_info()
518 int dir = kcontrol->private_value; in lola_analog_vol_get() local
521 for (i = 0; i < chip->pin[dir].num_pins; i++) in lola_analog_vol_get()
523 chip->pin[dir].pins[i].cur_gain_step; in lola_analog_vol_get()
531 int dir = kcontrol->private_value; in lola_analog_vol_put() local
534 for (i = 0; i < chip->pin[dir].num_pins; i++) { in lola_analog_vol_put()
535 err = set_analog_volume(chip, dir, i, in lola_analog_vol_put()
548 int dir = kcontrol->private_value; in lola_analog_vol_tlv() local
554 pin = &chip->pin[dir].pins[0]; in lola_analog_vol_tlv()
583 static int create_analog_mixer(struct lola *chip, int dir, char *name) in create_analog_mixer() argument
585 if (!chip->pin[dir].num_pins) in create_analog_mixer()
588 if (chip->pin[dir].num_pins != chip->pin[dir].num_analog_pins) in create_analog_mixer()
591 lola_analog_mixer.private_value = dir; in create_analog_mixer()