Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 39) sorted by relevance

12

/sound/pci/ice1712/
Dwtm.c99 unsigned char new, old; in stac9460_dac_mute_put() local
105 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
107 (old & ~0x80); in stac9460_dac_mute_put()
108 change = (new != old); in stac9460_dac_mute_put()
117 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
119 old = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_put()
121 (old & ~0x80); in stac9460_dac_mute_put()
122 change = (new != old); in stac9460_dac_mute_put()
239 unsigned char new, old; in stac9460_adc_mute_put() local
247 old = stac9460_get(ice, reg); in stac9460_adc_mute_put()
[all …]
Dprodigy192.c95 unsigned char new, old; in stac9460_dac_mute() local
97 old = stac9460_get(ice, idx); in stac9460_dac_mute()
98 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute()
99 change = (new != old); in stac9460_dac_mute()
220 unsigned char new, old; in stac9460_adc_mute_put() local
226 old = stac9460_get(ice, reg); in stac9460_adc_mute_put()
227 new = (~ucontrol->value.integer.value[i]<<7&0x80) | (old&~0x80); in stac9460_adc_mute_put()
228 change = (new != old); in stac9460_adc_mute_put()
314 unsigned char new, old; in stac9460_mic_sw_put() local
316 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); in stac9460_mic_sw_put()
[all …]
Dquartet.c528 unsigned int old, new, smute; in qtet_mute_put() local
529 old = get_scr(ice) & SCR_MUTE; in qtet_mute_put()
541 if (old != new) { in qtet_mute_put()
599 unsigned int old, new, tmp, masked_old; in qtet_ain12_sw_put() local
600 old = new = get_scr(ice); in qtet_ain12_sw_put()
601 masked_old = old & (SCR_AIN12_SEL1 | SCR_AIN12_SEL0); in qtet_ain12_sw_put()
610 new = old & ~(SCR_AIN12_SEL1 | SCR_AIN12_SEL0); in qtet_ain12_sw_put()
618 new = old | SCR_RELAY; in qtet_ain12_sw_put()
625 new = old | SCR_RELAY; in qtet_ain12_sw_put()
654 unsigned int old, new; in qtet_php_put() local
[all …]
Djuli.c224 unsigned char old, tmp, ak4358_dfs; in juli_akm_set_rate_val() local
252 old = inb(ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val()
253 outb(old | VT1724_AC97_COLD, ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val()
255 outb(old & ~VT1724_AC97_COLD, ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val()
534 unsigned int old, new; in juli_set_rate() local
537 old = ice->gpio.get_data(ice); in juli_set_rate()
538 new = (old & ~GPIO_RATE_MASK) | get_gpio_val(rate); in juli_set_rate()
559 unsigned int old; in juli_set_spdif_clock() local
560 old = ice->gpio.get_data(ice); in juli_set_spdif_clock()
562 ice->gpio.set_data(ice, (old & ~GPIO_RATE_MASK) | GPIO_MULTI_1X | in juli_set_spdif_clock()
Dice1724.c559 unsigned char old; in snd_vt1724_pcm_trigger() local
576 old = inb(ICEMT1724(ice, DMA_PAUSE)); in snd_vt1724_pcm_trigger()
578 old |= what; in snd_vt1724_pcm_trigger()
580 old &= ~what; in snd_vt1724_pcm_trigger()
581 outb(old, ICEMT1724(ice, DMA_PAUSE)); in snd_vt1724_pcm_trigger()
589 old = inb(ICEMT1724(ice, DMA_CONTROL)); in snd_vt1724_pcm_trigger()
591 old |= what; in snd_vt1724_pcm_trigger()
593 old &= ~what; in snd_vt1724_pcm_trigger()
594 outb(old, ICEMT1724(ice, DMA_CONTROL)); in snd_vt1724_pcm_trigger()
642 unsigned char val, old; in stdclock_set_mclk() local
[all …]
Drevo.c55 unsigned char old, tmp, dfs; in revo_set_rate_val() local
77 old = (tmp >> shift) & 0x03; in revo_set_rate_val()
78 if (old == dfs) in revo_set_rate_val()
Dice1712.c964 unsigned int old; in snd_ice1712_pro_trigger() local
970 old = inl(ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
972 old |= what; in snd_ice1712_pro_trigger()
974 old &= ~what; in snd_ice1712_pro_trigger()
975 outl(old, ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
983 unsigned int old; in snd_ice1712_pro_trigger() local
996 old = inl(ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
998 old |= what; in snd_ice1712_pro_trigger()
1000 old &= ~what; in snd_ice1712_pro_trigger()
1001 outl(old, ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
[all …]
/sound/soc/
Dsoc-io.c68 unsigned int old, new; in snd_soc_component_update_bits_legacy() local
76 ret = component->read(component, reg, &old); in snd_soc_component_update_bits_legacy()
80 new = (old & ~mask) | (val & mask); in snd_soc_component_update_bits_legacy()
81 *change = old != new; in snd_soc_component_update_bits_legacy()
185 unsigned int old, new; in snd_soc_component_test_bits() local
188 ret = snd_soc_component_read(component, reg, &old); in snd_soc_component_test_bits()
191 new = (old & ~mask) | value; in snd_soc_component_test_bits()
192 return old != new; in snd_soc_component_test_bits()
/sound/aoa/core/
Dgpio-pmf.c136 notify_func_t old; in pmf_set_notify() local
160 old = notif->notify; in pmf_set_notify()
162 if (!old && !notify) { in pmf_set_notify()
167 if (old && notify) { in pmf_set_notify()
168 if (old == notify && notif->data == data) in pmf_set_notify()
173 if (old && !notify) { in pmf_set_notify()
179 if (!old && notify) { in pmf_set_notify()
Dgpio-feature.c314 notify_func_t old; in ftr_set_notify() local
344 old = notif->notify; in ftr_set_notify()
346 if (!old && !notify) { in ftr_set_notify()
351 if (old && notify) { in ftr_set_notify()
352 if (old == notify && notif->data == data) in ftr_set_notify()
357 if (old && !notify) in ftr_set_notify()
360 if (!old && notify) { in ftr_set_notify()
/sound/soc/intel/
Dsst-dsp.c165 unsigned int old, new; in sst_dsp_shim_update_bits_unlocked() local
170 old = ret; in sst_dsp_shim_update_bits_unlocked()
171 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits_unlocked()
173 change = (old != new); in sst_dsp_shim_update_bits_unlocked()
185 u64 old, new; in sst_dsp_shim_update_bits64_unlocked() local
187 old = sst_dsp_shim_read64_unlocked(sst, offset); in sst_dsp_shim_update_bits64_unlocked()
189 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits64_unlocked()
191 change = (old != new); in sst_dsp_shim_update_bits64_unlocked()
/sound/soc/codecs/
Dcx20442.c160 int vls, vsp, old, len; in cx20442_write() local
171 old = reg_cache[reg]; in cx20442_write()
183 (vls == cx20442_pm_to_v253_vls(old))) { in cx20442_write()
184 if (vsp == cx20442_pm_to_v253_vsp(old)) in cx20442_write()
187 } else if (vsp == cx20442_pm_to_v253_vsp(old)) in cx20442_write()
/sound/pci/
Des1938.c292 unsigned char old, new, oval; in snd_es1938_mixer_bits() local
295 old = inb(SLSB_REG(chip, MIXERDATA)); in snd_es1938_mixer_bits()
296 oval = old & mask; in snd_es1938_mixer_bits()
298 new = (old & ~mask) | (val & mask); in snd_es1938_mixer_bits()
302 reg, old, new); in snd_es1938_mixer_bits()
375 unsigned char old, new, oval; in snd_es1938_bits() local
379 old = snd_es1938_get_byte(chip); in snd_es1938_bits()
380 oval = old & mask; in snd_es1938_bits()
383 new = (old & ~mask) | (val & mask); in snd_es1938_bits()
386 reg, old, new); in snd_es1938_bits()
[all …]
/sound/isa/
Dsc6000.c399 int old = 0; in sc6000_init_board() local
430 old = 1; in sc6000_init_board()
432 if (!old) { in sc6000_init_board()
449 if (!old) { in sc6000_init_board()
Des18xx.c248 unsigned char old, new, oval; in snd_es18xx_bits() local
261 old = ret; in snd_es18xx_bits()
262 oval = old & mask; in snd_es18xx_bits()
267 new = (old & ~mask) | (val & mask); in snd_es18xx_bits()
273 reg, old, new, ret); in snd_es18xx_bits()
313 unsigned char old, new, oval; in snd_es18xx_mixer_bits() local
317 old = inb(chip->port + 0x05); in snd_es18xx_mixer_bits()
318 oval = old & mask; in snd_es18xx_mixer_bits()
320 new = (old & ~mask) | (val & mask); in snd_es18xx_mixer_bits()
324 reg, old, new); in snd_es18xx_mixer_bits()
[all …]
/sound/mips/
Dhal2.c233 u32 old, new; in hal2_gain_put() local
241 old = hal2_i_read32(hal2, H2I_DAC_C2); in hal2_gain_put()
242 new = old & ~(H2I_C2_L_ATT_M | H2I_C2_R_ATT_M | H2I_C2_MUTE); in hal2_gain_put()
253 old = hal2_i_read32(hal2, H2I_ADC_C2); in hal2_gain_put()
254 new = old & ~(H2I_C2_L_GAIN_M | H2I_C2_R_GAIN_M); in hal2_gain_put()
260 return old != new; in hal2_gain_put()
/sound/i2c/other/
Dak4113.c126 unsigned char old = chip->regmap[AK4113_REG_PWRDN], reg; in ak4113_init_regs() local
129 reg_write(chip, AK4113_REG_PWRDN, old & ~(AK4113_RST|AK4113_PWN)); in ak4113_init_regs()
132 reg_write(chip, AK4113_REG_PWRDN, (old | AK4113_RST) & ~AK4113_PWN); in ak4113_init_regs()
137 reg_write(chip, AK4113_REG_PWRDN, old | AK4113_RST | AK4113_PWN); in ak4113_init_regs()
Dak4114.c137 unsigned char old = chip->regmap[AK4114_REG_PWRDN], reg; in ak4114_init_regs() local
140 reg_write(chip, AK4114_REG_PWRDN, old & ~(AK4114_RST|AK4114_PWN)); in ak4114_init_regs()
143 reg_write(chip, AK4114_REG_PWRDN, (old | AK4114_RST) & ~AK4114_PWN); in ak4114_init_regs()
150 reg_write(chip, AK4114_REG_PWRDN, old | AK4114_RST | AK4114_PWN); in ak4114_init_regs()
Dak4117.c127 unsigned char old = chip->regmap[AK4117_REG_PWRDN], reg; in snd_ak4117_reinit() local
135 reg_write(chip, AK4117_REG_PWRDN, (old | AK4117_RST) & ~AK4117_PWN); in snd_ak4117_reinit()
140 reg_write(chip, AK4117_REG_PWRDN, old | AK4117_RST | AK4117_PWN); in snd_ak4117_reinit()
/sound/usb/6fire/
Dcontrol.c241 u8 old = rt->output_mute; in usb6fire_control_output_mute_put() local
257 if (rt->output_mute != old) in usb6fire_control_output_mute_put()
260 return rt->output_mute != old; in usb6fire_control_output_mute_put()
/sound/pci/ac97/
Dac97_pcm.c176 unsigned short old, bits, reg, mask; in set_spdif_rate() local
211 old = snd_ac97_read(ac97, reg) & mask; in set_spdif_rate()
212 if (old != bits) { in set_spdif_rate()
Dac97_codec.c416 unsigned short old, new; in snd_ac97_update_bits_nolock() local
418 old = snd_ac97_read_cache(ac97, reg); in snd_ac97_update_bits_nolock()
419 new = (old & ~mask) | (value & mask); in snd_ac97_update_bits_nolock()
420 change = old != new; in snd_ac97_update_bits_nolock()
432 unsigned short old, new, cfg; in snd_ac97_ad18xx_update_pcm_bits() local
435 old = ac97->spec.ad18xx.pcmreg[codec]; in snd_ac97_ad18xx_update_pcm_bits()
436 new = (old & ~mask) | (value & mask); in snd_ac97_ad18xx_update_pcm_bits()
437 change = old != new; in snd_ac97_ad18xx_update_pcm_bits()
835 unsigned short value, old, new; in snd_ac97_put_spsa() local
843 old = snd_ac97_read_cache(ac97, reg); in snd_ac97_put_spsa()
[all …]
/sound/soc/au1x/
DKconfig29 old DMA controller as found on the Au1000/Au1500/Au1100 chips.
/sound/core/
DKconfig138 (CONFIG_RTC_CLASS) since this requires the old API.
173 bool "Support old ALSA API"
/sound/atmel/
Dabdac.c60 #define DAC_BFINS(name, value, old) \ argument
61 (((old) & ~(((1 << DAC_##name##_SIZE) - 1) \

12