Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 31) sorted by relevance

12

/sound/pci/au88x0/
Dau88x0_mpu401.c33 int temp, mode; in snd_vortex_midi() local
41 temp = in snd_vortex_midi()
44 hwwrite(vortex->mmio, VORTEX_CTRL, temp); in snd_vortex_midi()
47 temp = in snd_vortex_midi()
50 hwwrite(vortex->mmio, VORTEX_CTRL, temp); in snd_vortex_midi()
54 temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf; in snd_vortex_midi()
55 temp |= (MIDI_CLOCK_DIV << 8) | ((mode >> 24) & 0xff) << 4; in snd_vortex_midi()
56 hwwrite(vortex->mmio, VORTEX_CTRL2, temp); in snd_vortex_midi()
60 temp = hwread(vortex->mmio, VORTEX_MIDI_DATA); in snd_vortex_midi()
61 if (temp != MPU401_ACK /*0xfe */ ) { in snd_vortex_midi()
[all …]
Dau88x0_core.c157 int addr, temp;
163 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr);
164 return ((temp >> (mixin & 3)) & 1);
171 int temp; in vortex_mix_setvolumebyte() local
174 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte()
175 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setvolumebyte()
185 int temp; in vortex_mix_setinputvolumebyte() local
190 temp = in vortex_mix_setinputvolumebyte()
193 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setinputvolumebyte()
203 int temp, addr; in vortex_mix_setenablebit() local
[all …]
Dau88x0_synth.c30 int temp; in vortex_wt_setstereo() local
33 temp = hwread(vortex->mmio, WT_STEREO(wt)); in vortex_wt_setstereo()
34 temp = (temp & 0xfe) | (stereo & 1); in vortex_wt_setstereo()
36 hwwrite(vortex->mmio, WT_STEREO(wt), temp); in vortex_wt_setstereo()
42 int temp; in vortex_wt_setdsout() local
45 temp = hwread(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0)); in vortex_wt_setdsout()
47 temp |= (1 << (wt & 0x1f)); in vortex_wt_setdsout()
49 temp &= ~(1 << (wt & 0x1f)); in vortex_wt_setdsout()
50 hwwrite(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0), temp); in vortex_wt_setdsout()
57 int temp; in vortex_wt_allocroute() local
[all …]
Dau88x0_xtalk.c642 u32 temp; in vortex_XtalkHw_SetSampleRate() local
644 temp = (hwread(vortex->mmio, 0x24660) & 0x1FFFFFFF) | 0xC0000000; in vortex_XtalkHw_SetSampleRate()
645 temp = (temp & 0xffffff07) | ((sr & 0x1f) << 3); in vortex_XtalkHw_SetSampleRate()
646 hwwrite(vortex->mmio, 0x24660, temp); in vortex_XtalkHw_SetSampleRate()
658 u32 temp; in vortex_XtalkHw_Enable() local
660 temp = (hwread(vortex->mmio, 0x24660) & 0x1FFFFFFF) | 0xC0000000; in vortex_XtalkHw_Enable()
661 temp |= 1; in vortex_XtalkHw_Enable()
662 hwwrite(vortex->mmio, 0x24660, temp); in vortex_XtalkHw_Enable()
668 u32 temp; in vortex_XtalkHw_Disable() local
670 temp = (hwread(vortex->mmio, 0x24660) & 0x1FFFFFFF) | 0xC0000000; in vortex_XtalkHw_Disable()
[all …]
/sound/pci/emu10k1/
Demu10k1_callback.c309 unsigned int temp; in start_voice() local
339 temp = FXBUS_MIDI_LEFT | (FXBUS_MIDI_RIGHT << 8) | in start_voice()
341 snd_emu10k1_ptr_write(hw, A_FXRT1, ch, temp); in start_voice()
343 temp = (FXBUS_MIDI_LEFT << 16) | (FXBUS_MIDI_RIGHT << 20) | in start_voice()
345 snd_emu10k1_ptr_write(hw, FXRT, ch, temp); in start_voice()
368 temp = (unsigned int)vp->acutoff << 8 | (unsigned char)vp->avol; in start_voice()
369 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, temp); in start_voice()
386 temp = vp->reg.parm.reverb; in start_voice()
387 temp += (int)vp->chan->control[MIDI_CTL_E1_REVERB_DEPTH] * 9 / 10; in start_voice()
388 LIMITMAX(temp, 255); in start_voice()
[all …]
Dmemory.c568 int page, nextofs, end_offset, temp, temp1; in snd_emu10k1_synth_bzero() local
577 temp = nextofs - offset; in snd_emu10k1_synth_bzero()
579 if (temp1 < temp) in snd_emu10k1_synth_bzero()
580 temp = temp1; in snd_emu10k1_synth_bzero()
583 memset(ptr, 0, temp); in snd_emu10k1_synth_bzero()
598 int page, nextofs, end_offset, temp, temp1; in snd_emu10k1_synth_copy_from_user() local
607 temp = nextofs - offset; in snd_emu10k1_synth_copy_from_user()
609 if (temp1 < temp) in snd_emu10k1_synth_copy_from_user()
610 temp = temp1; in snd_emu10k1_synth_copy_from_user()
612 if (ptr && copy_from_user(ptr, data, temp)) in snd_emu10k1_synth_copy_from_user()
[all …]
/sound/pci/mixart/
Dmixart_mixer.c1110 struct snd_kcontrol_new temp; in snd_mixart_create_mixer() local
1114 temp = mixart_control_analog_level; in snd_mixart_create_mixer()
1115 temp.name = "Master Playback Volume"; in snd_mixart_create_mixer()
1116 temp.private_value = 0; /* playback */ in snd_mixart_create_mixer()
1117 if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) in snd_mixart_create_mixer()
1125 temp = mixart_control_analog_level; in snd_mixart_create_mixer()
1126 temp.name = "Master Capture Volume"; in snd_mixart_create_mixer()
1127 temp.private_value = 1; /* capture */ in snd_mixart_create_mixer()
1128 if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) in snd_mixart_create_mixer()
1132 temp = snd_mixart_pcm_vol; in snd_mixart_create_mixer()
[all …]
/sound/isa/sb/
Demu8000_callback.c223 unsigned int temp; in start_voice() local
273 temp = vp->reg.parm.chorus; in start_voice()
274 temp += (int)chan->control[MIDI_CTL_E3_CHORUS_DEPTH] * 9 / 10; in start_voice()
275 LIMITMAX(temp, 255); in start_voice()
276 temp = (temp <<24) | (unsigned int)addr; in start_voice()
277 EMU8000_CSL_WRITE(hw, ch, temp); in start_voice()
281 temp = vp->reg.parm.filterQ; in start_voice()
282 temp = (temp<<28) | (unsigned int)addr; in start_voice()
283 EMU8000_CCCA_WRITE(hw, ch, temp); in start_voice()
290 temp = vp->vtarget << 16; in start_voice()
[all …]
Demu8000_pcm.c272 unsigned int temp; in setup_voice() local
303 temp = rec->panning[ch]; in setup_voice()
304 temp = (temp <<24) | ((unsigned int)rec->loop_start[ch] - 1); in setup_voice()
305 EMU8000_PSST_WRITE(hw, ch, temp); in setup_voice()
307 temp = 0; // chorus in setup_voice()
308 temp = (temp << 24) | ((unsigned int)rec->loop_start[ch] + rec->buf_size - 1); in setup_voice()
309 EMU8000_CSL_WRITE(hw, ch, temp); in setup_voice()
311 temp = 0; // filterQ in setup_voice()
312 temp = (temp << 28) | ((unsigned int)rec->loop_start[ch] - 1); in setup_voice()
313 EMU8000_CCCA_WRITE(hw, ch, temp); in setup_voice()
[all …]
/sound/drivers/vx/
Dvx_mixer.c902 struct snd_kcontrol_new temp; in snd_vx_mixer_new() local
910 temp = vx_control_output_level; in snd_vx_mixer_new()
911 temp.index = i; in snd_vx_mixer_new()
912 temp.tlv.p = chip->hw->output_level_db_scale; in snd_vx_mixer_new()
913 if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) in snd_vx_mixer_new()
920 temp = vx_control_audio_gain; in snd_vx_mixer_new()
921 temp.index = i; in snd_vx_mixer_new()
922 temp.name = "PCM Playback Volume"; in snd_vx_mixer_new()
923 temp.private_value = val; in snd_vx_mixer_new()
924 if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) in snd_vx_mixer_new()
[all …]
/sound/pci/pcxhr/
Dpcxhr_mixer.c855 unsigned char temp; in pcxhr_iec958_capture_byte() local
898 temp = (unsigned char)rmh.stat[1]; in pcxhr_iec958_capture_byte()
900 temp = 0; in pcxhr_iec958_capture_byte()
903 temp <<= 1; in pcxhr_iec958_capture_byte()
905 temp |= 1; in pcxhr_iec958_capture_byte()
909 chip->chip_idx, aes_idx, temp); in pcxhr_iec958_capture_byte()
910 *aes_bits = temp; in pcxhr_iec958_capture_byte()
1111 struct snd_kcontrol_new temp; in pcxhr_create_mixer() local
1116 temp = pcxhr_control_analog_level; in pcxhr_create_mixer()
1117 temp.name = "Master Playback Volume"; in pcxhr_create_mixer()
[all …]
Dpcxhr_mix22.c627 unsigned char temp = 0; in hr222_iec958_capture_byte() local
633 temp <<= 1; in hr222_iec958_capture_byte()
635 temp |= 1; in hr222_iec958_capture_byte()
638 chip->chip_idx, aes_idx, temp); in hr222_iec958_capture_byte()
639 *aes_bits = temp; in hr222_iec958_capture_byte()
/sound/pci/ice1712/
Dphase.c690 int temp, temp2; in phase28_deemp_put() local
691 temp = wm_get(ice, WM_DAC_CTRL2); in phase28_deemp_put()
692 temp2 = temp; in phase28_deemp_put()
694 temp |= 0xf; in phase28_deemp_put()
696 temp &= ~0xf; in phase28_deemp_put()
697 if (temp != temp2) { in phase28_deemp_put()
698 wm_put(ice, WM_DAC_CTRL2, temp); in phase28_deemp_put()
727 int temp, temp2; in phase28_oversampling_put() local
730 temp = wm_get(ice, WM_MASTER); in phase28_oversampling_put()
731 temp2 = temp; in phase28_oversampling_put()
[all …]
Dak4xxx.c112 int snd_ice1712_akm4xxx_init(struct snd_akm4xxx *ak, const struct snd_akm4xxx *temp, in snd_ice1712_akm4xxx_init() argument
125 *ak = *temp; in snd_ice1712_akm4xxx_init()
Daureon.c1339 int temp, temp2; in aureon_deemp_put() local
1340 temp2 = temp = wm_get(ice, WM_DAC_CTRL2); in aureon_deemp_put()
1342 temp |= 0xf; in aureon_deemp_put()
1344 temp &= ~0xf; in aureon_deemp_put()
1345 if (temp != temp2) { in aureon_deemp_put()
1346 wm_put(ice, WM_DAC_CTRL2, temp); in aureon_deemp_put()
1371 int temp, temp2; in aureon_oversampling_put() local
1374 temp2 = temp = wm_get(ice, WM_MASTER); in aureon_oversampling_put()
1377 temp |= 0x8; in aureon_oversampling_put()
1379 temp &= ~0x8; in aureon_oversampling_put()
[all …]
/sound/pci/cs46xx/
Ddsp_spos_scb_lib.c1387 u32 temp = snd_cs46xx_peek (chip,pcm_channel->pcm_reader_scb->address << 2); in cs46xx_dsp_pcm_channel_set_period() local
1388 temp &= ~DMA_RQ_C1_SOURCE_SIZE_MASK; in cs46xx_dsp_pcm_channel_set_period()
1392 temp |= DMA_RQ_C1_SOURCE_MOD1024; in cs46xx_dsp_pcm_channel_set_period()
1395 temp |= DMA_RQ_C1_SOURCE_MOD512; in cs46xx_dsp_pcm_channel_set_period()
1398 temp |= DMA_RQ_C1_SOURCE_MOD256; in cs46xx_dsp_pcm_channel_set_period()
1401 temp |= DMA_RQ_C1_SOURCE_MOD128; in cs46xx_dsp_pcm_channel_set_period()
1404 temp |= DMA_RQ_C1_SOURCE_MOD64; in cs46xx_dsp_pcm_channel_set_period()
1407 temp |= DMA_RQ_C1_SOURCE_MOD32; in cs46xx_dsp_pcm_channel_set_period()
1410 temp |= DMA_RQ_C1_SOURCE_MOD16; in cs46xx_dsp_pcm_channel_set_period()
1418 snd_cs46xx_poke (chip,pcm_channel->pcm_reader_scb->address << 2,temp); in cs46xx_dsp_pcm_channel_set_period()
[all …]
/sound/pci/asihpi/
Dhpi6205.c1262 u32 temp; in adapter_boot_load_dsp() local
1295 temp = C6205_HDCR_WARMRESET; in adapter_boot_load_dsp()
1296 iowrite32(temp, phw->prHDCR); in adapter_boot_load_dsp()
1300 temp = ioread32(phw->prHSR); in adapter_boot_load_dsp()
1301 if ((temp & (C6205_HSR_CFGERR | C6205_HSR_EEREAD)) != in adapter_boot_load_dsp()
1304 temp |= 0x04; in adapter_boot_load_dsp()
1306 iowrite32(temp, phw->prHSR); in adapter_boot_load_dsp()
1309 temp = ioread32(phw->prHDCR); in adapter_boot_load_dsp()
1310 if (!(temp & C6205_HDCR_PCIBOOT)) in adapter_boot_load_dsp()
1315 temp = 3; in adapter_boot_load_dsp()
[all …]
/sound/soc/sprd/
Dsprd-mcdt.c869 struct sprd_mcdt_chan *temp, *chan = NULL; in sprd_mcdt_request_chan() local
873 list_for_each_entry(temp, &sprd_mcdt_chan_list, list) { in sprd_mcdt_request_chan()
874 if (temp->type == type && temp->id == channel) { in sprd_mcdt_request_chan()
875 chan = temp; in sprd_mcdt_request_chan()
895 struct sprd_mcdt_chan *temp; in sprd_mcdt_free_chan() local
902 list_for_each_entry(temp, &sprd_mcdt_chan_list, list) { in sprd_mcdt_free_chan()
903 if (temp == chan) { in sprd_mcdt_free_chan()
979 struct sprd_mcdt_chan *chan, *temp; in sprd_mcdt_remove() local
983 list_for_each_entry_safe(chan, temp, &sprd_mcdt_chan_list, list) in sprd_mcdt_remove()
/sound/soc/sof/
Dcontrol.c22 int temp = 0; in update_mute_led() local
30 temp |= mask; in update_mute_led()
35 if (temp == scontrol->led_ctl.led_value) in update_mute_led()
38 scontrol->led_ctl.led_value = temp; in update_mute_led()
42 ledtrig_audio_set(LED_AUDIO_MUTE, temp ? LED_OFF : LED_ON); in update_mute_led()
44 ledtrig_audio_set(LED_AUDIO_MICMUTE, temp ? LED_OFF : LED_ON); in update_mute_led()
/sound/soc/codecs/
Dmax98390.c815 unsigned int rdc, rdc_cal_result, temp; in max98390_dsm_calibrate() local
831 regmap_read(max98390->regmap, MAX98390_MEAS_ADC_CH2_READ, &temp); in max98390_dsm_calibrate()
832 max98390->ambient_temp_value = temp * 52 - 1188; in max98390_dsm_calibrate()
839 rdc_integer, rdc_factor, rdc_cal_result, temp); in max98390_dsm_calibrate()
/sound/pci/nm256/
Dnm256.c1351 void __iomem *temp; in snd_nm256_peek_for_sig() local
1356 temp = ioremap(chip->buffer_addr + chip->buffer_end - 0x400, 16); in snd_nm256_peek_for_sig()
1357 if (temp == NULL) { in snd_nm256_peek_for_sig()
1363 sig = readl(temp); in snd_nm256_peek_for_sig()
1365 u32 pointer = readl(temp + 4); in snd_nm256_peek_for_sig()
1375 iounmap(temp); in snd_nm256_peek_for_sig()
1385 iounmap(temp); in snd_nm256_peek_for_sig()
/sound/pci/trident/
Dtrident_main.c1365 unsigned int temp; in snd_trident_spdif_prepare() local
1471 temp = inl(TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_spdif_prepare()
1472 temp &= ~(1<<19); in snd_trident_spdif_prepare()
1473 outl(temp, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_spdif_prepare()
1474 temp = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_prepare()
1475 temp |= SPDIF_EN; in snd_trident_spdif_prepare()
1476 outl(temp, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_prepare()
1902 unsigned int temp; in snd_trident_spdif_close() local
1911 temp = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_close()
1913 temp |= SPDIF_EN; in snd_trident_spdif_close()
[all …]
/sound/pci/ali5451/
Dali5451.c1939 unsigned char temp; in snd_ali_chip_init() local
1951 pci_read_config_byte(pci_dev, 0x59, &temp); in snd_ali_chip_init()
1952 temp |= 0x80; in snd_ali_chip_init()
1953 pci_write_config_byte(pci_dev, 0x59, temp); in snd_ali_chip_init()
1956 pci_read_config_byte(pci_dev, 0xb8, &temp); in snd_ali_chip_init()
1957 temp |= 0x20; in snd_ali_chip_init()
1958 pci_write_config_byte(pci_dev, 0xB8, temp); in snd_ali_chip_init()
/sound/pci/lx6464es/
Dlx_core.c926 u32 temp; in lx_interrupt_test_ack() local
929 while ((temp = lx_plx_reg_read(chip, ePLX_L2PCIDB))) { in lx_interrupt_test_ack()
931 irqcs |= temp; in lx_interrupt_test_ack()
932 lx_plx_reg_write(chip, ePLX_L2PCIDB, temp); in lx_interrupt_test_ack()
/sound/pci/
Dens1370.c521 unsigned int temp, i, orig, r; in snd_es1371_src_read() local
524 temp = orig = snd_es1371_wait_src_ready(ensoniq); in snd_es1371_src_read()
527 r = temp & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 | in snd_es1371_src_read()
533 temp = snd_es1371_wait_src_ready(ensoniq); in snd_es1371_src_read()
535 if ((temp & 0x00870000) != 0x00010000) { in snd_es1371_src_read()
538 temp = inl(ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_read()
539 if ((temp & 0x00870000) == 0x00010000) in snd_es1371_src_read()
550 return temp; in snd_es1371_src_read()

12