Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 121) sorted by relevance

12345

/sound/pci/ice1712/
Ddelta.c47 static void ap_cs8427_write_byte(struct snd_ice1712 *ice, unsigned char data, unsigned char tmp) in ap_cs8427_write_byte() argument
52 tmp &= ~(ICE1712_DELTA_AP_DOUT|ICE1712_DELTA_AP_CCLK); in ap_cs8427_write_byte()
54 tmp |= ICE1712_DELTA_AP_DOUT; in ap_cs8427_write_byte()
55 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_write_byte()
57 tmp |= ICE1712_DELTA_AP_CCLK; in ap_cs8427_write_byte()
58 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_write_byte()
64 static unsigned char ap_cs8427_read_byte(struct snd_ice1712 *ice, unsigned char tmp) in ap_cs8427_read_byte() argument
70 tmp &= ~ICE1712_DELTA_AP_CCLK; in ap_cs8427_read_byte()
71 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_read_byte()
75 tmp |= ICE1712_DELTA_AP_CCLK; in ap_cs8427_read_byte()
[all …]
Dak4xxx.c58 unsigned int tmp; in snd_ice1712_akm4xxx_write() local
67 tmp = snd_ice1712_gpio_read(ice); in snd_ice1712_akm4xxx_write()
68 tmp |= priv->add_flags; in snd_ice1712_akm4xxx_write()
69 tmp &= ~priv->mask_flags; in snd_ice1712_akm4xxx_write()
72 tmp |= priv->cs_mask; /* start without chip select */ in snd_ice1712_akm4xxx_write()
74 tmp &= ~priv->cs_mask; /* chip select low */ in snd_ice1712_akm4xxx_write()
75 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write()
80 tmp &= ~priv->cs_mask; in snd_ice1712_akm4xxx_write()
81 tmp |= priv->cs_addr; in snd_ice1712_akm4xxx_write()
82 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write()
[all …]
Daureon.c114 unsigned int tmp; in aureon_pca9554_write() local
119 tmp = snd_ice1712_gpio_read(ice); in aureon_pca9554_write()
124 tmp |= AUREON_WM_RW; in aureon_pca9554_write()
125 tmp |= AUREON_CS8415_CS | AUREON_WM_CS; /* disable SPI devices */ in aureon_pca9554_write()
127 tmp &= ~AUREON_SPI_MOSI; in aureon_pca9554_write()
128 tmp &= ~AUREON_SPI_CLK; in aureon_pca9554_write()
129 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write()
136 tmp |= AUREON_SPI_CLK; in aureon_pca9554_write()
137 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write()
139 tmp |= AUREON_SPI_MOSI; in aureon_pca9554_write()
[all …]
Drevo.c55 unsigned char old, tmp, dfs; in revo_set_rate_val() local
76 tmp = snd_akm4xxx_get(ak, 0, reg); in revo_set_rate_val()
77 old = (tmp >> shift) & 0x03; in revo_set_rate_val()
83 tmp = snd_akm4xxx_get(ak, 0, reg); in revo_set_rate_val()
84 tmp &= ~(0x03 << shift); in revo_set_rate_val()
85 tmp |= dfs << shift; in revo_set_rate_val()
87 snd_akm4xxx_set(ak, 0, reg, tmp); /* value is written in reset(0) */ in revo_set_rate_val()
424 unsigned int tmp; in ap192_4wire_start() local
427 tmp = snd_ice1712_gpio_read(ice); in ap192_4wire_start()
428 tmp |= VT1724_REVO_CCLK; /* high at init */ in ap192_4wire_start()
[all …]
Dquartet.c276 unsigned int tmp, orig_dir; in qtet_akm_write() local
290 tmp = ice->gpio.get_data(ice); in qtet_akm_write()
292 tmp |= GPIO_SPI_ALL; in qtet_akm_write()
293 ice->gpio.set_data(ice, tmp); in qtet_akm_write()
298 tmp &= ~GPIO_SPI_CSN1; in qtet_akm_write()
300 tmp &= ~GPIO_SPI_CSN0; in qtet_akm_write()
301 ice->gpio.set_data(ice, tmp); in qtet_akm_write()
309 tmp &= ~GPIO_D5_SPI_CCLK; in qtet_akm_write()
310 ice->gpio.set_data(ice, tmp); in qtet_akm_write()
314 tmp |= GPIO_D4_SPI_CDTO; in qtet_akm_write()
[all …]
Dprodigy192.c176 unsigned char tmp, ovol, nvol; in stac9460_dac_vol_put() local
184 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
185 ovol = 0x7f - (tmp & 0x7f); in stac9460_dac_vol_put()
188 ovol = (0x7f - nvol) | (tmp & 0x80); in stac9460_dac_vol_put()
193 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
505 unsigned int tmp; in prodigy192_4wire_start() local
508 tmp = snd_ice1712_gpio_read(ice); in prodigy192_4wire_start()
510 tmp |= VT1724_PRODIGY192_CCLK; /* high at init */ in prodigy192_4wire_start()
511 tmp &= ~VT1724_PRODIGY192_CS; /* drop chip select */ in prodigy192_4wire_start()
512 snd_ice1712_gpio_write(ice, tmp); in prodigy192_4wire_start()
[all …]
Dews.c59 unsigned char tmp = 0; in ewx_i2c_setlines() local
61 tmp |= ICE1712_EWX2496_SERIAL_CLOCK; in ewx_i2c_setlines()
63 tmp |= ICE1712_EWX2496_SERIAL_DATA; in ewx_i2c_setlines()
64 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ewx_i2c_setlines()
175 unsigned char tmp; in ews88mt_ak4524_lock() local
180 tmp = ICE1712_EWS88_SERIAL_DATA | in ews88mt_ak4524_lock()
184 ice->gpio.direction | tmp); in ews88mt_ak4524_lock()
185 snd_ice1712_write(ice, ICE1712_IREG_GPIO_WRITE_MASK, ~tmp); in ews88mt_ak4524_lock()
201 unsigned char tmp; in ewx2496_ak4524_lock() local
203 tmp = ICE1712_EWX2496_SERIAL_DATA | in ewx2496_ak4524_lock()
[all …]
Dphase.c214 unsigned int tmp; in phase28_spi_write() local
217 tmp = snd_ice1712_gpio_read(ice); in phase28_spi_write()
221 tmp |= PHASE28_WM_RW; in phase28_spi_write()
222 tmp &= ~cs; in phase28_spi_write()
223 snd_ice1712_gpio_write(ice, tmp); in phase28_spi_write()
227 tmp &= ~PHASE28_SPI_CLK; in phase28_spi_write()
228 snd_ice1712_gpio_write(ice, tmp); in phase28_spi_write()
231 tmp |= PHASE28_SPI_MOSI; in phase28_spi_write()
233 tmp &= ~PHASE28_SPI_MOSI; in phase28_spi_write()
234 snd_ice1712_gpio_write(ice, tmp); in phase28_spi_write()
[all …]
/sound/soc/nuc900/
Dnuc900-ac97.c101 unsigned long tmp, timeout = 0x10000; in nuc900_ac97_write() local
105 tmp = nuc900_checkready(); in nuc900_ac97_write()
106 if (tmp) in nuc900_ac97_write()
116 tmp = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0); in nuc900_ac97_write()
117 tmp |= SLOT1_VALID | SLOT2_VALID | VALID_FRAME; in nuc900_ac97_write()
118 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, tmp); in nuc900_ac97_write()
130 tmp = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0); in nuc900_ac97_write()
131 tmp &= ~(SLOT1_VALID | SLOT2_VALID); in nuc900_ac97_write()
132 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, tmp); in nuc900_ac97_write()
213 unsigned long val, tmp; in nuc900_ac97_trigger() local
[all …]
/sound/isa/gus/
Dgus_timer.c35 unsigned char tmp; in snd_gf1_timer1_start() local
42 tmp = (gus->gf1.timer_enabled |= 4); in snd_gf1_timer1_start()
44 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 1 IRQ */ in snd_gf1_timer1_start()
45 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */ in snd_gf1_timer1_start()
53 unsigned char tmp; in snd_gf1_timer1_stop() local
58 tmp = (gus->gf1.timer_enabled &= ~4); in snd_gf1_timer1_stop()
59 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */ in snd_gf1_timer1_stop()
71 unsigned char tmp; in snd_gf1_timer2_start() local
78 tmp = (gus->gf1.timer_enabled |= 8); in snd_gf1_timer2_start()
80 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 2 IRQ */ in snd_gf1_timer2_start()
[all …]
/sound/pci/
Dals300.c168 u32 tmp = snd_als300_gcr_read(chip->port, MISC_CONTROL); in snd_als300_set_irq_flag() local
175 tmp |= IRQ_SET_BIT; in snd_als300_set_irq_flag()
177 tmp &= ~IRQ_SET_BIT; in snd_als300_set_irq_flag()
178 snd_als300_gcr_write(chip->port, MISC_CONTROL, tmp); in snd_als300_set_irq_flag()
442 u32 tmp; in snd_als300_playback_prepare() local
449 tmp = snd_als300_gcr_read(chip->port, PLAYBACK_CONTROL); in snd_als300_playback_prepare()
450 tmp &= ~TRANSFER_START; in snd_als300_playback_prepare()
456 tmp &= 0xffff0000; in snd_als300_playback_prepare()
457 tmp |= period_bytes - 1; in snd_als300_playback_prepare()
458 snd_als300_gcr_write(chip->port, PLAYBACK_CONTROL, tmp); in snd_als300_playback_prepare()
[all …]
/sound/pci/oxygen/
Doxygen_io.c70 u8 tmp = inb(chip->addr + reg); in oxygen_write8_masked() local
71 tmp &= ~mask; in oxygen_write8_masked()
72 tmp |= value & mask; in oxygen_write8_masked()
73 outb(tmp, chip->addr + reg); in oxygen_write8_masked()
74 chip->saved_registers._8[reg] = tmp; in oxygen_write8_masked()
81 u16 tmp = inw(chip->addr + reg); in oxygen_write16_masked() local
82 tmp &= ~mask; in oxygen_write16_masked()
83 tmp |= value & mask; in oxygen_write16_masked()
84 outw(tmp, chip->addr + reg); in oxygen_write16_masked()
85 chip->saved_registers._16[reg / 2] = cpu_to_le16(tmp); in oxygen_write16_masked()
[all …]
/sound/pci/ac97/
Dac97_pcm.c261 unsigned int tmp; in snd_ac97_set_rate() local
300 tmp = (rate * ac97->bus->clock) / 48000; in snd_ac97_set_rate()
301 if (tmp > 65535) in snd_ac97_set_rate()
306 snd_ac97_update(ac97, reg, tmp & 0xffff); in snd_ac97_set_rate()
455 unsigned short tmp, slots; in snd_ac97_pcm_assign() local
500 tmp = spdif_slots[j]; in snd_ac97_pcm_assign()
502 tmp = avail_slots[pcm->stream][j]; in snd_ac97_pcm_assign()
505 tmp &= slots; in snd_ac97_pcm_assign()
508 tmp &= ~rpcms[k].r[0].rslots[j]; in snd_ac97_pcm_assign()
512 tmp &= pcm->r[0].slots; in snd_ac97_pcm_assign()
[all …]
/sound/soc/intel/
Dsst-firmware.c115 struct sst_module *module, *tmp; in sst_fw_unload() local
120 list_for_each_entry_safe(module, tmp, &dsp->module_list, list) { in sst_fw_unload()
221 struct list_head tmp = LIST_HEAD_INIT(tmp); in block_alloc_contiguous() local
228 list_splice(&tmp, &dsp->free_block_list); in block_alloc_contiguous()
232 list_move_tail(&block->list, &tmp); in block_alloc_contiguous()
237 list_for_each_entry(block, &tmp, list) in block_alloc_contiguous()
240 list_splice(&tmp, &dsp->used_block_list); in block_alloc_contiguous()
249 struct sst_mem_block *block, *tmp; in block_alloc() local
256 list_for_each_entry_safe(block, tmp, &dsp->free_block_list, list) { in block_alloc()
276 list_for_each_entry_safe(block, tmp, &dsp->free_block_list, list) { in block_alloc()
[all …]
/sound/aoa/codecs/
Dtas.c141 u8 tmp; in tas_set_treble() local
143 tmp = tas3004_treble(tas->treble); in tas_set_treble()
144 tas_write_reg(tas, TAS_REG_TREBLE, 1, &tmp); in tas_set_treble()
149 u8 tmp; in tas_set_bass() local
151 tmp = tas3004_bass(tas->bass); in tas_set_bass()
152 tas_write_reg(tas, TAS_REG_BASS, 1, &tmp); in tas_set_bass()
158 int tmp; in tas_set_volume() local
176 tmp = tas_gaintable[left]; in tas_set_volume()
177 block[0] = tmp>>20; in tas_set_volume()
178 block[1] = tmp>>12; in tas_set_volume()
[all …]
/sound/oss/
Dpas2_pcm.c49 int foo, tmp; in pcm_set_speed() local
73 tmp = pas_read(0x0B8A); in pcm_set_speed()
88 tmp &= 0xe0; in pcm_set_speed()
90 tmp |= 0x01; in pcm_set_speed()
92 tmp |= 0x02; in pcm_set_speed()
94 tmp |= 0x09; in pcm_set_speed()
96 tmp |= 0x11; in pcm_set_speed()
98 tmp |= 0x19; in pcm_set_speed()
100 tmp |= 0x04; in pcm_set_speed()
101 pcm_filter = tmp; in pcm_set_speed()
[all …]
Dad1848.c1126 unsigned char fs, old_fs, tmp = 0; in ad1848_prepare_for_output() local
1152 tmp = ad_read(devc, 16); in ad1848_prepare_for_output()
1153 ad_write(devc, 16, tmp | 0x30); in ad1848_prepare_for_output()
1172 ad_write(devc, 16, tmp & ~0x30); in ad1848_prepare_for_output()
1194 unsigned char fs, old_fs, tmp = 0; in ad1848_prepare_for_input() local
1219 tmp = ad_read(devc, 16); in ad1848_prepare_for_input()
1220 ad_write(devc, 16, tmp | 0x30); in ad1848_prepare_for_input()
1253 unsigned char tmp = portc->speed_bits | (ad_read(devc, 8) & 0xf0); in ad1848_prepare_for_input() local
1255 ad_write(devc, 8, tmp); in ad1848_prepare_for_input()
1285 ad_write(devc, 16, tmp & ~0x30); in ad1848_prepare_for_input()
[all …]
Dtrix.c237 unsigned char tmp; in init_trix_wss() local
239 tmp = trix_read(0x13) & ~30; in init_trix_wss()
240 trix_write(0x13, tmp | 0x80 | (dma1 << 4)); in init_trix_wss()
242 tmp = trix_read(0x14) & ~30; in init_trix_wss()
243 trix_write(0x14, tmp | 0x80 | (dma2 << 4)); in init_trix_wss()
274 int tmp; in probe_trix_sb() local
288 tmp = hw_config->irq; in probe_trix_sb()
289 if (tmp > 7) in probe_trix_sb()
291 if (irq_translate[tmp] == -1) in probe_trix_sb()
294 tmp = hw_config->dma; in probe_trix_sb()
[all …]
Dpss.c219 unsigned short tmp, bits; in set_irq() local
224 tmp = inw(REG(dev)) & ~0x38; /* Load confreg, mask IRQ bits out */ in set_irq()
231 outw(tmp | bits, REG(dev)); in set_irq()
237 unsigned short tmp = inw(REG(dev)) & 0x003f; in set_io_base() local
240 outw(bits | tmp, REG(dev)); in set_io_base()
251 unsigned short tmp, bits; in set_dma() local
256 tmp = inw(REG(dev)) & ~0x07; /* Load confreg, mask DMA bits out */ in set_dma()
263 outw(tmp | bits, REG(dev)); in set_dma()
690 char tmp[100]; in attach_pss() local
735 sprintf(tmp, "ECHO-PSS Rev. %d", id); in attach_pss()
[all …]
/sound/pci/emu10k1/
Demufx.c469 struct snd_emu10k1_fx8010_irq *tmp; in snd_emu10k1_fx8010_unregister_irq_handler() local
473 if ((tmp = emu->fx8010.irq_handlers) == irq) { in snd_emu10k1_fx8010_unregister_irq_handler()
474 emu->fx8010.irq_handlers = tmp->next; in snd_emu10k1_fx8010_unregister_irq_handler()
480 while (tmp && tmp->next != irq) in snd_emu10k1_fx8010_unregister_irq_handler()
481 tmp = tmp->next; in snd_emu10k1_fx8010_unregister_irq_handler()
482 if (tmp) in snd_emu10k1_fx8010_unregister_irq_handler()
483 tmp->next = tmp->next->next; in snd_emu10k1_fx8010_unregister_irq_handler()
1153 u32 *ptr, int tmp, int bit_shifter16, in snd_emu10k1_audigy_dsp_convert_32_to_2x16() argument
1156 A_OP(icode, ptr, iACC3, A_GPR(tmp + 1), reg_in, A_C_00000000, A_C_00000000); in snd_emu10k1_audigy_dsp_convert_32_to_2x16()
1157 A_OP(icode, ptr, iANDXOR, A_GPR(tmp), A_GPR(tmp + 1), A_GPR(bit_shifter16 - 1), A_C_00000000); in snd_emu10k1_audigy_dsp_convert_32_to_2x16()
[all …]
Dio.c138 unsigned int reg, tmp; in snd_emu10k1_spi_write() local
158 tmp = snd_emu10k1_ptr20_read(emu, reg, 0); in snd_emu10k1_spi_write()
159 reset = (tmp & ~0x3ffff) | 0x20000; /* Set xxx20000 */ in snd_emu10k1_spi_write()
162 tmp = snd_emu10k1_ptr20_read(emu, reg, 0); /* write post */ in snd_emu10k1_spi_write()
168 tmp = snd_emu10k1_ptr20_read(emu, reg, 0); in snd_emu10k1_spi_write()
169 if (!(tmp & 0x10000)) { in snd_emu10k1_spi_write()
180 tmp = snd_emu10k1_ptr20_read(emu, reg, 0); /* Write post */ in snd_emu10k1_spi_write()
192 u32 tmp; in snd_emu10k1_i2c_write() local
206 tmp = reg << 25 | value << 16; in snd_emu10k1_i2c_write()
209 snd_emu10k1_ptr20_write(emu, P17V_I2C_1, 0, tmp); in snd_emu10k1_i2c_write()
[all …]
/sound/usb/caiaq/
Ddevice.c267 char tmp[5]; in snd_usb_caiaq_set_audio_params() local
271 case 44100: tmp[0] = SAMPLERATE_44100; break; in snd_usb_caiaq_set_audio_params()
272 case 48000: tmp[0] = SAMPLERATE_48000; break; in snd_usb_caiaq_set_audio_params()
273 case 88200: tmp[0] = SAMPLERATE_88200; break; in snd_usb_caiaq_set_audio_params()
274 case 96000: tmp[0] = SAMPLERATE_96000; break; in snd_usb_caiaq_set_audio_params()
275 case 192000: tmp[0] = SAMPLERATE_192000; break; in snd_usb_caiaq_set_audio_params()
280 case 16: tmp[1] = DEPTH_16; break; in snd_usb_caiaq_set_audio_params()
281 case 24: tmp[1] = DEPTH_24; break; in snd_usb_caiaq_set_audio_params()
285 tmp[2] = bpp & 0xff; in snd_usb_caiaq_set_audio_params()
286 tmp[3] = bpp >> 8; in snd_usb_caiaq_set_audio_params()
[all …]
/sound/drivers/opl3/
Dopl3_lib.c161 unsigned char tmp; in snd_opl3_timer1_start() local
168 tmp = (opl3->timer_enable | OPL3_TIMER1_START) & ~OPL3_TIMER1_MASK; in snd_opl3_timer1_start()
169 opl3->timer_enable = tmp; in snd_opl3_timer1_start()
171 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, tmp); /* enable timer 1 IRQ */ in snd_opl3_timer1_start()
179 unsigned char tmp; in snd_opl3_timer1_stop() local
184 tmp = (opl3->timer_enable | OPL3_TIMER1_MASK) & ~OPL3_TIMER1_START; in snd_opl3_timer1_stop()
185 opl3->timer_enable = tmp; in snd_opl3_timer1_stop()
186 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, tmp); /* disable timer #1 */ in snd_opl3_timer1_stop()
198 unsigned char tmp; in snd_opl3_timer2_start() local
205 tmp = (opl3->timer_enable | OPL3_TIMER2_START) & ~OPL3_TIMER2_MASK; in snd_opl3_timer2_start()
[all …]
/sound/core/oss/
Dmixer_oss.c315 int tmp; in snd_mixer_oss_ioctl1() local
326 if (get_user(tmp, p)) in snd_mixer_oss_ioctl1()
328 tmp = snd_mixer_oss_set_recsrc(fmixer, tmp); in snd_mixer_oss_ioctl1()
329 if (tmp < 0) in snd_mixer_oss_ioctl1()
330 return tmp; in snd_mixer_oss_ioctl1()
331 return put_user(tmp, p); in snd_mixer_oss_ioctl1()
337 tmp = snd_mixer_oss_devmask(fmixer); in snd_mixer_oss_ioctl1()
338 if (tmp < 0) in snd_mixer_oss_ioctl1()
339 return tmp; in snd_mixer_oss_ioctl1()
340 return put_user(tmp, p); in snd_mixer_oss_ioctl1()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.c94 unsigned short result,tmp; in snd_cs46xx_codec_read() local
117 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL); in snd_cs46xx_codec_read()
118 if ((tmp & ACCTL_VFRM) == 0) { in snd_cs46xx_codec_read()
119 dev_warn(chip->card->dev, "ACCTL_VFRM not set 0x%x\n", tmp); in snd_cs46xx_codec_read()
120 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, (tmp & (~ACCTL_ESYN)) | ACCTL_VFRM ); in snd_cs46xx_codec_read()
122 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL + offset); in snd_cs46xx_codec_read()
123 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, tmp | ACCTL_ESYN | ACCTL_VFRM ); in snd_cs46xx_codec_read()
628 unsigned int tmp; in snd_cs46xx_clear_serial_FIFOs() local
634 tmp = snd_cs46xx_peekBA0(chip, BA0_CLKCR1); in snd_cs46xx_clear_serial_FIFOs()
635 if (!(tmp & CLKCR1_SWCE)) { in snd_cs46xx_clear_serial_FIFOs()
[all …]

12345