Lines Matching refs:ucontrol

259 …d_ice1712_digmix_route_ac97_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)  in snd_ice1712_digmix_route_ac97_get()  argument
263 ucontrol->value.integer.value[0] = inb(ICEMT(ice, MONITOR_ROUTECTRL)) & ICE1712_ROUTE_AC97 ? 1 : 0; in snd_ice1712_digmix_route_ac97_get()
267 …d_ice1712_digmix_route_ac97_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_digmix_route_ac97_put() argument
275 if (ucontrol->value.integer.value[0]) in snd_ice1712_digmix_route_ac97_put()
1303 …nd_ice1712_pro_mixer_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_mixer_switch_get() argument
1306 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_switch_get()
1310 ucontrol->value.integer.value[0] = in snd_ice1712_pro_mixer_switch_get()
1312 ucontrol->value.integer.value[1] = in snd_ice1712_pro_mixer_switch_get()
1318 …nd_ice1712_pro_mixer_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_mixer_switch_put() argument
1321 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_switch_put()
1325 nval = (ucontrol->value.integer.value[0] ? 0 : 0x00008000) | in snd_ice1712_pro_mixer_switch_put()
1326 (ucontrol->value.integer.value[1] ? 0 : 0x80000000); in snd_ice1712_pro_mixer_switch_put()
1345 …nd_ice1712_pro_mixer_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_mixer_volume_get() argument
1348 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_volume_get()
1352 ucontrol->value.integer.value[0] = in snd_ice1712_pro_mixer_volume_get()
1354 ucontrol->value.integer.value[1] = in snd_ice1712_pro_mixer_volume_get()
1360 …nd_ice1712_pro_mixer_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_mixer_volume_put() argument
1363 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_volume_put()
1367 nval = (ucontrol->value.integer.value[0] & 127) | in snd_ice1712_pro_mixer_volume_put()
1368 ((ucontrol->value.integer.value[1] & 127) << 16); in snd_ice1712_pro_mixer_volume_put()
1625 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_eeprom_get() argument
1629 memcpy(ucontrol->value.bytes.data, &ice->eeprom, sizeof(ice->eeprom)); in snd_ice1712_eeprom_get()
1652 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_spdif_default_get() argument
1656 ice->spdif.ops.default_get(ice, ucontrol); in snd_ice1712_spdif_default_get()
1661 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_spdif_default_put() argument
1665 return ice->spdif.ops.default_put(ice, ucontrol); in snd_ice1712_spdif_default_put()
1679 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_spdif_maskc_get() argument
1683 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | in snd_ice1712_spdif_maskc_get()
1687 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL | in snd_ice1712_spdif_maskc_get()
1689 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; in snd_ice1712_spdif_maskc_get()
1691 ucontrol->value.iec958.status[0] = 0xff; in snd_ice1712_spdif_maskc_get()
1692 ucontrol->value.iec958.status[1] = 0xff; in snd_ice1712_spdif_maskc_get()
1693 ucontrol->value.iec958.status[2] = 0xff; in snd_ice1712_spdif_maskc_get()
1694 ucontrol->value.iec958.status[3] = 0xff; in snd_ice1712_spdif_maskc_get()
1695 ucontrol->value.iec958.status[4] = 0xff; in snd_ice1712_spdif_maskc_get()
1701 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_spdif_maskp_get() argument
1705 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | in snd_ice1712_spdif_maskp_get()
1709 ucontrol->value.iec958.status[1] = IEC958_AES1_PRO_MODE; in snd_ice1712_spdif_maskp_get()
1711 ucontrol->value.iec958.status[0] = 0xff; in snd_ice1712_spdif_maskp_get()
1712 ucontrol->value.iec958.status[1] = 0xff; in snd_ice1712_spdif_maskp_get()
1713 ucontrol->value.iec958.status[2] = 0xff; in snd_ice1712_spdif_maskp_get()
1714 ucontrol->value.iec958.status[3] = 0xff; in snd_ice1712_spdif_maskp_get()
1715 ucontrol->value.iec958.status[4] = 0xff; in snd_ice1712_spdif_maskp_get()
1739 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_spdif_stream_get() argument
1743 ice->spdif.ops.stream_get(ice, ucontrol); in snd_ice1712_spdif_stream_get()
1748 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_spdif_stream_put() argument
1752 return ice->spdif.ops.stream_put(ice, ucontrol); in snd_ice1712_spdif_stream_put()
1768 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_gpio_get() argument
1775 ucontrol->value.integer.value[0] = in snd_ice1712_gpio_get()
1782 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_gpio_put() argument
1791 nval = (ucontrol->value.integer.value[0] ? mask : 0) ^ invert; in snd_ice1712_gpio_put()
1827 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_internal_clock_get() argument
1837 ucontrol->value.enumerated.item[0] = 13; in snd_ice1712_pro_internal_clock_get()
1844 ucontrol->value.enumerated.item[0] = val; in snd_ice1712_pro_internal_clock_get()
1851 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_internal_clock_put() argument
1863 if (ucontrol->value.enumerated.item[0] == 13) { in snd_ice1712_pro_internal_clock_put()
1866 PRO_RATE_DEFAULT = xrate[ucontrol->value.integer.value[0] % 13]; in snd_ice1712_pro_internal_clock_put()
1912 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_internal_clock_default_get() argument
1925 ucontrol->value.enumerated.item[0] = val; in snd_ice1712_pro_internal_clock_default_get()
1930 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_internal_clock_default_put() argument
1940 PRO_RATE_DEFAULT = xrate[ucontrol->value.integer.value[0] % 13]; in snd_ice1712_pro_internal_clock_default_put()
1957 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_rate_locking_get() argument
1959 ucontrol->value.integer.value[0] = PRO_RATE_LOCKED; in snd_ice1712_pro_rate_locking_get()
1964 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_rate_locking_put() argument
1969 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_locking_put()
1988 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_rate_reset_get() argument
1990 ucontrol->value.integer.value[0] = PRO_RATE_RESET; in snd_ice1712_pro_rate_reset_get()
1995 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_rate_reset_put() argument
2000 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_reset_put()
2034 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_route_analog_get() argument
2037 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_pro_route_analog_get()
2049 ucontrol->value.enumerated.item[0] = 11; in snd_ice1712_pro_route_analog_get()
2051 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; in snd_ice1712_pro_route_analog_get()
2053 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; in snd_ice1712_pro_route_analog_get()
2055 ucontrol->value.enumerated.item[0] = 0; in snd_ice1712_pro_route_analog_get()
2060 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_route_analog_put() argument
2064 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_pro_route_analog_put()
2068 if (ucontrol->value.enumerated.item[0] >= 11) in snd_ice1712_pro_route_analog_put()
2070 else if (ucontrol->value.enumerated.item[0] >= 9) in snd_ice1712_pro_route_analog_put()
2072 else if (ucontrol->value.enumerated.item[0] >= 1) in snd_ice1712_pro_route_analog_put()
2093 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_analog_put()
2097 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_analog_put()
2110 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_route_spdif_get() argument
2113 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_pro_route_spdif_get()
2119 ucontrol->value.enumerated.item[0] = 11; in snd_ice1712_pro_route_spdif_get()
2121 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; in snd_ice1712_pro_route_spdif_get()
2123 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; in snd_ice1712_pro_route_spdif_get()
2125 ucontrol->value.enumerated.item[0] = 0; in snd_ice1712_pro_route_spdif_get()
2130 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_route_spdif_put() argument
2134 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_pro_route_spdif_put()
2140 if (ucontrol->value.enumerated.item[0] >= 11) in snd_ice1712_pro_route_spdif_put()
2142 else if (ucontrol->value.enumerated.item[0] >= 9) in snd_ice1712_pro_route_spdif_put()
2144 else if (ucontrol->value.enumerated.item[0] >= 1) in snd_ice1712_pro_route_spdif_put()
2153 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_spdif_put()
2157 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_spdif_put()
2197 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_volume_rate_get() argument
2201 ucontrol->value.integer.value[0] = inb(ICEMT(ice, MONITOR_RATE)); in snd_ice1712_pro_volume_rate_get()
2206 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_volume_rate_put() argument
2212 change = inb(ICEMT(ice, MONITOR_RATE)) != ucontrol->value.integer.value[0]; in snd_ice1712_pro_volume_rate_put()
2213 outb(ucontrol->value.integer.value[0], ICEMT(ice, MONITOR_RATE)); in snd_ice1712_pro_volume_rate_put()
2237 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_peak_get() argument
2245 ucontrol->value.integer.value[idx] = inb(ICEMT(ice, MONITOR_PEAKDATA)); in snd_ice1712_pro_peak_get()