Lines Matching refs:nval

250 	unsigned char val, nval;  in snd_ice1712_digmix_route_ac97_put()  local
254 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
256 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
257 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put()
259 return val != nval; in snd_ice1712_digmix_route_ac97_put()
320 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local
332 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock()
334 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock()
336 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock()
337 if (val != nval) { in snd_ice1712_cs8427_set_input_clock()
338 reg[1] = nval; in snd_ice1712_cs8427_set_input_clock()
1275 unsigned int nval, change; in snd_ice1712_pro_mixer_switch_put() local
1277 nval = (ucontrol->value.integer.value[0] ? 0 : 0x00008000) | in snd_ice1712_pro_mixer_switch_put()
1280 nval |= ice->pro_volumes[priv_idx] & ~0x80008000; in snd_ice1712_pro_mixer_switch_put()
1281 change = nval != ice->pro_volumes[priv_idx]; in snd_ice1712_pro_mixer_switch_put()
1282 ice->pro_volumes[priv_idx] = nval; in snd_ice1712_pro_mixer_switch_put()
1317 unsigned int nval, change; in snd_ice1712_pro_mixer_volume_put() local
1319 nval = (ucontrol->value.integer.value[0] & 127) | in snd_ice1712_pro_mixer_volume_put()
1322 nval |= ice->pro_volumes[priv_idx] & ~0x007f007f; in snd_ice1712_pro_mixer_volume_put()
1323 change = nval != ice->pro_volumes[priv_idx]; in snd_ice1712_pro_mixer_volume_put()
1324 ice->pro_volumes[priv_idx] = nval; in snd_ice1712_pro_mixer_volume_put()
1736 unsigned int val, nval; in snd_ice1712_gpio_put() local
1740 nval = (ucontrol->value.integer.value[0] ? mask : 0) ^ invert; in snd_ice1712_gpio_put()
1743 nval |= val & ~mask; in snd_ice1712_gpio_put()
1744 if (val != nval) in snd_ice1712_gpio_put()
1745 snd_ice1712_gpio_write(ice, nval); in snd_ice1712_gpio_put()
1747 return val != nval; in snd_ice1712_gpio_put()
1916 int change = 0, nval; in snd_ice1712_pro_rate_locking_put() local
1918 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_locking_put()
1920 change = PRO_RATE_LOCKED != nval; in snd_ice1712_pro_rate_locking_put()
1921 PRO_RATE_LOCKED = nval; in snd_ice1712_pro_rate_locking_put()
1947 int change = 0, nval; in snd_ice1712_pro_rate_reset_put() local
1949 nval = ucontrol->value.integer.value[0] ? 1 : 0; in snd_ice1712_pro_rate_reset_put()
1951 change = PRO_RATE_RESET != nval; in snd_ice1712_pro_rate_reset_put()
1952 PRO_RATE_RESET = nval; in snd_ice1712_pro_rate_reset_put()
2014 unsigned int val, old_val, nval; in snd_ice1712_pro_route_analog_put() local
2018 nval = idx < 2 ? 1 : 0; /* dig mixer (or pcm) */ in snd_ice1712_pro_route_analog_put()
2020 nval = 3; /* spdif in */ in snd_ice1712_pro_route_analog_put()
2022 nval = 2; /* analog in */ in snd_ice1712_pro_route_analog_put()
2024 nval = 0; /* pcm */ in snd_ice1712_pro_route_analog_put()
2029 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2034 if (nval < 2) /* dig mixer of pcm */ in snd_ice1712_pro_route_analog_put()
2041 if (nval == 2) { /* analog in */ in snd_ice1712_pro_route_analog_put()
2042 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_analog_put()
2044 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2046 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_analog_put()
2048 val |= nval << shift; in snd_ice1712_pro_route_analog_put()
2084 unsigned int val, old_val, nval; in snd_ice1712_pro_route_spdif_put() local
2090 nval = 1; in snd_ice1712_pro_route_spdif_put()
2092 nval = 3; in snd_ice1712_pro_route_spdif_put()
2094 nval = 2; in snd_ice1712_pro_route_spdif_put()
2096 nval = 0; in snd_ice1712_pro_route_spdif_put()
2099 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()
2101 if (nval == 2) { in snd_ice1712_pro_route_spdif_put()
2102 nval = ucontrol->value.enumerated.item[0] - 1; in snd_ice1712_pro_route_spdif_put()
2104 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()
2105 } else if (nval == 3) { in snd_ice1712_pro_route_spdif_put()
2106 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; in snd_ice1712_pro_route_spdif_put()
2108 val |= nval << shift; in snd_ice1712_pro_route_spdif_put()