Lines Matching refs:ucontrol

405 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)  in snd_cs4236_get_single()  argument
415 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single()
418 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single()
422 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument
433 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_single()
451 …atic int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_singlec() argument
461 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; in snd_cs4236_get_singlec()
464 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_singlec()
468 …atic int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_singlec() argument
479 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_singlec()
518 static int snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_double() argument
530 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(left_reg)] >> shift_left) & mask; in snd_cs4236_get_double()
531 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double()
534 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_double()
535 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_cs4236_get_double()
540 static int snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_double() argument
553 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double()
554 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
594 …atic int snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_double1() argument
606 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; in snd_cs4236_get_double1()
607 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double1()
610 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_double1()
611 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_cs4236_get_double1()
616 …atic int snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_double1() argument
629 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double1()
630 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1()
660 …t snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_master_digital() argument
666ucontrol->value.integer.value[0] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS42… in snd_cs4236_get_master_digital()
667ucontrol->value.integer.value[1] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS42… in snd_cs4236_get_master_digital()
672 …t snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_master_digital() argument
679 val1 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[0] & 0x7f); in snd_cs4236_put_master_digital()
680 val2 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[1] & 0x7f); in snd_cs4236_put_master_digital()
721 … int snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4235_get_output_accu() argument
727ucontrol->value.integer.value[0] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_LEFT… in snd_cs4235_get_output_accu()
728ucontrol->value.integer.value[1] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_RIGH… in snd_cs4235_get_output_accu()
733 … int snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4235_put_output_accu() argument
740 val1 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[0]); in snd_cs4235_put_output_accu()
741 val2 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[1]); in snd_cs4235_put_output_accu()
931 …nt snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_iec958_switch() argument
937 ucontrol->value.integer.value[0] = chip->image[CS4231_ALT_FEATURE_1] & 0x02 ? 1 : 0; in snd_cs4236_get_iec958_switch()
952 …nt snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_iec958_switch() argument
959 enable = ucontrol->value.integer.value[0] & 1; in snd_cs4236_put_iec958_switch()