Home
last modified time | relevance | path

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

12

/sound/soc/sof/
Dops.c19 unsigned int old, new; in snd_sof_pci_update_bits_unlocked() local
23 old = ret; in snd_sof_pci_update_bits_unlocked()
24 dev_dbg(sdev->dev, "Debug PCIR: %8.8x at %8.8x\n", old & mask, offset); in snd_sof_pci_update_bits_unlocked()
26 new = (old & ~mask) | (value & mask); in snd_sof_pci_update_bits_unlocked()
28 if (old == new) in snd_sof_pci_update_bits_unlocked()
54 unsigned int old, new; in snd_sof_dsp_update_bits_unlocked() local
59 old = ret; in snd_sof_dsp_update_bits_unlocked()
60 new = (old & ~mask) | (value & mask); in snd_sof_dsp_update_bits_unlocked()
62 if (old == new) in snd_sof_dsp_update_bits_unlocked()
74 u64 old, new; in snd_sof_dsp_update_bits64_unlocked() local
[all …]
/sound/pci/ice1712/
Dwtm.c67 unsigned char new, old; in stac9460_dac_mute_all() local
77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
78 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
79 change = (new != old); in stac9460_dac_mute_all()
96 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all()
97 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
98 change = (new != old); in stac9460_dac_mute_all()
144 unsigned char new, old; in stac9460_dac_mute_put() local
150 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
152 (old & ~0x80); in stac9460_dac_mute_put()
[all …]
Dprodigy192.c81 unsigned char new, old; in stac9460_dac_mute() local
83 old = stac9460_get(ice, idx); in stac9460_dac_mute()
84 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute()
85 change = (new != old); in stac9460_dac_mute()
206 unsigned char new, old; in stac9460_adc_mute_put() local
212 old = stac9460_get(ice, reg); in stac9460_adc_mute_put()
213 new = (~ucontrol->value.integer.value[i]<<7&0x80) | (old&~0x80); in stac9460_adc_mute_put()
214 change = (new != old); in stac9460_adc_mute_put()
292 unsigned char new, old; in stac9460_mic_sw_put() local
294 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); in stac9460_mic_sw_put()
[all …]
Dquartet.c507 unsigned int old, new, smute; in qtet_mute_put() local
508 old = get_scr(ice) & SCR_MUTE; in qtet_mute_put()
520 if (old != new) { in qtet_mute_put()
568 unsigned int old, new, tmp, masked_old; in qtet_ain12_sw_put() local
569 old = new = get_scr(ice); in qtet_ain12_sw_put()
570 masked_old = old & (SCR_AIN12_SEL1 | SCR_AIN12_SEL0); in qtet_ain12_sw_put()
579 new = old & ~(SCR_AIN12_SEL1 | SCR_AIN12_SEL0); in qtet_ain12_sw_put()
587 new = old | SCR_RELAY; in qtet_ain12_sw_put()
594 new = old | SCR_RELAY; in qtet_ain12_sw_put()
623 unsigned int old, new; in qtet_php_put() local
[all …]
Djuli.c210 unsigned char old, tmp, ak4358_dfs; in juli_akm_set_rate_val() local
238 old = inb(ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val()
239 outb(old | VT1724_AC97_COLD, ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val()
241 outb(old & ~VT1724_AC97_COLD, ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val()
518 unsigned int old, new; in juli_set_rate() local
521 old = ice->gpio.get_data(ice); in juli_set_rate()
522 new = (old & ~GPIO_RATE_MASK) | get_gpio_val(rate); in juli_set_rate()
543 unsigned int old; in juli_set_spdif_clock() local
544 old = ice->gpio.get_data(ice); in juli_set_spdif_clock()
546 ice->gpio.set_data(ice, (old & ~GPIO_RATE_MASK) | GPIO_MULTI_1X | in juli_set_spdif_clock()
Dice1724.c526 unsigned char old; in snd_vt1724_pcm_trigger() local
543 old = inb(ICEMT1724(ice, DMA_PAUSE)); in snd_vt1724_pcm_trigger()
545 old |= what; in snd_vt1724_pcm_trigger()
547 old &= ~what; in snd_vt1724_pcm_trigger()
548 outb(old, ICEMT1724(ice, DMA_PAUSE)); in snd_vt1724_pcm_trigger()
556 old = inb(ICEMT1724(ice, DMA_CONTROL)); in snd_vt1724_pcm_trigger()
558 old |= what; in snd_vt1724_pcm_trigger()
560 old &= ~what; in snd_vt1724_pcm_trigger()
561 outb(old, ICEMT1724(ice, DMA_CONTROL)); in snd_vt1724_pcm_trigger()
607 unsigned char val, old; in stdclock_set_mclk() local
[all …]
Drevo.c41 unsigned char old, tmp, dfs; in revo_set_rate_val() local
63 old = (tmp >> shift) & 0x03; in revo_set_rate_val()
64 if (old == dfs) in revo_set_rate_val()
Dice1712.c909 unsigned int old; in snd_ice1712_pro_trigger() local
915 old = inl(ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
917 old |= what; in snd_ice1712_pro_trigger()
919 old &= ~what; in snd_ice1712_pro_trigger()
920 outl(old, ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
928 unsigned int old; in snd_ice1712_pro_trigger() local
941 old = inl(ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
943 old |= what; in snd_ice1712_pro_trigger()
945 old &= ~what; in snd_ice1712_pro_trigger()
946 outl(old, ICEMT(ice, PLAYBACK_CONTROL)); in snd_ice1712_pro_trigger()
[all …]
/sound/aoa/core/
Dgpio-pmf.c135 notify_func_t old; in pmf_set_notify() local
159 old = notif->notify; in pmf_set_notify()
161 if (!old && !notify) { in pmf_set_notify()
166 if (old && notify) { in pmf_set_notify()
167 if (old == notify && notif->data == data) in pmf_set_notify()
172 if (old && !notify) { in pmf_set_notify()
178 if (!old && notify) { in pmf_set_notify()
Dgpio-feature.c316 notify_func_t old; in ftr_set_notify() local
346 old = notif->notify; in ftr_set_notify()
348 if (!old && !notify) { in ftr_set_notify()
353 if (old && notify) { in ftr_set_notify()
354 if (old == notify && notif->data == data) in ftr_set_notify()
359 if (old && !notify) in ftr_set_notify()
362 if (!old && notify) { in ftr_set_notify()
/sound/soc/intel/common/
Dsst-dsp.c87 unsigned int old, new; in sst_dsp_shim_update_bits_unlocked() local
92 old = ret; in sst_dsp_shim_update_bits_unlocked()
93 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits_unlocked()
95 change = (old != new); in sst_dsp_shim_update_bits_unlocked()
107 unsigned int old, new; in sst_dsp_shim_update_bits_forced_unlocked() local
112 old = ret; in sst_dsp_shim_update_bits_forced_unlocked()
113 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits_forced_unlocked()
/sound/soc/codecs/
Dcx20442.c156 int vls, vsp, old, len; in cx20442_write() local
167 old = cx20442->reg_cache; in cx20442_write()
179 (vls == cx20442_pm_to_v253_vls(old))) { in cx20442_write()
180 if (vsp == cx20442_pm_to_v253_vsp(old)) in cx20442_write()
183 } else if (vsp == cx20442_pm_to_v253_vsp(old)) in cx20442_write()
Dwm9712.c224 unsigned int mixer, mask, shift, old; in wm9712_hp_mixer_put() local
233 old = wm9712->hp_mixer[mixer]; in wm9712_hp_mixer_put()
239 change = old != wm9712->hp_mixer[mixer]; in wm9712_hp_mixer_put()
/sound/pci/
Des1938.c272 unsigned char old, new, oval; in snd_es1938_mixer_bits() local
275 old = inb(SLSB_REG(chip, MIXERDATA)); in snd_es1938_mixer_bits()
276 oval = old & mask; in snd_es1938_mixer_bits()
278 new = (old & ~mask) | (val & mask); in snd_es1938_mixer_bits()
282 reg, old, new); in snd_es1938_mixer_bits()
358 unsigned char old, new, oval; in snd_es1938_bits() local
362 old = snd_es1938_get_byte(chip); in snd_es1938_bits()
363 oval = old & mask; in snd_es1938_bits()
366 new = (old & ~mask) | (val & mask); in snd_es1938_bits()
369 reg, old, new); in snd_es1938_bits()
[all …]
/sound/soc/
Dsoc-component.c763 unsigned int old, new; in snd_soc_component_update_bits_legacy() local
768 old = soc_component_read_no_lock(component, reg); in snd_soc_component_update_bits_legacy()
770 new = (old & ~mask) | (val & mask); in snd_soc_component_update_bits_legacy()
771 *change = old != new; in snd_soc_component_update_bits_legacy()
916 unsigned int old, new; in snd_soc_component_test_bits() local
918 old = snd_soc_component_read(component, reg); in snd_soc_component_test_bits()
919 new = (old & ~mask) | value; in snd_soc_component_test_bits()
920 return old != new; in snd_soc_component_test_bits()
/sound/soc/intel/catpt/
Ddsp.c157 unsigned long old; in catpt_dsp_set_srampge() local
161 old = catpt_readl_pci(cdev, VDRTCTL0) & mask; in catpt_dsp_set_srampge()
163 mask, old, new); in catpt_dsp_set_srampge()
165 if (old == new) in catpt_dsp_set_srampge()
180 if (test_bit(b, &old)) { in catpt_dsp_set_srampge()
/sound/hda/
DKconfig59 Bay- and Cherry-Trail SoCs. The old SST driver and the new SOF
61 to using the old SST driver, unless told otherwise through the
/sound/isa/
Des18xx.c231 unsigned char old, new, oval; in snd_es18xx_bits() local
244 old = ret; in snd_es18xx_bits()
245 oval = old & mask; in snd_es18xx_bits()
250 new = (old & ~mask) | (val & mask); in snd_es18xx_bits()
256 reg, old, new, ret); in snd_es18xx_bits()
296 unsigned char old, new, oval; in snd_es18xx_mixer_bits() local
300 old = inb(chip->port + 0x05); in snd_es18xx_mixer_bits()
301 oval = old & mask; in snd_es18xx_mixer_bits()
303 new = (old & ~mask) | (val & mask); in snd_es18xx_mixer_bits()
307 reg, old, new); in snd_es18xx_mixer_bits()
[all …]
Dsc6000.c383 int old = 0; in sc6000_init_board() local
414 old = 1; in sc6000_init_board()
416 if (!old) { in sc6000_init_board()
433 if (!old) { in sc6000_init_board()
/sound/mips/
Dhal2.c222 u32 old, new; in hal2_gain_put() local
230 old = hal2_i_read32(hal2, H2I_DAC_C2); in hal2_gain_put()
231 new = old & ~(H2I_C2_L_ATT_M | H2I_C2_R_ATT_M | H2I_C2_MUTE); in hal2_gain_put()
242 old = hal2_i_read32(hal2, H2I_ADC_C2); in hal2_gain_put()
243 new = old & ~(H2I_C2_L_GAIN_M | H2I_C2_R_GAIN_M); in hal2_gain_put()
251 return old != new; in hal2_gain_put()
/sound/i2c/other/
Dak4113.c112 unsigned char old = chip->regmap[AK4113_REG_PWRDN], reg; in ak4113_init_regs() local
115 reg_write(chip, AK4113_REG_PWRDN, old & ~(AK4113_RST|AK4113_PWN)); in ak4113_init_regs()
118 reg_write(chip, AK4113_REG_PWRDN, (old | AK4113_RST) & ~AK4113_PWN); in ak4113_init_regs()
123 reg_write(chip, AK4113_REG_PWRDN, old | AK4113_RST | AK4113_PWN); in ak4113_init_regs()
Dak4114.c126 unsigned char old = chip->regmap[AK4114_REG_PWRDN], reg; in ak4114_init_regs() local
129 reg_write(chip, AK4114_REG_PWRDN, old & ~(AK4114_RST|AK4114_PWN)); in ak4114_init_regs()
132 reg_write(chip, AK4114_REG_PWRDN, (old | AK4114_RST) & ~AK4114_PWN); in ak4114_init_regs()
139 reg_write(chip, AK4114_REG_PWRDN, old | AK4114_RST | AK4114_PWN); in ak4114_init_regs()
Dak4117.c111 unsigned char old = chip->regmap[AK4117_REG_PWRDN], reg; in snd_ak4117_reinit() local
119 reg_write(chip, AK4117_REG_PWRDN, (old | AK4117_RST) & ~AK4117_PWN); in snd_ak4117_reinit()
124 reg_write(chip, AK4117_REG_PWRDN, old | AK4117_RST | AK4117_PWN); in snd_ak4117_reinit()
/sound/usb/6fire/
Dcontrol.c237 u8 old = rt->output_mute; in usb6fire_control_output_mute_put() local
253 if (rt->output_mute != old) in usb6fire_control_output_mute_put()
256 return rt->output_mute != old; in usb6fire_control_output_mute_put()
/sound/pci/ac97/
Dac97_pcm.c161 unsigned short old, bits, reg, mask; in set_spdif_rate() local
196 old = snd_ac97_read(ac97, reg) & mask; in set_spdif_rate()
197 if (old != bits) { in set_spdif_rate()

12