Lines Matching refs:ucontrol
479 …c int snd_vortex_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_mask_get() argument
481 ucontrol->value.iec958.status[0] = 0xff; in snd_vortex_spdif_mask_get()
482 ucontrol->value.iec958.status[1] = 0xff; in snd_vortex_spdif_mask_get()
483 ucontrol->value.iec958.status[2] = 0xff; in snd_vortex_spdif_mask_get()
484 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; in snd_vortex_spdif_mask_get()
488 static int snd_vortex_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_get() argument
491 ucontrol->value.iec958.status[0] = 0x00; in snd_vortex_spdif_get()
492 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL|IEC958_AES1_CON_DIGDIGCONV_ID; in snd_vortex_spdif_get()
493 ucontrol->value.iec958.status[2] = 0x00; in snd_vortex_spdif_get()
495 case 32000: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_32000; break; in snd_vortex_spdif_get()
496 case 44100: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_44100; break; in snd_vortex_spdif_get()
497 case 48000: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; break; in snd_vortex_spdif_get()
502 static int snd_vortex_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_put() argument
506 switch (ucontrol->value.iec958.status[3] & IEC958_AES3_CON_FS) { in snd_vortex_spdif_put()
550 struct snd_ctl_elem_value *ucontrol) in snd_vortex_pcm_vol_get() argument
558 ucontrol->value.integer.value[i] = p->vol[i]; in snd_vortex_pcm_vol_get()
563 struct snd_ctl_elem_value *ucontrol) in snd_vortex_pcm_vol_put() argument
574 if (p->vol[i] != ucontrol->value.integer.value[i]) { in snd_vortex_pcm_vol_put()
575 p->vol[i] = ucontrol->value.integer.value[i]; in snd_vortex_pcm_vol_put()