/sound/pci/ac97/ |
D | ac97_proc.c | 110 unsigned short val, tmp, ext, mext; in snd_ac97_proc_read_main() local 130 val = snd_ac97_read(ac97, AC97_INT_PAGING); in snd_ac97_proc_read_main() 141 AC97_PAGE_MASK, val & AC97_PAGE_MASK); in snd_ac97_proc_read_main() 145 val = ac97->caps; in snd_ac97_proc_read_main() 147 val & AC97_BC_DEDICATED_MIC ? " -dedicated MIC PCM IN channel-" : "", in snd_ac97_proc_read_main() 148 val & AC97_BC_RESERVED1 ? " -reserved1-" : "", in snd_ac97_proc_read_main() 149 val & AC97_BC_BASS_TREBLE ? " -bass & treble-" : "", in snd_ac97_proc_read_main() 150 val & AC97_BC_SIM_STEREO ? " -simulated stereo-" : "", in snd_ac97_proc_read_main() 151 val & AC97_BC_HEADPHONE ? " -headphone out-" : "", in snd_ac97_proc_read_main() 152 val & AC97_BC_LOUDNESS ? " -loudness-" : ""); in snd_ac97_proc_read_main() [all …]
|
/sound/synth/emux/ |
D | emux_nrpn.c | 33 int (*convert)(int val); 55 int type, int val, int mode) in send_converted_effect() argument 60 cval = table[i].convert(val); in send_converted_effect() 100 static int fx_delay(int val); 101 static int fx_attack(int val); 102 static int fx_hold(int val); 103 static int fx_decay(int val); 104 static int fx_the_value(int val); 105 static int fx_twice_value(int val); 106 static int fx_conv_pitch(int val); [all …]
|
/sound/soc/davinci/ |
D | davinci-mcasp.h | 143 #define TXROT(val) (val) argument 145 #define TXSSZ(val) (val<<4) argument 146 #define TXPBIT(val) (val<<8) argument 147 #define TXPAD(val) (val<<13) argument 149 #define FSXDLY(val) (val<<16) argument 154 #define RXROT(val) (val) argument 156 #define RXSSZ(val) (val<<4) argument 157 #define RXPBIT(val) (val<<8) argument 158 #define RXPAD(val) (val<<13) argument 160 #define FSRDLY(val) (val<<16) argument [all …]
|
/sound/soc/nuc900/ |
D | nuc900-ac97.c | 48 unsigned long timeout = 0x10000, val; in nuc900_ac97_read() local 52 val = nuc900_checkready(); in nuc900_ac97_read() 53 if (val) { in nuc900_ac97_read() 62 val = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0); in nuc900_ac97_read() 63 val |= (VALID_FRAME | SLOT1_VALID); in nuc900_ac97_read() 64 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, val); in nuc900_ac97_read() 75 val = -EPERM; in nuc900_ac97_read() 79 val = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0) ; in nuc900_ac97_read() 80 val &= ~SLOT1_VALID; in nuc900_ac97_read() 81 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, val); in nuc900_ac97_read() [all …]
|
D | nuc900-pcm.c | 70 unsigned long val; in nuc900_dma_start() local 72 val = AUDIO_READ(nuc900_audio->mmio + ACTL_CON); in nuc900_dma_start() 73 val |= (T_DMA_IRQ | R_DMA_IRQ); in nuc900_dma_start() 74 AUDIO_WRITE(nuc900_audio->mmio + ACTL_CON, val); in nuc900_dma_start() 81 unsigned long val; in nuc900_dma_stop() local 83 val = AUDIO_READ(nuc900_audio->mmio + ACTL_CON); in nuc900_dma_stop() 84 val &= ~(T_DMA_IRQ | R_DMA_IRQ); in nuc900_dma_stop() 85 AUDIO_WRITE(nuc900_audio->mmio + ACTL_CON, val); in nuc900_dma_stop() 92 unsigned long val; in nuc900_dma_interrupt() local 96 val = AUDIO_READ(nuc900_audio->mmio + ACTL_CON); in nuc900_dma_interrupt() [all …]
|
/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_core.c | 63 static void pdacf_ak4117_write(void *private_data, unsigned char reg, unsigned char val) in pdacf_ak4117_write() argument 79 outw((u16)reg << 8 | val | (1<<13), chip->port + PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_write() 106 u16 val; in pdacf_reset() local 108 val = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_reset() 109 val |= PDAUDIOCF_PDN; in pdacf_reset() 110 val &= ~PDAUDIOCF_RECORD; /* for sure */ in pdacf_reset() 111 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val); in pdacf_reset() 113 val |= PDAUDIOCF_RST; in pdacf_reset() 114 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val); in pdacf_reset() 116 val &= ~PDAUDIOCF_RST; in pdacf_reset() [all …]
|
/sound/soc/ |
D | soc-ops.c | 69 unsigned int val, item; in snd_soc_get_enum_double() local 76 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_get_enum_double() 77 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double() 80 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_get_enum_double() 81 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double() 104 unsigned int val; in snd_soc_put_enum_double() local 109 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_put_enum_double() 114 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_r; in snd_soc_put_enum_double() 118 return snd_soc_component_update_bits(component, e->reg, mask, val); in snd_soc_put_enum_double() 142 unsigned int val; in snd_soc_read_signed() local [all …]
|
D | soc-io.c | 29 unsigned int reg, unsigned int *val) in snd_soc_component_read() argument 34 ret = regmap_read(component->regmap, reg, val); in snd_soc_component_read() 36 ret = component->read(component, reg, val); in snd_soc_component_read() 53 unsigned int reg, unsigned int val) in snd_soc_component_write() argument 56 return regmap_write(component->regmap, reg, val); in snd_soc_component_write() 58 return component->write(component, reg, val); in snd_soc_component_write() 66 unsigned int mask, unsigned int val, bool *change) in snd_soc_component_update_bits_legacy() argument 80 new = (old & ~mask) | (val & mask); in snd_soc_component_update_bits_legacy() 102 unsigned int reg, unsigned int mask, unsigned int val) in snd_soc_component_update_bits() argument 109 val, &change); in snd_soc_component_update_bits() [all …]
|
/sound/hda/ |
D | hdac_regmap.c | 156 unsigned int reg, unsigned int *val) in hda_reg_read_stereo_amp() argument 168 *val = left | (right << 8); in hda_reg_read_stereo_amp() 174 unsigned int reg, unsigned int val) in hda_reg_write_stereo_amp() argument 186 left = val & 0xff; in hda_reg_write_stereo_amp() 187 right = (val >> 8) & 0xff; in hda_reg_write_stereo_amp() 204 unsigned int *val) in hda_reg_read_coef() argument 217 return snd_hdac_exec_verb(codec, verb, 0, val); in hda_reg_read_coef() 222 unsigned int val) in hda_reg_write_coef() argument 235 (val & 0xffff); in hda_reg_write_coef() 239 static int hda_reg_read(void *context, unsigned int reg, unsigned int *val) in hda_reg_read() argument [all …]
|
D | hdac_device.c | 216 u32 val, addr; in snd_hdac_make_cmd() local 226 val = addr << 28; in snd_hdac_make_cmd() 227 val |= (u32)nid << 20; in snd_hdac_make_cmd() 228 val |= verb << 8; in snd_hdac_make_cmd() 229 val |= parm; in snd_hdac_make_cmd() 230 return val; in snd_hdac_make_cmd() 302 unsigned int cmd, val; in snd_hdac_read_parm_uncached() local 305 if (snd_hdac_regmap_read_raw_uncached(codec, cmd, &val) < 0) in snd_hdac_read_parm_uncached() 307 return val; in snd_hdac_read_parm_uncached() 319 unsigned int parm, unsigned int val) in snd_hdac_override_parm() argument [all …]
|
/sound/soc/zte/ |
D | zx296702-i2s.c | 106 unsigned long val; in zx_i2s_tx_en() local 108 val = readl_relaxed(base + ZX_I2S_PROCESS_CTRL); in zx_i2s_tx_en() 110 val |= ZX_I2S_PROCESS_TX_EN | ZX_I2S_PROCESS_I2S_EN; in zx_i2s_tx_en() 112 val &= ~(ZX_I2S_PROCESS_TX_EN | ZX_I2S_PROCESS_I2S_EN); in zx_i2s_tx_en() 113 writel_relaxed(val, base + ZX_I2S_PROCESS_CTRL); in zx_i2s_tx_en() 118 unsigned long val; in zx_i2s_rx_en() local 120 val = readl_relaxed(base + ZX_I2S_PROCESS_CTRL); in zx_i2s_rx_en() 122 val |= ZX_I2S_PROCESS_RX_EN | ZX_I2S_PROCESS_I2S_EN; in zx_i2s_rx_en() 124 val &= ~(ZX_I2S_PROCESS_RX_EN | ZX_I2S_PROCESS_I2S_EN); in zx_i2s_rx_en() 125 writel_relaxed(val, base + ZX_I2S_PROCESS_CTRL); in zx_i2s_rx_en() [all …]
|
D | zx296702-spdif.c | 143 u32 val, ch_num, rate; in zx_spdif_hw_params() local 149 val = readl_relaxed(zx_spdif->reg_base + ZX_CTRL); in zx_spdif_hw_params() 150 val &= ~ZX_CTRL_MODA_MASK; in zx_spdif_hw_params() 153 val |= ZX_CTRL_MODA_16; in zx_spdif_hw_params() 157 val |= ZX_CTRL_MODA_18; in zx_spdif_hw_params() 161 val |= ZX_CTRL_MODA_20; in zx_spdif_hw_params() 165 val |= ZX_CTRL_MODA_24; in zx_spdif_hw_params() 174 val |= ZX_CTRL_DOUBLE_TRACK; in zx_spdif_hw_params() 176 val |= ZX_CTRL_LEFT_TRACK; in zx_spdif_hw_params() 177 writel_relaxed(val, zx_spdif->reg_base + ZX_CTRL); in zx_spdif_hw_params() [all …]
|
/sound/pci/lola/ |
D | lola_proc.c | 32 unsigned int val; in print_audio_widget() local 34 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_audio_widget() 35 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget() 36 lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); in print_audio_widget() 37 snd_iprintf(buffer, " Formats: 0x%x\n", val); in print_audio_widget() 44 unsigned int val; in print_pin_widget() local 46 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_pin_widget() 47 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget() 48 if (val == 0x00400200) in print_pin_widget() 50 lola_read_param(chip, nid, ampcap, &val); in print_pin_widget() [all …]
|
D | lola_clock.c | 69 unsigned int val, in check_gran_clock_compatibility() argument 75 if (val < LOLA_GRANULARITY_MIN || val > LOLA_GRANULARITY_MAX || in check_gran_clock_compatibility() 76 (val % LOLA_GRANULARITY_STEP) != 0) in check_gran_clock_compatibility() 79 if (val == LOLA_GRANULARITY_MIN) { in check_gran_clock_compatibility() 82 } else if (val < LOLA_GRANULARITY_MAX) { in check_gran_clock_compatibility() 89 int lola_set_granularity(struct lola *chip, unsigned int val, bool force) in lola_set_granularity() argument 94 if (val == chip->granularity) in lola_set_granularity() 101 if (!check_gran_clock_compatibility(chip, val, in lola_set_granularity() 106 chip->granularity = val; in lola_set_granularity() 107 val /= LOLA_GRANULARITY_STEP; in lola_set_granularity() [all …]
|
D | lola_mixer.c | 34 unsigned int val; in lola_init_pin() local 38 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in lola_init_pin() 43 val &= 0x00f00fff; /* test TYPE and bits 0..11 */ in lola_init_pin() 44 if (val == 0x00400200) /* Type = 4, Digital = 1 */ in lola_init_pin() 46 else if (val == 0x0040000a && dir == CAPT) /* Dig=0, InAmp/ovrd */ in lola_init_pin() 48 else if (val == 0x0040000c && dir == PLAY) /* Dig=0, OutAmp/ovrd */ in lola_init_pin() 51 dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); in lola_init_pin() 61 err = lola_read_param(chip, nid, LOLA_PAR_AMP_OUT_CAP, &val); in lola_init_pin() 63 err = lola_read_param(chip, nid, LOLA_PAR_AMP_IN_CAP, &val); in lola_init_pin() 69 pin->amp_mute = LOLA_AMP_MUTE_CAPABLE(val); in lola_init_pin() [all …]
|
/sound/soc/sh/rcar/ |
D | ctu.c | 133 u32 val = ctu->pass.val[i]; in rsnd_ctu_value_init() local 135 cpmdr |= val << (28 - (i * 4)); in rsnd_ctu_value_init() 137 if ((val > 0x8) && (scmdr < (val - 0x8))) in rsnd_ctu_value_init() 138 scmdr = val - 0x8; in rsnd_ctu_value_init() 150 rsnd_mod_write(mod, CTU_SV00R, ctu->sv0.val[0]); in rsnd_ctu_value_init() 151 rsnd_mod_write(mod, CTU_SV01R, ctu->sv0.val[1]); in rsnd_ctu_value_init() 152 rsnd_mod_write(mod, CTU_SV02R, ctu->sv0.val[2]); in rsnd_ctu_value_init() 153 rsnd_mod_write(mod, CTU_SV03R, ctu->sv0.val[3]); in rsnd_ctu_value_init() 154 rsnd_mod_write(mod, CTU_SV04R, ctu->sv0.val[4]); in rsnd_ctu_value_init() 155 rsnd_mod_write(mod, CTU_SV05R, ctu->sv0.val[5]); in rsnd_ctu_value_init() [all …]
|
/sound/soc/rockchip/ |
D | rockchip_i2s.c | 94 unsigned int val = 0; in rockchip_snd_txctrl() local 123 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_txctrl() 126 while (val) { in rockchip_snd_txctrl() 127 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_txctrl() 140 unsigned int val = 0; in rockchip_snd_rxctrl() local 169 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_rxctrl() 172 while (val) { in rockchip_snd_rxctrl() 173 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_rxctrl() 188 unsigned int mask = 0, val = 0; in rockchip_i2s_set_fmt() local 194 val = I2S_CKR_MSS_MASTER; in rockchip_i2s_set_fmt() [all …]
|
/sound/oss/ |
D | sound_timer.c | 184 int val; in timer_ioctl() local 189 val = TMR_INTERNAL; in timer_ioctl() 206 if (get_user(val, p)) in timer_ioctl() 208 if (val) in timer_ioctl() 210 if (val < 1) in timer_ioctl() 211 val = 1; in timer_ioctl() 212 if (val > 1000) in timer_ioctl() 213 val = 1000; in timer_ioctl() 214 curr_timebase = val; in timer_ioctl() 216 val = curr_timebase; in timer_ioctl() [all …]
|
D | sys_timer.c | 188 int val; in def_tmr_ioctl() local 208 if (__get_user(val, p)) in def_tmr_ioctl() 210 if (val) { in def_tmr_ioctl() 211 if (val < 1) in def_tmr_ioctl() 212 val = 1; in def_tmr_ioctl() 213 if (val > 1000) in def_tmr_ioctl() 214 val = 1000; in def_tmr_ioctl() 215 curr_timebase = val; in def_tmr_ioctl() 220 if (__get_user(val, p)) in def_tmr_ioctl() 222 if (val) { in def_tmr_ioctl() [all …]
|
/sound/pci/ice1712/ |
D | pontis.c | 91 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() argument 94 cval = (reg << 9) | val; in wm_put_nocache() 98 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() argument 100 wm_put_nocache(ice, reg, val); in wm_put() 102 ice->akm[0].images[reg] = val >> 8; in wm_put() 103 ice->akm[0].images[reg + 1] = val; in wm_put() 126 unsigned short val; in wm_dac_vol_get() local 131 val = wm_get(ice, WM_DAC_ATTEN_L + i) & 0xff; in wm_dac_vol_get() 132 val = val > DAC_MIN ? (val - DAC_MIN) : 0; in wm_dac_vol_get() 133 ucontrol->value.integer.value[i] = val; in wm_dac_vol_get() [all …]
|
D | maya44.c | 91 unsigned char reg, unsigned short val) in wm8776_write() argument 98 (reg << 1) | ((val >> 8) & 1), in wm8776_write() 99 val & 0xff); in wm8776_write() 100 wm->regs[reg] = val; in wm8776_write() 108 unsigned short mask, unsigned short val) in wm8776_write_bits() argument 110 val |= wm->regs[reg] & ~mask; in wm8776_write_bits() 111 if (val != wm->regs[reg]) { in wm8776_write_bits() 112 wm8776_write(ice, wm, reg, val); in wm8776_write_bits() 207 unsigned int val, data; in maya_vol_put() local 212 val = ucontrol->value.integer.value[ch]; in maya_vol_put() [all …]
|
/sound/soc/codecs/ |
D | ak4104.c | 70 int val = 0; in ak4104_set_dai_fmt() local 78 val |= AK4104_CONTROL1_DIF0; in ak4104_set_dai_fmt() 81 val |= AK4104_CONTROL1_DIF0 | AK4104_CONTROL1_DIF1; in ak4104_set_dai_fmt() 94 val); in ak4104_set_dai_fmt() 107 int ret, val = 0; in ak4104_hw_params() local 110 val |= IEC958_AES0_CON_NOT_COPYRIGHT; in ak4104_hw_params() 111 regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(0), val); in ak4104_hw_params() 113 val = 0; in ak4104_hw_params() 117 val |= IEC958_AES3_CON_FS_22050; in ak4104_hw_params() 120 val |= IEC958_AES3_CON_FS_24000; in ak4104_hw_params() [all …]
|
D | cs35l32.c | 208 unsigned int val; in cs35l32_codec_set_sysclk() local 212 val = CS35L32_MCLK_RATIO; in cs35l32_codec_set_sysclk() 215 val = CS35L32_MCLK_DIV2_MASK | CS35L32_MCLK_RATIO; in cs35l32_codec_set_sysclk() 218 val = 0; in cs35l32_codec_set_sysclk() 221 val = CS35L32_MCLK_DIV2_MASK; in cs35l32_codec_set_sysclk() 228 CS35L32_MCLK_DIV2_MASK | CS35L32_MCLK_RATIO_MASK, val); in cs35l32_codec_set_sysclk() 273 unsigned int val; in cs35l32_handle_of_data() local 275 if (of_property_read_u32(np, "cirrus,sdout-share", &val) >= 0) in cs35l32_handle_of_data() 276 pdata->sdout_share = val; in cs35l32_handle_of_data() 278 if (of_property_read_u32(np, "cirrus,boost-manager", &val)) in cs35l32_handle_of_data() [all …]
|
/sound/drivers/vx/ |
D | vx_uer.c | 63 int val; in vx_read_one_cbit() local 69 val = (vx_inb(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit() 73 val = (vx_inl(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit() 76 return val; in vx_read_one_cbit() 84 static void vx_write_one_cbit(struct vx_core *chip, int index, int val) in vx_write_one_cbit() argument 86 val = !!val; /* 0 or 1 */ in vx_write_one_cbit() 90 vx_outb(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK)); in vx_write_one_cbit() 93 vx_outl(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK)); in vx_write_one_cbit() 107 int val, freq; in vx_read_uer_status() local 114 val = vx_inb(chip, CSUER); in vx_read_uer_status() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 76 int dev, val; in snd_seq_oss_ioctl() local 141 val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl() 142 return put_user(val, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 163 if (get_user(val, p)) in snd_seq_oss_ioctl() 165 if (val < 1) in snd_seq_oss_ioctl() 166 val = 1; in snd_seq_oss_ioctl() 167 if (val >= dp->writeq->maxlen) in snd_seq_oss_ioctl() 168 val = dp->writeq->maxlen - 1; in snd_seq_oss_ioctl() 169 snd_seq_oss_writeq_set_output(dp->writeq, val); in snd_seq_oss_ioctl() 175 if (get_user(val, p)) in snd_seq_oss_ioctl() [all …]
|