Lines Matching refs:ucontrol
2316 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_control_get() argument
2323 ucontrol->value.integer.value[0] = val == kcontrol->private_value; in snd_trident_spdif_control_get()
2329 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_control_put() argument
2335 val = ucontrol->value.integer.value[0] ? (unsigned char) kcontrol->private_value : 0x00; in snd_trident_spdif_control_put()
2384 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_default_get() argument
2389 ucontrol->value.iec958.status[0] = (trident->spdif_bits >> 0) & 0xff; in snd_trident_spdif_default_get()
2390 ucontrol->value.iec958.status[1] = (trident->spdif_bits >> 8) & 0xff; in snd_trident_spdif_default_get()
2391 ucontrol->value.iec958.status[2] = (trident->spdif_bits >> 16) & 0xff; in snd_trident_spdif_default_get()
2392 ucontrol->value.iec958.status[3] = (trident->spdif_bits >> 24) & 0xff; in snd_trident_spdif_default_get()
2398 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_default_put() argument
2404 val = (ucontrol->value.iec958.status[0] << 0) | in snd_trident_spdif_default_put()
2405 (ucontrol->value.iec958.status[1] << 8) | in snd_trident_spdif_default_put()
2406 (ucontrol->value.iec958.status[2] << 16) | in snd_trident_spdif_default_put()
2407 (ucontrol->value.iec958.status[3] << 24); in snd_trident_spdif_default_put()
2446 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_mask_get() argument
2448 ucontrol->value.iec958.status[0] = 0xff; in snd_trident_spdif_mask_get()
2449 ucontrol->value.iec958.status[1] = 0xff; in snd_trident_spdif_mask_get()
2450 ucontrol->value.iec958.status[2] = 0xff; in snd_trident_spdif_mask_get()
2451 ucontrol->value.iec958.status[3] = 0xff; in snd_trident_spdif_mask_get()
2479 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_stream_get() argument
2484 ucontrol->value.iec958.status[0] = (trident->spdif_pcm_bits >> 0) & 0xff; in snd_trident_spdif_stream_get()
2485 ucontrol->value.iec958.status[1] = (trident->spdif_pcm_bits >> 8) & 0xff; in snd_trident_spdif_stream_get()
2486 ucontrol->value.iec958.status[2] = (trident->spdif_pcm_bits >> 16) & 0xff; in snd_trident_spdif_stream_get()
2487 ucontrol->value.iec958.status[3] = (trident->spdif_pcm_bits >> 24) & 0xff; in snd_trident_spdif_stream_get()
2493 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_stream_put() argument
2499 val = (ucontrol->value.iec958.status[0] << 0) | in snd_trident_spdif_stream_put()
2500 (ucontrol->value.iec958.status[1] << 8) | in snd_trident_spdif_stream_put()
2501 (ucontrol->value.iec958.status[2] << 16) | in snd_trident_spdif_stream_put()
2502 (ucontrol->value.iec958.status[3] << 24); in snd_trident_spdif_stream_put()
2536 struct snd_ctl_elem_value *ucontrol) in snd_trident_ac97_control_get() argument
2543 ucontrol->value.integer.value[0] = (val & (1 << kcontrol->private_value)) ? 1 : 0; in snd_trident_ac97_control_get()
2549 struct snd_ctl_elem_value *ucontrol) in snd_trident_ac97_control_put() argument
2558 if (ucontrol->value.integer.value[0]) in snd_trident_ac97_control_put()
2594 struct snd_ctl_elem_value *ucontrol) in snd_trident_vol_control_get() argument
2600 ucontrol->value.integer.value[0] = 255 - ((val >> kcontrol->private_value) & 0xff); in snd_trident_vol_control_get()
2601 ucontrol->value.integer.value[1] = 255 - ((val >> (kcontrol->private_value + 8)) & 0xff); in snd_trident_vol_control_get()
2608 struct snd_ctl_elem_value *ucontrol) in snd_trident_vol_control_put() argument
2617 val |= ((255 - (ucontrol->value.integer.value[0] & 0xff)) | in snd_trident_vol_control_put()
2618 ((255 - (ucontrol->value.integer.value[1] & 0xff)) << 8)) << kcontrol->private_value; in snd_trident_vol_control_put()
2668 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_vol_control_get() argument
2671 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_vol_control_get()
2674 ucontrol->value.integer.value[0] = 1023 - mix->vol; in snd_trident_pcm_vol_control_get()
2676 ucontrol->value.integer.value[0] = 255 - (mix->vol>>2); in snd_trident_pcm_vol_control_get()
2682 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_vol_control_put() argument
2685 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_vol_control_put()
2690 val = 1023 - (ucontrol->value.integer.value[0] & 1023); in snd_trident_pcm_vol_control_put()
2692 val = (255 - (ucontrol->value.integer.value[0] & 255)) << 2; in snd_trident_pcm_vol_control_put()
2732 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_pan_control_get() argument
2735 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_pan_control_get()
2737 ucontrol->value.integer.value[0] = mix->pan; in snd_trident_pcm_pan_control_get()
2738 if (ucontrol->value.integer.value[0] & 0x40) { in snd_trident_pcm_pan_control_get()
2739 ucontrol->value.integer.value[0] = (0x3f - (ucontrol->value.integer.value[0] & 0x3f)); in snd_trident_pcm_pan_control_get()
2741 ucontrol->value.integer.value[0] |= 0x40; in snd_trident_pcm_pan_control_get()
2747 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_pan_control_put() argument
2750 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_pan_control_put()
2754 if (ucontrol->value.integer.value[0] & 0x40) in snd_trident_pcm_pan_control_put()
2755 val = ucontrol->value.integer.value[0] & 0x3f; in snd_trident_pcm_pan_control_put()
2757 val = (0x3f - (ucontrol->value.integer.value[0] & 0x3f)) | 0x40; in snd_trident_pcm_pan_control_put()
2795 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_rvol_control_get() argument
2798 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_rvol_control_get()
2800 ucontrol->value.integer.value[0] = 127 - mix->rvol; in snd_trident_pcm_rvol_control_get()
2805 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_rvol_control_put() argument
2808 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_rvol_control_put()
2812 val = 0x7f - (ucontrol->value.integer.value[0] & 0x7f); in snd_trident_pcm_rvol_control_put()
2853 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_cvol_control_get() argument
2856 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_cvol_control_get()
2858 ucontrol->value.integer.value[0] = 127 - mix->cvol; in snd_trident_pcm_cvol_control_get()
2863 struct snd_ctl_elem_value *ucontrol) in snd_trident_pcm_cvol_control_put() argument
2866 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_cvol_control_put()
2870 val = 0x7f - (ucontrol->value.integer.value[0] & 0x7f); in snd_trident_pcm_cvol_control_put()