• Home
  • Raw
  • Download

Lines Matching refs:val

34 	unsigned int val;  in lola_init_pin()  local
38 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in lola_init_pin()
43 val &= 0x00f00fff; /* test TYPE and bits 0..11 */ in lola_init_pin()
44 if (val == 0x00400200) /* Type = 4, Digital = 1 */ in lola_init_pin()
46 else if (val == 0x0040000a && dir == CAPT) /* Dig=0, InAmp/ovrd */ in lola_init_pin()
48 else if (val == 0x0040000c && dir == PLAY) /* Dig=0, OutAmp/ovrd */ in lola_init_pin()
51 dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); in lola_init_pin()
61 err = lola_read_param(chip, nid, LOLA_PAR_AMP_OUT_CAP, &val); in lola_init_pin()
63 err = lola_read_param(chip, nid, LOLA_PAR_AMP_IN_CAP, &val); in lola_init_pin()
69 pin->amp_mute = LOLA_AMP_MUTE_CAPABLE(val); in lola_init_pin()
70 pin->amp_step_size = LOLA_AMP_STEP_SIZE(val); in lola_init_pin()
71 pin->amp_num_steps = LOLA_AMP_NUM_STEPS(val); in lola_init_pin()
77 pin->amp_offset = LOLA_AMP_OFFSET(val); in lola_init_pin()
79 err = lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, in lola_init_pin()
85 pin->max_level = val & 0x3ff; /* 10 bits */ in lola_init_pin()
116 unsigned int val; in lola_init_mixer_widget() local
119 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in lola_init_mixer_widget()
125 if ((val & 0xfff00000) != 0x02f00000) { /* test SubType and Type */ in lola_init_mixer_widget()
131 chip->mixer.caps = val; in lola_init_mixer_widget()
150 LOLA_MIXER_SRC_INPUT_PLAY_SEPARATION(val); in lola_init_mixer_widget()
152 LOLA_MIXER_DEST_REC_OUTPUT_SEPARATION(val); in lola_init_mixer_widget()
224 unsigned int oldval, val; in lola_mixer_set_src_gain() local
228 oldval = val = readl(&chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
230 val |= (1 << id); in lola_mixer_set_src_gain()
232 val &= ~(1 << id); in lola_mixer_set_src_gain()
234 if ((val == oldval) && in lola_mixer_set_src_gain()
240 id, gain, val); in lola_mixer_set_src_gain()
242 writel(val, &chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
285 unsigned int val; in lola_mixer_set_mapping_gain() local
292 val = readl(&chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
294 val |= (1 << src); in lola_mixer_set_mapping_gain()
296 val &= ~(1 << src); in lola_mixer_set_mapping_gain()
297 writel(val, &chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
330 unsigned int idx, unsigned int val,
342 unsigned int val = mute ? 0 : pin[idx].cur_gain_step; in lola_setup_all_analog_gains() local
344 set_analog_volume(chip, dir, idx, val, false); in lola_setup_all_analog_gains()
397 unsigned int idx, unsigned int val, in set_analog_volume() argument
406 if (!pin->is_analog || pin->amp_num_steps <= val) in set_analog_volume()
408 if (external_call && pin->cur_gain_step == val) in set_analog_volume()
414 dir, idx, val); in set_analog_volume()
416 LOLA_VERB_SET_AMP_GAIN_MUTE, val, 0); in set_analog_volume()
420 pin->cur_gain_step = val; in set_analog_volume()
695 unsigned short val; in lola_src_gain_get() local
699 val = readw(&chip->mixer.array->src_gain[idx]) + 1; in lola_src_gain_get()
701 val = 0; in lola_src_gain_get()
702 ucontrol->value.integer.value[i] = val; in lola_src_gain_get()
717 unsigned short val = ucontrol->value.integer.value[i]; in lola_src_gain_put() local
718 if (val) in lola_src_gain_put()
719 val--; in lola_src_gain_put()
720 err = lola_mixer_set_src_gain(chip, idx, val, !!val); in lola_src_gain_put()
778 unsigned short val;
782 val = readw(&chip->mixer.array->dest_mix_gain[dst][src]) + 1;
784 val = 0;
785 ucontrol->value.integer.value[i] = val;
804 unsigned short val = ucontrol->value.integer.value[i];
805 if (val) {
806 gains[num++] = val - 1;