• Home
  • Raw
  • Download

Lines Matching refs:i

83 	int i, err, nid;  in lola_init_pins()  local
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()
240 int i;
244 for (i = 0; i < LOLA_MIXER_DIM; i++) {
245 if (mask & (1 << i)) {
246 writew(*gains, &chip->mixer.array->src_gain[i]);
258 for (i = 0; i < LOLA_MIXER_DIM; i++) {
259 if (mask & (1 << i)) {
261 LOLA_VERB_SET_SOURCE_GAIN, i, 0);
294 int i;
299 for (i = 0; i < LOLA_MIXER_DIM; i++) {
300 if (mask & (1 << i)) {
301 writew(*gains, &chip->mixer.array->dest_mix_gain[id][i]);
350 int i; in lola_restore_mixer() local
360 for (i = 0; i < chip->mixer.src_phys_ins; i++) in lola_restore_mixer()
363 i, 0); in lola_restore_mixer()
364 for (i = 0; i < chip->mixer.src_stream_outs; i++) in lola_restore_mixer()
367 chip->mixer.src_stream_out_ofs + i, 0); in lola_restore_mixer()
368 for (i = 0; i < chip->mixer.dest_stream_ins; i++) in lola_restore_mixer()
371 i, 0); in lola_restore_mixer()
372 for (i = 0; i < chip->mixer.dest_phys_outs; i++) in lola_restore_mixer()
375 chip->mixer.dest_phys_out_ofs + i, 0); in lola_restore_mixer()
451 int i; in init_mixer_values() local
459 for (i = 0; i < chip->mixer.dest_stream_ins; i++) in init_mixer_values()
462 i, 0); in init_mixer_values()
464 for (i = 0; i < chip->mixer.dest_phys_outs; i++) in init_mixer_values()
467 chip->mixer.dest_phys_out_ofs + i, 0); in init_mixer_values()
470 for (i = 0; i < chip->mixer.src_phys_ins; i++) in init_mixer_values()
471 lola_mixer_set_src_gain(chip, i, 336, true); /* 0dB */ in init_mixer_values()
474 for (i = 0; i < chip->mixer.src_stream_outs; i++) in init_mixer_values()
476 i + chip->mixer.src_stream_out_ofs, in init_mixer_values()
479 for (i = 0; i < chip->mixer.dest_stream_ins; i++) { in init_mixer_values()
480 int src = i % chip->mixer.src_phys_ins; in init_mixer_values()
481 lola_mixer_set_mapping_gain(chip, src, i, 336, true); in init_mixer_values()
487 for (i = 0; i < chip->mixer.src_stream_outs; i++) { in init_mixer_values()
488 int src = chip->mixer.src_stream_out_ofs + i; in init_mixer_values()
490 i % chip->mixer.dest_phys_outs; in init_mixer_values()
517 int i; in lola_analog_vol_get() local
519 for (i = 0; i < chip->pin[dir].num_pins; i++) in lola_analog_vol_get()
520 ucontrol->value.integer.value[i] = in lola_analog_vol_get()
521 chip->pin[dir].pins[i].cur_gain_step; in lola_analog_vol_get()
530 int i, err; in lola_analog_vol_put() local
532 for (i = 0; i < chip->pin[dir].num_pins; i++) { in lola_analog_vol_put()
533 err = set_analog_volume(chip, dir, i, in lola_analog_vol_put()
534 ucontrol->value.integer.value[i], in lola_analog_vol_put()
613 int i; in lola_input_src_get() local
615 for (i = 0; i < chip->pin[CAPT].num_pins; i++) in lola_input_src_get()
616 ucontrol->value.integer.value[i] = in lola_input_src_get()
617 !!(chip->input_src_mask & (1 << i)); in lola_input_src_get()
625 int i; in lola_input_src_put() local
629 for (i = 0; i < chip->pin[CAPT].num_pins; i++) in lola_input_src_put()
630 if (ucontrol->value.integer.value[i]) in lola_input_src_put()
631 mask |= 1 << i; in lola_input_src_put()
677 unsigned int mask, i; in lola_src_gain_get() local
680 for (i = 0; i < count; i++) { in lola_src_gain_get()
681 unsigned int idx = ofs + i; in lola_src_gain_get()
689 ucontrol->value.integer.value[i] = val; in lola_src_gain_get()
700 int i, err; in lola_src_gain_put() local
702 for (i = 0; i < count; i++) { in lola_src_gain_put()
703 unsigned int idx = ofs + i; in lola_src_gain_put()
704 unsigned short val = ucontrol->value.integer.value[i]; in lola_src_gain_put()
759 unsigned int dst, mask, i;
763 for (i = 0; i < src_num; i++) {
764 unsigned int src = src_ofs + i;
772 ucontrol->value.integer.value[i] = val;
786 int i, num;
790 for (i = 0; i < src_num; i++) {
791 unsigned short val = ucontrol->value.integer.value[i];
794 mask |= 1 << i;