Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 33) 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.c310 unsigned int temp; in start_voice() local
340 temp = FXBUS_MIDI_LEFT | (FXBUS_MIDI_RIGHT << 8) | in start_voice()
342 snd_emu10k1_ptr_write(hw, A_FXRT1, ch, temp); in start_voice()
344 temp = (FXBUS_MIDI_LEFT << 16) | (FXBUS_MIDI_RIGHT << 20) | in start_voice()
346 snd_emu10k1_ptr_write(hw, FXRT, ch, temp); in start_voice()
369 temp = (unsigned int)vp->acutoff << 8 | (unsigned char)vp->avol; in start_voice()
370 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, temp); in start_voice()
387 temp = vp->reg.parm.reverb; in start_voice()
388 temp += (int)vp->chan->control[MIDI_CTL_E1_REVERB_DEPTH] * 9 / 10; in start_voice()
389 LIMITMAX(temp, 255); in start_voice()
[all …]
Dmemory.c575 int page, nextofs, end_offset, temp, temp1; in snd_emu10k1_synth_bzero() local
584 temp = nextofs - offset; in snd_emu10k1_synth_bzero()
586 if (temp1 < temp) in snd_emu10k1_synth_bzero()
587 temp = temp1; in snd_emu10k1_synth_bzero()
590 memset(ptr, 0, temp); in snd_emu10k1_synth_bzero()
605 int page, nextofs, end_offset, temp, temp1; in snd_emu10k1_synth_copy_from_user() local
614 temp = nextofs - offset; in snd_emu10k1_synth_copy_from_user()
616 if (temp1 < temp) in snd_emu10k1_synth_copy_from_user()
617 temp = temp1; in snd_emu10k1_synth_copy_from_user()
619 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 err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip)); in snd_mixart_create_mixer()
1127 temp = mixart_control_analog_level; in snd_mixart_create_mixer()
1128 temp.name = "Master Capture Volume"; in snd_mixart_create_mixer()
1129 temp.private_value = 1; /* capture */ in snd_mixart_create_mixer()
1130 err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip)); in snd_mixart_create_mixer()
1135 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 err = snd_ctl_add(card, snd_ctl_new1(&temp, chip)); in snd_vx_mixer_new()
921 temp = vx_control_audio_gain; in snd_vx_mixer_new()
922 temp.index = i; in snd_vx_mixer_new()
923 temp.name = "PCM Playback Volume"; in snd_vx_mixer_new()
924 temp.private_value = val; in snd_vx_mixer_new()
925 err = snd_ctl_add(card, snd_ctl_new1(&temp, chip)); 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/soc/sprd/
Dsprd-mcdt.c869 struct sprd_mcdt_chan *temp; 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 list_del_init(&temp->list); in sprd_mcdt_request_chan()
880 if (list_entry_is_head(temp, &sprd_mcdt_chan_list, list)) in sprd_mcdt_request_chan()
881 temp = NULL; in sprd_mcdt_request_chan()
885 return 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()
[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/pci/nm256/
Dnm256.c1349 void __iomem *temp; in snd_nm256_peek_for_sig() local
1354 temp = ioremap(chip->buffer_addr + chip->buffer_end - 0x400, 16); in snd_nm256_peek_for_sig()
1355 if (temp == NULL) { in snd_nm256_peek_for_sig()
1361 sig = readl(temp); in snd_nm256_peek_for_sig()
1363 u32 pointer = readl(temp + 4); in snd_nm256_peek_for_sig()
1373 iounmap(temp); in snd_nm256_peek_for_sig()
1383 iounmap(temp); in snd_nm256_peek_for_sig()
/sound/soc/intel/keembay/
Dkmb_platform.c82 unsigned long temp; in hdmi_reformat_iec958() local
88 temp = buf[tx_ptr][j]; in hdmi_reformat_iec958()
90 assign_bit(31, &temp, (BIT(3) & temp)); in hdmi_reformat_iec958()
91 sample = bitrev32(temp); in hdmi_reformat_iec958()
/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/soc/codecs/
Dmax98390.c639 unsigned int rdc, rdc_cal_result, rdc_integer, rdc_factor, temp, val; in max98390_dsm_calib_put() local
654 regmap_read(max98390->regmap, MAX98390_MEAS_ADC_CH2_READ, &temp); in max98390_dsm_calib_put()
670 max98390->ambient_temp_value = temp * 52 - 1188; in max98390_dsm_calib_put()
677 rdc_integer, rdc_factor, rdc_cal_result, temp); in max98390_dsm_calib_put()
/sound/pci/ali5451/
Dali5451.c1930 unsigned char temp; in snd_ali_chip_init() local
1942 pci_read_config_byte(pci_dev, 0x59, &temp); in snd_ali_chip_init()
1943 temp |= 0x80; in snd_ali_chip_init()
1944 pci_write_config_byte(pci_dev, 0x59, temp); in snd_ali_chip_init()
1947 pci_read_config_byte(pci_dev, 0xb8, &temp); in snd_ali_chip_init()
1948 temp |= 0x20; in snd_ali_chip_init()
1949 pci_write_config_byte(pci_dev, 0xB8, temp); in snd_ali_chip_init()
/sound/pci/lx6464es/
Dlx_core.c922 u32 temp; in lx_interrupt_test_ack() local
925 while ((temp = lx_plx_reg_read(chip, ePLX_L2PCIDB))) { in lx_interrupt_test_ack()
927 irqcs |= temp; in lx_interrupt_test_ack()
928 lx_plx_reg_write(chip, ePLX_L2PCIDB, temp); in lx_interrupt_test_ack()
/sound/pci/
Dens1370.c513 unsigned int temp, i, orig, r; in snd_es1371_src_read() local
516 temp = orig = snd_es1371_wait_src_ready(ensoniq); in snd_es1371_src_read()
519 r = temp & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 | in snd_es1371_src_read()
525 temp = snd_es1371_wait_src_ready(ensoniq); in snd_es1371_src_read()
527 if ((temp & 0x00870000) != 0x00010000) { in snd_es1371_src_read()
530 temp = inl(ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_read()
531 if ((temp & 0x00870000) == 0x00010000) in snd_es1371_src_read()
542 return temp; in snd_es1371_src_read()

12