Lines Matching refs:ucontrol
403 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument
413 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single()
416 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single()
420 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument
431 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_single()
449 …atic int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_singlec() argument
459 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; in snd_cs4236_get_singlec()
462 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_singlec()
466 …atic int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_singlec() argument
477 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_singlec()
516 static int snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_double() argument
528 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(left_reg)] >> shift_left) & mask; in snd_cs4236_get_double()
529 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double()
532 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_double()
533 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_cs4236_get_double()
538 static int snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_double() argument
551 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double()
552 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
592 …atic int snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_double1() argument
604 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; in snd_cs4236_get_double1()
605 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double1()
608 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_double1()
609 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_cs4236_get_double1()
614 …atic int snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_double1() argument
627 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double1()
628 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1()
658 …t snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_master_digital() argument
664 …ucontrol->value.integer.value[0] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS42… in snd_cs4236_get_master_digital()
665 …ucontrol->value.integer.value[1] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS42… in snd_cs4236_get_master_digital()
670 …t snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_master_digital() argument
677 val1 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[0] & 0x7f); in snd_cs4236_put_master_digital()
678 val2 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[1] & 0x7f); in snd_cs4236_put_master_digital()
719 … int snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4235_get_output_accu() argument
725 …ucontrol->value.integer.value[0] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_LEFT… in snd_cs4235_get_output_accu()
726 …ucontrol->value.integer.value[1] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_RIGH… in snd_cs4235_get_output_accu()
731 … int snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4235_put_output_accu() argument
738 val1 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[0]); in snd_cs4235_put_output_accu()
739 val2 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[1]); in snd_cs4235_put_output_accu()
929 …nt snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_iec958_switch() argument
935 ucontrol->value.integer.value[0] = chip->image[CS4231_ALT_FEATURE_1] & 0x02 ? 1 : 0; in snd_cs4236_get_iec958_switch()
950 …nt snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_iec958_switch() argument
957 enable = ucontrol->value.integer.value[0] & 1; in snd_cs4236_put_iec958_switch()