Lines Matching refs:value
23 info->value.integer.min = chip->model.dac_volume_min; in dac_volume_info()
24 info->value.integer.max = chip->model.dac_volume_max; in dac_volume_info()
29 struct snd_ctl_elem_value *value) in dac_volume_get() argument
36 value->value.integer.value[i] = chip->dac_volume[i]; in dac_volume_get()
42 struct snd_ctl_elem_value *value) in dac_volume_put() argument
51 if (value->value.integer.value[i] != chip->dac_volume[i]) { in dac_volume_put()
52 chip->dac_volume[i] = value->value.integer.value[i]; in dac_volume_put()
62 struct snd_ctl_elem_value *value) in dac_mute_get() argument
67 value->value.integer.value[0] = !chip->dac_mute; in dac_mute_get()
73 struct snd_ctl_elem_value *value) in dac_mute_put() argument
79 changed = (!value->value.integer.value[0]) != chip->dac_mute; in dac_mute_put()
81 chip->dac_mute = !value->value.integer.value[0]; in dac_mute_put()
113 static int upmix_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in upmix_get() argument
118 value->value.enumerated.item[0] = chip->dac_routing; in upmix_get()
183 static int upmix_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in upmix_put() argument
189 if (value->value.enumerated.item[0] >= count) in upmix_put()
192 changed = value->value.enumerated.item[0] != chip->dac_routing; in upmix_put()
194 chip->dac_routing = value->value.enumerated.item[0]; in upmix_put()
202 struct snd_ctl_elem_value *value) in spdif_switch_get() argument
207 value->value.integer.value[0] = chip->spdif_playback_enable; in spdif_switch_get()
277 struct snd_ctl_elem_value *value) in spdif_switch_put() argument
283 changed = value->value.integer.value[0] != chip->spdif_playback_enable; in spdif_switch_put()
285 chip->spdif_playback_enable = !!value->value.integer.value[0]; in spdif_switch_put()
301 static void oxygen_to_iec958(u32 bits, struct snd_ctl_elem_value *value) in oxygen_to_iec958() argument
303 value->value.iec958.status[0] = in oxygen_to_iec958()
306 value->value.iec958.status[1] = /* category and original */ in oxygen_to_iec958()
310 static u32 iec958_to_oxygen(struct snd_ctl_elem_value *value) in iec958_to_oxygen() argument
314 bits = value->value.iec958.status[0] & in iec958_to_oxygen()
317 bits |= value->value.iec958.status[1] << OXYGEN_SPDIF_CATEGORY_SHIFT; in iec958_to_oxygen()
335 struct snd_ctl_elem_value *value) in spdif_default_get() argument
340 oxygen_to_iec958(chip->spdif_bits, value); in spdif_default_get()
346 struct snd_ctl_elem_value *value) in spdif_default_put() argument
352 new_bits = iec958_to_oxygen(value); in spdif_default_put()
365 struct snd_ctl_elem_value *value) in spdif_mask_get() argument
367 value->value.iec958.status[0] = IEC958_AES0_NONAUDIO | in spdif_mask_get()
369 value->value.iec958.status[1] = in spdif_mask_get()
375 struct snd_ctl_elem_value *value) in spdif_pcm_get() argument
380 oxygen_to_iec958(chip->spdif_pcm_bits, value); in spdif_pcm_get()
386 struct snd_ctl_elem_value *value) in spdif_pcm_put() argument
392 new_bits = iec958_to_oxygen(value); in spdif_pcm_put()
405 struct snd_ctl_elem_value *value) in spdif_input_mask_get() argument
407 value->value.iec958.status[0] = 0xff; in spdif_input_mask_get()
408 value->value.iec958.status[1] = 0xff; in spdif_input_mask_get()
409 value->value.iec958.status[2] = 0xff; in spdif_input_mask_get()
410 value->value.iec958.status[3] = 0xff; in spdif_input_mask_get()
415 struct snd_ctl_elem_value *value) in spdif_input_default_get() argument
421 value->value.iec958.status[0] = bits; in spdif_input_default_get()
422 value->value.iec958.status[1] = bits >> 8; in spdif_input_default_get()
423 value->value.iec958.status[2] = bits >> 16; in spdif_input_default_get()
424 value->value.iec958.status[3] = bits >> 24; in spdif_input_default_get()
429 struct snd_ctl_elem_value *value) in spdif_bit_switch_get() argument
434 value->value.integer.value[0] = in spdif_bit_switch_get()
440 struct snd_ctl_elem_value *value) in spdif_bit_switch_put() argument
449 if (value->value.integer.value[0]) in spdif_bit_switch_put()
465 info->value.integer.min = 0; in monitor_volume_info()
466 info->value.integer.max = 1; in monitor_volume_info()
471 struct snd_ctl_elem_value *value) in monitor_get() argument
477 value->value.integer.value[0] = in monitor_get()
483 struct snd_ctl_elem_value *value) in monitor_put() argument
493 if ((!!value->value.integer.value[0] ^ !!invert) != 0) in monitor_put()
505 struct snd_ctl_elem_value *value) in ac97_switch_get() argument
518 value->value.integer.value[0] = 1; in ac97_switch_get()
520 value->value.integer.value[0] = 0; in ac97_switch_get()
527 u16 value; in mute_ac97_ctl() local
532 value = oxygen_read_ac97(chip, 0, priv_idx); in mute_ac97_ctl()
533 if (!(value & 0x8000)) { in mute_ac97_ctl()
534 oxygen_write_ac97(chip, 0, priv_idx, value | 0x8000); in mute_ac97_ctl()
543 struct snd_ctl_elem_value *value) in ac97_switch_put() argument
556 if (!value->value.integer.value[0] ^ !invert) in ac97_switch_put()
593 info->value.integer.min = 0; in ac97_volume_info()
594 info->value.integer.max = 0x1f; in ac97_volume_info()
599 struct snd_ctl_elem_value *value) in ac97_volume_get() argument
611 value->value.integer.value[0] = 31 - (reg & 0x1f); in ac97_volume_get()
613 value->value.integer.value[0] = 31 - ((reg >> 8) & 0x1f); in ac97_volume_get()
614 value->value.integer.value[1] = 31 - (reg & 0x1f); in ac97_volume_get()
620 struct snd_ctl_elem_value *value) in ac97_volume_put() argument
633 newreg |= 31 - (value->value.integer.value[0] & 0x1f); in ac97_volume_put()
636 newreg |= (31 - (value->value.integer.value[0] & 0x1f)) << 8; in ac97_volume_put()
637 newreg |= 31 - (value->value.integer.value[1] & 0x1f); in ac97_volume_put()
655 struct snd_ctl_elem_value *value) in mic_fmic_source_get() argument
660 value->value.enumerated.item[0] = in mic_fmic_source_get()
667 struct snd_ctl_elem_value *value) in mic_fmic_source_put() argument
675 if (value->value.enumerated.item[0]) in mic_fmic_source_put()
691 info->value.integer.min = 0; in ac97_fp_rec_volume_info()
692 info->value.integer.max = 7; in ac97_fp_rec_volume_info()
697 struct snd_ctl_elem_value *value) in ac97_fp_rec_volume_get() argument
705 value->value.integer.value[0] = reg & 7; in ac97_fp_rec_volume_get()
706 value->value.integer.value[1] = (reg >> 8) & 7; in ac97_fp_rec_volume_get()
711 struct snd_ctl_elem_value *value) in ac97_fp_rec_volume_put() argument
720 newreg = newreg | (value->value.integer.value[0] & 7); in ac97_fp_rec_volume_put()
721 newreg = newreg | ((value->value.integer.value[1] & 7) << 8); in ac97_fp_rec_volume_put()