Lines Matching refs:nval
270 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local
274 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
276 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
277 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put()
279 return val != nval; in snd_ice1712_digmix_route_ac97_put()
340 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local
352 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock()
354 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock()
356 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock()
357 if (val != nval) { in snd_ice1712_cs8427_set_input_clock()
358 reg[1] = nval; in snd_ice1712_cs8427_set_input_clock()
1323 unsigned int nval, change; in snd_ice1712_pro_mixer_switch_put() local
1325 nval = (ucontrol->value.integer.value[0] ? 0 : 0x00008000) | in snd_ice1712_pro_mixer_switch_put()
1328 nval |= ice->pro_volumes[priv_idx] & ~0x80008000; in snd_ice1712_pro_mixer_switch_put()
1329 change = nval != ice->pro_volumes[priv_idx]; in snd_ice1712_pro_mixer_switch_put()
1330 ice->pro_volumes[priv_idx] = nval; in snd_ice1712_pro_mixer_switch_put()
1365 unsigned int nval, change; in snd_ice1712_pro_mixer_volume_put() local
1367 nval = (ucontrol->value.integer.value[0] & 127) | in snd_ice1712_pro_mixer_volume_put()
1370 nval |= ice->pro_volumes[priv_idx] & ~0x007f007f; in snd_ice1712_pro_mixer_volume_put()
1371 change = nval != ice->pro_volumes[priv_idx]; in snd_ice1712_pro_mixer_volume_put()
1372 ice->pro_volumes[priv_idx] = nval; in snd_ice1712_pro_mixer_volume_put()
1787 unsigned int val, nval; in snd_ice1712_gpio_put() local
1791 nval = (ucontrol->value.integer.value[0] ? mask : 0) ^ invert; in snd_ice1712_gpio_put()
1794 nval |= val & ~mask; in snd_ice1712_gpio_put()
1795 if (val != nval) in snd_ice1712_gpio_put()
1796 snd_ice1712_gpio_write(ice, nval); in snd_ice1712_gpio_put()
1798 return val != nval; in snd_ice1712_gpio_put()
1967 int change = 0, nval; in snd_ice1712_pro_rate_locking_put() local
1969 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_locking_put()
1971 change = PRO_RATE_LOCKED != nval; in snd_ice1712_pro_rate_locking_put()
1972 PRO_RATE_LOCKED = nval; in snd_ice1712_pro_rate_locking_put()
1998 int change = 0, nval; in snd_ice1712_pro_rate_reset_put() local
2000 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_reset_put()
2002 change = PRO_RATE_RESET != nval; in snd_ice1712_pro_rate_reset_put()
2003 PRO_RATE_RESET = nval; in snd_ice1712_pro_rate_reset_put()
2065 unsigned int val, old_val, nval; in snd_ice1712_pro_route_analog_put() local
2069 nval = idx < 2 ? 1 : 0; /* dig mixer (or pcm) */ in snd_ice1712_pro_route_analog_put()
2071 nval = 3; /* spdif in */ in snd_ice1712_pro_route_analog_put()
2073 nval = 2; /* analog in */ in snd_ice1712_pro_route_analog_put()
2075 nval = 0; /* pcm */ in snd_ice1712_pro_route_analog_put()
2080 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2085 if (nval < 2) /* dig mixer of pcm */ in snd_ice1712_pro_route_analog_put()
2092 if (nval == 2) { /* analog in */ in snd_ice1712_pro_route_analog_put()
2093 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_analog_put()
2095 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2097 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_analog_put()
2099 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2135 unsigned int val, old_val, nval; in snd_ice1712_pro_route_spdif_put() local
2141 nval = 1; in snd_ice1712_pro_route_spdif_put()
2143 nval = 3; in snd_ice1712_pro_route_spdif_put()
2145 nval = 2; in snd_ice1712_pro_route_spdif_put()
2147 nval = 0; in snd_ice1712_pro_route_spdif_put()
2150 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()
2152 if (nval == 2) { in snd_ice1712_pro_route_spdif_put()
2153 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_spdif_put()
2155 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()
2156 } else if (nval == 3) { in snd_ice1712_pro_route_spdif_put()
2157 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_spdif_put()
2159 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()