Lines Matching refs:ucontrol
1289 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_default_get() argument
1294 ucontrol->value.iec958.status[0] = (chip->spdif_bits >> 0) & 0xff; in snd_ymfpci_spdif_default_get()
1295 ucontrol->value.iec958.status[1] = (chip->spdif_bits >> 8) & 0xff; in snd_ymfpci_spdif_default_get()
1296 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; in snd_ymfpci_spdif_default_get()
1302 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_default_put() argument
1308 val = ((ucontrol->value.iec958.status[0] & 0x3e) << 0) | in snd_ymfpci_spdif_default_put()
1309 (ucontrol->value.iec958.status[1] << 8); in snd_ymfpci_spdif_default_put()
1336 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_mask_get() argument
1341 ucontrol->value.iec958.status[0] = 0x3e; in snd_ymfpci_spdif_mask_get()
1342 ucontrol->value.iec958.status[1] = 0xff; in snd_ymfpci_spdif_mask_get()
1364 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_stream_get() argument
1369 ucontrol->value.iec958.status[0] = (chip->spdif_pcm_bits >> 0) & 0xff; in snd_ymfpci_spdif_stream_get()
1370 ucontrol->value.iec958.status[1] = (chip->spdif_pcm_bits >> 8) & 0xff; in snd_ymfpci_spdif_stream_get()
1371 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; in snd_ymfpci_spdif_stream_get()
1377 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_stream_put() argument
1383 val = ((ucontrol->value.iec958.status[0] & 0x3e) << 0) | in snd_ymfpci_spdif_stream_put()
1384 (ucontrol->value.iec958.status[1] << 8); in snd_ymfpci_spdif_stream_put()
1464 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_get_single() argument
1476 ucontrol->value.integer.value[0] = in snd_ymfpci_get_single()
1482 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_put_single() argument
1496 val = (ucontrol->value.integer.value[0] & mask); in snd_ymfpci_put_single()
1530 static int snd_ymfpci_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_get_double() argument
1542 ucontrol->value.integer.value[0] = (val >> shift_left) & mask; in snd_ymfpci_get_double()
1543 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ymfpci_get_double()
1547 static int snd_ymfpci_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_put_double() argument
1557 val1 = ucontrol->value.integer.value[0] & mask; in snd_ymfpci_put_double()
1558 val2 = ucontrol->value.integer.value[1] & mask; in snd_ymfpci_put_double()
1571 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_put_nativedacvol() argument
1579 value = ucontrol->value.integer.value[0] & 0x3fff; in snd_ymfpci_put_nativedacvol()
1580 value |= (ucontrol->value.integer.value[1] & 0x3fff) << 16; in snd_ymfpci_put_nativedacvol()
1595 static int snd_ymfpci_get_dup4ch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_get_dup4ch() argument
1598 ucontrol->value.integer.value[0] = chip->mode_dup4ch; in snd_ymfpci_get_dup4ch()
1602 static int snd_ymfpci_put_dup4ch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_put_dup4ch() argument
1606 change = (ucontrol->value.integer.value[0] != chip->mode_dup4ch); in snd_ymfpci_put_dup4ch()
1608 chip->mode_dup4ch = !!ucontrol->value.integer.value[0]; in snd_ymfpci_put_dup4ch()
1694 …atic int snd_ymfpci_gpio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_gpio_sw_get() argument
1698 ucontrol->value.integer.value[0] = snd_ymfpci_get_gpio_out(chip, pin); in snd_ymfpci_gpio_sw_get()
1702 …atic int snd_ymfpci_gpio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_gpio_sw_put() argument
1707 if (snd_ymfpci_get_gpio_out(chip, pin) != ucontrol->value.integer.value[0]) { in snd_ymfpci_gpio_sw_put()
1708 snd_ymfpci_set_gpio_out(chip, pin, !!ucontrol->value.integer.value[0]); in snd_ymfpci_gpio_sw_put()
1709 ucontrol->value.integer.value[0] = snd_ymfpci_get_gpio_out(chip, pin); in snd_ymfpci_gpio_sw_put()
1739 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_pcm_vol_get() argument
1744 ucontrol->value.integer.value[0] = chip->pcm_mixer[subs].left; in snd_ymfpci_pcm_vol_get()
1745 ucontrol->value.integer.value[1] = chip->pcm_mixer[subs].right; in snd_ymfpci_pcm_vol_get()
1750 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_pcm_vol_put() argument
1757 if (ucontrol->value.integer.value[0] != chip->pcm_mixer[subs].left || in snd_ymfpci_pcm_vol_put()
1758 ucontrol->value.integer.value[1] != chip->pcm_mixer[subs].right) { in snd_ymfpci_pcm_vol_put()
1759 chip->pcm_mixer[subs].left = ucontrol->value.integer.value[0]; in snd_ymfpci_pcm_vol_put()
1760 chip->pcm_mixer[subs].right = ucontrol->value.integer.value[1]; in snd_ymfpci_pcm_vol_put()