/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 52 if (sp->v.size == 0) { in snd_emu10k1_sample_new() 54 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new() 59 sp->v.end -= sp->v.start; in snd_emu10k1_sample_new() 60 sp->v.loopstart -= sp->v.start; in snd_emu10k1_sample_new() 61 sp->v.loopend -= sp->v.start; in snd_emu10k1_sample_new() 62 sp->v.start = 0; in snd_emu10k1_sample_new() 65 sampleend = sp->v.end; in snd_emu10k1_sample_new() 66 if (sampleend > sp->v.size) in snd_emu10k1_sample_new() 67 sampleend = sp->v.size; in snd_emu10k1_sample_new() 68 loopend = sp->v.loopend; in snd_emu10k1_sample_new() [all …]
|
/sound/isa/sb/ |
D | emu8000_patch.c | 162 if (sp->v.size == 0) in snd_emu8000_sample_new() 166 if (sp->v.loopstart > sp->v.loopend) { in snd_emu8000_sample_new() 167 int tmp = sp->v.loopstart; in snd_emu8000_sample_new() 168 sp->v.loopstart = sp->v.loopend; in snd_emu8000_sample_new() 169 sp->v.loopend = tmp; in snd_emu8000_sample_new() 173 truesize = sp->v.size; in snd_emu8000_sample_new() 174 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) in snd_emu8000_sample_new() 175 truesize += sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new() 176 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) in snd_emu8000_sample_new() 186 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu8000_sample_new() [all …]
|
/sound/soc/qcom/ |
D | lpass-lpaif-reg.h | 19 #define LPAIF_I2SCTL_REG_ADDR(v, addr, port) \ argument 20 (v->i2sctrl_reg_base + (addr) + v->i2sctrl_reg_stride * (port)) 22 #define LPAIF_I2SCTL_REG(v, port) LPAIF_I2SCTL_REG_ADDR(v, 0x0, (port)) argument 62 #define LPAIF_IRQ_REG_ADDR(v, addr, port) \ argument 63 (v->irq_reg_base + (addr) + v->irq_reg_stride * (port)) 67 #define LPAIF_IRQEN_REG(v, port) LPAIF_IRQ_REG_ADDR(v, 0x0, (port)) argument 68 #define LPAIF_IRQSTAT_REG(v, port) LPAIF_IRQ_REG_ADDR(v, 0x4, (port)) argument 69 #define LPAIF_IRQCLEAR_REG(v, port) LPAIF_IRQ_REG_ADDR(v, 0xC, (port)) argument 81 #define LPAIF_RDMA_REG_ADDR(v, addr, chan) \ argument 82 (v->rdma_reg_base + (addr) + v->rdma_reg_stride * (chan)) [all …]
|
D | lpass-platform.c | 89 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_params() local 94 int ret, rdma_port = pcm_data->i2s_port + v->rdmactl_audif_start; in lpass_platform_pcmops_hw_params() 160 LPAIF_RDMACTL_REG(v, pcm_data->rdma_ch), regval); in lpass_platform_pcmops_hw_params() 176 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_free() local 180 LPAIF_RDMACTL_REG(v, pcm_data->rdma_ch), 0); in lpass_platform_pcmops_hw_free() 195 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_prepare() local 199 LPAIF_RDMABASE_REG(v, ch), in lpass_platform_pcmops_prepare() 208 LPAIF_RDMABUFF_REG(v, ch), in lpass_platform_pcmops_prepare() 217 LPAIF_RDMAPER_REG(v, ch), in lpass_platform_pcmops_prepare() 226 LPAIF_RDMACTL_REG(v, ch), in lpass_platform_pcmops_prepare() [all …]
|
D | lpass-cpu.c | 272 struct lpass_variant *v = drvdata->variant; in lpass_cpu_regmap_writeable() local 275 for (i = 0; i < v->i2s_ports; ++i) in lpass_cpu_regmap_writeable() 276 if (reg == LPAIF_I2SCTL_REG(v, i)) in lpass_cpu_regmap_writeable() 279 for (i = 0; i < v->irq_ports; ++i) { in lpass_cpu_regmap_writeable() 280 if (reg == LPAIF_IRQEN_REG(v, i)) in lpass_cpu_regmap_writeable() 282 if (reg == LPAIF_IRQCLEAR_REG(v, i)) in lpass_cpu_regmap_writeable() 286 for (i = 0; i < v->rdma_channels; ++i) { in lpass_cpu_regmap_writeable() 287 if (reg == LPAIF_RDMACTL_REG(v, i)) in lpass_cpu_regmap_writeable() 289 if (reg == LPAIF_RDMABASE_REG(v, i)) in lpass_cpu_regmap_writeable() 291 if (reg == LPAIF_RDMABUFF_REG(v, i)) in lpass_cpu_regmap_writeable() [all …]
|
/sound/soc/mxs/ |
D | mxs-saif.h | 33 #define BF_SAIF_CTRL_BITCLK_MULT_RATE(v) \ argument 34 (((v) << 27) & BM_SAIF_CTRL_BITCLK_MULT_RATE) 43 #define BF_SAIF_CTRL_DMAWAIT_COUNT(v) \ argument 44 (((v) << 16) & BM_SAIF_CTRL_DMAWAIT_COUNT) 47 #define BF_SAIF_CTRL_CHANNEL_NUM_SELECT(v) \ argument 48 (((v) << 14) & BM_SAIF_CTRL_CHANNEL_NUM_SELECT) 57 #define BF_SAIF_CTRL_WORD_LENGTH(v) \ argument 58 (((v) << 4) & BM_SAIF_CTRL_WORD_LENGTH) 68 #define BF_SAIF_STAT_RSRVD2(v) \ argument 69 (((v) << 17) & BM_SAIF_STAT_RSRVD2) [all …]
|
/sound/synth/emux/ |
D | soundfont.c | 370 init_voice_info(&zp->v); in sf_zone_new() 449 zp->v.low == map.map_key && in load_map() 450 zp->v.start == map.src_instr && in load_map() 451 zp->v.end == map.src_bank && in load_map() 452 zp->v.fixkey == map.src_key) { in load_map() 474 zp->v.low = map.map_key; in load_map() 475 zp->v.high = map.map_key; in load_map() 477 zp->v.start = map.src_instr; in load_map() 478 zp->v.end = map.src_bank; in load_map() 479 zp->v.fixkey = map.src_key; in load_map() [all …]
|
/sound/aoa/codecs/ |
D | onyx.c | 70 s32 v; in onyx_read_register() local 76 v = i2c_smbus_read_byte_data(onyx->i2c, reg); in onyx_read_register() 77 if (v < 0) { in onyx_read_register() 81 *value = (u8)v; in onyx_read_register() 217 u8 v, n; in onyx_snd_inputgain_put() local 223 onyx_read_register(onyx, ONYX_REG_ADC_CONTROL, &v); in onyx_snd_inputgain_put() 224 n = v; in onyx_snd_inputgain_put() 231 return n != v; in onyx_snd_inputgain_put() 255 s8 v; in onyx_snd_capture_source_get() local 258 onyx_read_register(onyx, ONYX_REG_ADC_CONTROL, &v); in onyx_snd_capture_source_get() [all …]
|
/sound/pci/au88x0/ |
D | au88x0_a3d.c | 487 static void a3dsrc_ZeroStateA3D(a3dsrc_t *a, vortex_t *v) in a3dsrc_ZeroStateA3D() argument 492 dev_err(v->card->dev, in a3dsrc_ZeroStateA3D() 554 static void vortex_A3dSourceHw_Initialize(vortex_t * v, int source, int slice) in vortex_A3dSourceHw_Initialize() argument 556 a3dsrc_t *a3dsrc = &(v->a3d[source + (slice * 4)]); in vortex_A3dSourceHw_Initialize() 559 a3dsrc->vortex = (void *)v; in vortex_A3dSourceHw_Initialize() 567 static int Vort3DRend_Initialize(vortex_t * v, unsigned short mode) in Vort3DRend_Initialize() argument 569 v->xt_mode = mode; /* this_14 */ in Vort3DRend_Initialize() 571 vortex_XtalkHw_init(v); in Vort3DRend_Initialize() 572 vortex_XtalkHw_SetGainsAllChan(v); in Vort3DRend_Initialize() 573 switch (v->xt_mode) { in Vort3DRend_Initialize() [all …]
|
/sound/soc/fsl/ |
D | fsl_asrc.h | 127 #define ASRCNCR_ANCi(i, v, b) ((v << ASRCNCR_ANCi_SHIFT(i, b)) & ASRCNCR_ANCi_MASK(i, b)) argument 139 #define ASRCFG_POSTMOD(i, v) ((v) << ASRCFG_POSTMODi_SHIFT(i)) argument 146 #define ASRCFG_PREMOD(i, v) ((v) << ASRCFG_PREMODi_SHIFT(i)) argument 157 #define ASRCSR_AOCS(i, v) ((v) << ASRCSR_AOCSi_SHIFT(i)) argument 160 #define ASRCSR_AICS(i, v) ((v) << ASRCSR_AICSi_SHIFT(i)) argument 166 #define ASRCDRi_AICP(i, v) ((v) << ASRCDRi_AICPi_SHIFT(i)) argument 169 #define ASRCDRi_AICD(i, v) ((v) << ASRCDRi_AICDi_SHIFT(i)) argument 172 #define ASRCDRi_AOCP(i, v) ((v) << ASRCDRi_AOCPi_SHIFT(i)) argument 175 #define ASRCDRi_AOCD(i, v) ((v) << ASRCDRi_AOCDi_SHIFT(i)) argument 235 #define ASRMCRi_OUTFIFO_THRESHOLD(v) (((v) << ASRMCRi_OUTFIFO_THRESHOLD_SHIFT) & ASRMCRi_OUTFIFO_TH… argument [all …]
|
D | fsl_esai.h | 123 #define ESAI_xFCR_xWA(v) (((8 - ((v) >> 2)) << ESAI_xFCR_xWA_SHIFT) & ESAI_xFCR_xWA_MASK) argument 127 #define ESAI_xFCR_xFWM(v) ((((v) - 1) << ESAI_xFCR_xFWM_SHIFT) & ESAI_xFCR_xFWM_MASK) argument 303 #define ESAI_xCCR_xFP(v) ((((v) - 1) << ESAI_xCCR_xFP_SHIFT) & ESAI_xCCR_xFP_MASK) argument 307 #define ESAI_xCCR_xDC(v) ((((v) - 1) << ESAI_xCCR_xDC_SHIFT) & ESAI_xCCR_xDC_MASK) argument 315 #define ESAI_xCCR_xPM(v) ((((v) - 1) << ESAI_xCCR_xPM_SHIFT) & ESAI_xCCR_xPM_MASK) argument 321 #define ESAI_xSMA_xS(v) ((v) & ESAI_xSMA_xS_MASK) argument 325 #define ESAI_xSMB_xS(v) (((v) >> ESAI_xSMA_xS_WIDTH) & ESAI_xSMB_xS_MASK) argument 331 #define ESAI_PRRC_PDC(v) ((v) & ESAI_PRRC_PDC_MASK) argument 337 #define ESAI_PCRC_PC(v) ((v) & ESAI_PCRC_PC_MASK) argument
|
/sound/pci/hda/ |
D | hda_tegra.c | 132 u32 v; in hda_tegra_writew() local 134 v = readl(dword_addr); in hda_tegra_writew() 135 v &= ~(0xffff << shift); in hda_tegra_writew() 136 v |= value << shift; in hda_tegra_writew() 137 writel(v, dword_addr); in hda_tegra_writew() 144 u32 v; in hda_tegra_readw() local 146 v = readl(dword_addr); in hda_tegra_readw() 147 return (v >> shift) & 0xffff; in hda_tegra_readw() 154 u32 v; in hda_tegra_writeb() local 156 v = readl(dword_addr); in hda_tegra_writeb() [all …]
|
D | patch_realtek.c | 1106 .v.verbs = alc_gpio1_init_verbs, 1110 .v.verbs = alc_gpio2_init_verbs, 1114 .v.verbs = (const struct hda_verb[]) { 1124 .v.pins = (const struct hda_pintbl[]) { 1134 .v.pins = (const struct hda_pintbl[]) { 1142 .v.pins = (const struct hda_pintbl[]) { 1152 .v.verbs = (const struct hda_verb[]) { 1161 .v.verbs = (const struct hda_verb[]) { 1172 .v.func = alc880_fixup_vol_knob, 1177 .v.pins = (const struct hda_pintbl[]) { [all …]
|
D | patch_sigmatel.c | 1384 .v.pins = ref9200_pin_configs, 1388 .v.pins = oqo9200_pin_configs, 1394 .v.pins = dell9200_d21_pin_configs, 1398 .v.pins = dell9200_d22_pin_configs, 1402 .v.pins = dell9200_d23_pin_configs, 1406 .v.pins = dell9200_m21_pin_configs, 1410 .v.pins = dell9200_m22_pin_configs, 1414 .v.pins = dell9200_m23_pin_configs, 1418 .v.pins = dell9200_m24_pin_configs, 1422 .v.pins = dell9200_m25_pin_configs, [all …]
|
D | patch_conexant.c | 683 .v.pins = cxt_pincfg_lenovo_x200, 687 .v.pins = cxt_pincfg_lenovo_tp410, 695 .v.pins = cxt_pincfg_lemote, 699 .v.pins = cxt_pincfg_lemote, 703 .v.pins = (const struct hda_pintbl[]) { 712 .v.func = cxt_fixup_stereo_dmic, 716 .v.func = cxt5066_increase_mic_boost, 722 .v.pins = (const struct hda_pintbl[]) { 729 .v.func = cxt_fixup_headphone_mic, 733 .v.verbs = (const struct hda_verb[]) { [all …]
|
/sound/soc/bcm/ |
D | bcm2835-i2s.c | 56 #define BCM2835_CLK_MASH(v) ((v) << 9) argument 61 #define BCM2835_CLK_SRC(v) (v) argument 64 #define BCM2835_CLK_DIVI(v) ((v) << BCM2835_CLK_SHIFT) argument 65 #define BCM2835_CLK_DIVF(v) (v) argument 124 #define BCM2835_I2S_RXTHR(v) ((v) << 7) argument 125 #define BCM2835_I2S_TXTHR(v) ((v) << 5) argument 141 #define BCM2835_I2S_FLEN(v) ((v) << 10) argument 142 #define BCM2835_I2S_FSLEN(v) (v) argument 146 #define BCM2835_I2S_CHPOS(v) ((v) << 4) argument 147 #define BCM2835_I2S_CHWID(v) (v) argument [all …]
|
/sound/soc/davinci/ |
D | davinci-i2s.c | 60 #define DAVINCI_MCBSP_SPCR_RINTM(v) ((v) << 4) argument 62 #define DAVINCI_MCBSP_SPCR_XINTM(v) ((v) << 20) argument 67 #define DAVINCI_MCBSP_RCR_RWDLEN1(v) ((v) << 5) argument 68 #define DAVINCI_MCBSP_RCR_RFRLEN1(v) ((v) << 8) argument 69 #define DAVINCI_MCBSP_RCR_RDATDLY(v) ((v) << 16) argument 71 #define DAVINCI_MCBSP_RCR_RWDLEN2(v) ((v) << 21) argument 72 #define DAVINCI_MCBSP_RCR_RFRLEN2(v) ((v) << 24) argument 75 #define DAVINCI_MCBSP_XCR_XWDLEN1(v) ((v) << 5) argument 76 #define DAVINCI_MCBSP_XCR_XFRLEN1(v) ((v) << 8) argument 77 #define DAVINCI_MCBSP_XCR_XDATDLY(v) ((v) << 16) argument [all …]
|
/sound/pci/asihpi/ |
D | hpi_version.h | 26 #define HPI_VER_MAJOR(v) ((int)(v >> 16)) argument 28 #define HPI_VER_MINOR(v) ((int)((v >> 8) & 0xFF)) argument 30 #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) argument
|
/sound/aoa/core/ |
D | gpio-feature.c | 127 #define SWITCH_GPIO(name, v, on) \ argument 128 (((v)&~1) | ((on)? \ 135 int v; \ 142 v = pmac_call_feature(PMAC_FTR_READ_GPIO, NULL, \ 147 v = SWITCH_GPIO(name##_mute, v, !on); \ 150 name##_mute_gpio, v); \ 168 int v; in ftr_gpio_set_hw_reset() local 174 v = pmac_call_feature(PMAC_FTR_READ_GPIO, NULL, in ftr_gpio_set_hw_reset() 176 v = SWITCH_GPIO(hw_reset, v, on); in ftr_gpio_set_hw_reset() 178 hw_reset_gpio, v); in ftr_gpio_set_hw_reset() [all …]
|
/sound/oss/ |
D | pas2_mixer.c | 212 int level,v ; in pas_mixer_ioctl() local 268 if (get_user(v, p)) in pas_mixer_ioctl() 271 v = pas_mixer_set(cmd & 0xff, v); in pas_mixer_ioctl() 275 v = rec_devices; in pas_mixer_ioctl() 279 v = SUPPORTED_MIXER_DEVICES & ~(SOUND_MASK_BASS | SOUND_MASK_TREBLE); in pas_mixer_ioctl() 283 v = SUPPORTED_MIXER_DEVICES; in pas_mixer_ioctl() 287 v = POSSIBLE_RECORDING_DEVICES & SUPPORTED_MIXER_DEVICES; in pas_mixer_ioctl() 291 v = 0; /* No special capabilities */ in pas_mixer_ioctl() 295 v = levels[cmd & 0xff]; in pas_mixer_ioctl() 299 return put_user(v, p); in pas_mixer_ioctl()
|
/sound/sparc/ |
D | dbri.c | 214 #define CS4215_LO(v) v /* Left Output Attenuation 0x3f: -94.5 dB */ argument 219 #define CS4215_RO(v) v /* Right Output Attenuation 0x3f: -94.5 dB */ argument 224 #define CS4215_LG(v) v /* Left Gain Setting 0xf: 22.5 dB */ argument 231 #define CS4215_RG(v) v /* Right Gain Setting 0xf: 22.5 dB */ argument 232 #define CS4215_MA(v) (v<<4) /* Monitor Path Attenuation 0xf: mute */ argument 379 #define D_PIPE(v) ((v)<<0) /* Pipe No.: 0-15 long, 16-21 short */ argument 395 #define D_SDP_MODE(v) ((v)&(7<<13)) argument 410 #define D_DTS_PRVIN(v) ((v)<<10) /* Previous In Pipe */ argument 411 #define D_DTS_PRVOUT(v) ((v)<<5) /* Previous Out Pipe */ argument 414 #define D_TS_LEN(v) ((v)<<24) /* Number of bits in this time slot */ argument [all …]
|
/sound/pci/cs5535audio/ |
D | cs5535audio_olpc.c | 75 static int olpc_dc_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_get() argument 77 v->value.integer.value[0] = gpio_get_value(OLPC_GPIO_MIC_AC); in olpc_dc_get() 81 static int olpc_dc_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_put() argument 85 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]); in olpc_dc_put() 99 static int olpc_mic_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_get() argument 106 v->value.integer.value[0] = i ? 0 : 1; in olpc_mic_get() 110 static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_put() argument 114 olpc_mic_bias(cs5535au->ac97, v->value.integer.value[0]); in olpc_mic_put()
|
/sound/soc/cirrus/ |
D | ep93xx-ac97.c | 256 unsigned v = 0; in ep93xx_ac97_trigger() local 267 v |= AC97TXCR_CM; in ep93xx_ac97_trigger() 268 v |= AC97TXCR_TX3 | AC97TXCR_TX4; in ep93xx_ac97_trigger() 269 v |= AC97TXCR_TEN; in ep93xx_ac97_trigger() 270 ep93xx_ac97_write_reg(info, AC97TXCR(1), v); in ep93xx_ac97_trigger() 276 v |= AC97RXCR_CM; in ep93xx_ac97_trigger() 277 v |= AC97RXCR_RX3 | AC97RXCR_RX4; in ep93xx_ac97_trigger() 278 v |= AC97RXCR_REN; in ep93xx_ac97_trigger() 279 ep93xx_ac97_write_reg(info, AC97RXCR(1), v); in ep93xx_ac97_trigger() 298 v = ep93xx_ac97_read_reg(info, AC97SR(1)); in ep93xx_ac97_trigger() [all …]
|
/sound/core/ |
D | pcm.c | 175 #define FORMAT(v) [SNDRV_PCM_FORMAT_##v] = #v argument 241 #define STATE(v) [SNDRV_PCM_STATE_##v] = #v argument 242 #define STREAM(v) [SNDRV_PCM_STREAM_##v] = #v argument 243 #define READY(v) [SNDRV_PCM_READY_##v] = #v argument 244 #define XRUN(v) [SNDRV_PCM_XRUN_##v] = #v argument 245 #define SILENCE(v) [SNDRV_PCM_SILENCE_##v] = #v argument 246 #define TSTAMP(v) [SNDRV_PCM_TSTAMP_##v] = #v argument 247 #define ACCESS(v) [SNDRV_PCM_ACCESS_##v] = #v argument 248 #define START(v) [SNDRV_PCM_START_##v] = #v argument 249 #define SUBFORMAT(v) [SNDRV_PCM_SUBFORMAT_##v] = #v argument
|
/sound/soc/codecs/ |
D | cs42xx8.h | 96 #define CS42XX8_FUNCMOD_DAC_FM(v) ((v) << CS42XX8_FUNCMOD_DAC_FM_SHIFT) argument 100 #define CS42XX8_FUNCMOD_ADC_FM(v) ((v) << CS42XX8_FUNCMOD_ADC_FM_SHIFT) argument 102 #define CS42XX8_FUNCMOD_xC_FM(x, v) ((x) ? CS42XX8_FUNCMOD_DAC_FM(v) : CS42XX8_FUNCMOD_ADC_FM(v)) argument
|