Lines Matching refs:nval
256 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local
260 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
262 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
263 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put()
265 return val != nval; in snd_ice1712_digmix_route_ac97_put()
326 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local
338 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock()
340 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock()
342 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock()
343 if (val != nval) { in snd_ice1712_cs8427_set_input_clock()
344 reg[1] = nval; in snd_ice1712_cs8427_set_input_clock()
1281 unsigned int nval, change; in snd_ice1712_pro_mixer_switch_put() local
1283 nval = (ucontrol->value.integer.value[0] ? 0 : 0x00008000) | in snd_ice1712_pro_mixer_switch_put()
1286 nval |= ice->pro_volumes[priv_idx] & ~0x80008000; in snd_ice1712_pro_mixer_switch_put()
1287 change = nval != ice->pro_volumes[priv_idx]; in snd_ice1712_pro_mixer_switch_put()
1288 ice->pro_volumes[priv_idx] = nval; in snd_ice1712_pro_mixer_switch_put()
1323 unsigned int nval, change; in snd_ice1712_pro_mixer_volume_put() local
1325 nval = (ucontrol->value.integer.value[0] & 127) | in snd_ice1712_pro_mixer_volume_put()
1328 nval |= ice->pro_volumes[priv_idx] & ~0x007f007f; in snd_ice1712_pro_mixer_volume_put()
1329 change = nval != ice->pro_volumes[priv_idx]; in snd_ice1712_pro_mixer_volume_put()
1330 ice->pro_volumes[priv_idx] = nval; in snd_ice1712_pro_mixer_volume_put()
1742 unsigned int val, nval; in snd_ice1712_gpio_put() local
1746 nval = (ucontrol->value.integer.value[0] ? mask : 0) ^ invert; in snd_ice1712_gpio_put()
1749 nval |= val & ~mask; in snd_ice1712_gpio_put()
1750 if (val != nval) in snd_ice1712_gpio_put()
1751 snd_ice1712_gpio_write(ice, nval); in snd_ice1712_gpio_put()
1753 return val != nval; in snd_ice1712_gpio_put()
1922 int change = 0, nval; in snd_ice1712_pro_rate_locking_put() local
1924 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_locking_put()
1926 change = PRO_RATE_LOCKED != nval; in snd_ice1712_pro_rate_locking_put()
1927 PRO_RATE_LOCKED = nval; in snd_ice1712_pro_rate_locking_put()
1953 int change = 0, nval; in snd_ice1712_pro_rate_reset_put() local
1955 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_reset_put()
1957 change = PRO_RATE_RESET != nval; in snd_ice1712_pro_rate_reset_put()
1958 PRO_RATE_RESET = nval; in snd_ice1712_pro_rate_reset_put()
2020 unsigned int val, old_val, nval; in snd_ice1712_pro_route_analog_put() local
2024 nval = idx < 2 ? 1 : 0; /* dig mixer (or pcm) */ in snd_ice1712_pro_route_analog_put()
2026 nval = 3; /* spdif in */ in snd_ice1712_pro_route_analog_put()
2028 nval = 2; /* analog in */ in snd_ice1712_pro_route_analog_put()
2030 nval = 0; /* pcm */ in snd_ice1712_pro_route_analog_put()
2035 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2040 if (nval < 2) /* dig mixer of pcm */ in snd_ice1712_pro_route_analog_put()
2047 if (nval == 2) { /* analog in */ in snd_ice1712_pro_route_analog_put()
2048 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_analog_put()
2050 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2052 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_analog_put()
2054 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2090 unsigned int val, old_val, nval; in snd_ice1712_pro_route_spdif_put() local
2096 nval = 1; in snd_ice1712_pro_route_spdif_put()
2098 nval = 3; in snd_ice1712_pro_route_spdif_put()
2100 nval = 2; in snd_ice1712_pro_route_spdif_put()
2102 nval = 0; in snd_ice1712_pro_route_spdif_put()
2105 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()
2107 if (nval == 2) { in snd_ice1712_pro_route_spdif_put()
2108 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_spdif_put()
2110 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()
2111 } else if (nval == 3) { in snd_ice1712_pro_route_spdif_put()
2112 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_spdif_put()
2114 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()