/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 84 #define LPAIF_IRQ_REG_ADDR(v, addr, port) \ argument 85 (v->irq_reg_base + (addr) + v->irq_reg_stride * (port)) 89 #define LPAIF_IRQEN_REG(v, port) LPAIF_IRQ_REG_ADDR(v, 0x0, (port)) argument 90 #define LPAIF_IRQSTAT_REG(v, port) LPAIF_IRQ_REG_ADDR(v, 0x4, (port)) argument 91 #define LPAIF_IRQCLEAR_REG(v, port) LPAIF_IRQ_REG_ADDR(v, 0xC, (port)) argument 103 #define LPAIF_RDMA_REG_ADDR(v, addr, chan) \ argument 104 (v->rdma_reg_base + (addr) + v->rdma_reg_stride * (chan)) [all …]
|
D | lpass-cpu.c | 308 struct lpass_variant *v = drvdata->variant; in lpass_cpu_regmap_writeable() local 311 for (i = 0; i < v->i2s_ports; ++i) in lpass_cpu_regmap_writeable() 312 if (reg == LPAIF_I2SCTL_REG(v, i)) in lpass_cpu_regmap_writeable() 315 for (i = 0; i < v->irq_ports; ++i) { in lpass_cpu_regmap_writeable() 316 if (reg == LPAIF_IRQEN_REG(v, i)) in lpass_cpu_regmap_writeable() 318 if (reg == LPAIF_IRQCLEAR_REG(v, i)) in lpass_cpu_regmap_writeable() 322 for (i = 0; i < v->rdma_channels; ++i) { in lpass_cpu_regmap_writeable() 323 if (reg == LPAIF_RDMACTL_REG(v, i)) in lpass_cpu_regmap_writeable() 325 if (reg == LPAIF_RDMABASE_REG(v, i)) in lpass_cpu_regmap_writeable() 327 if (reg == LPAIF_RDMABUFF_REG(v, i)) in lpass_cpu_regmap_writeable() [all …]
|
D | lpass-platform.c | 66 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_open() local 78 if (v->alloc_dma_channel) in lpass_platform_pcmops_open() 79 dma_ch = v->alloc_dma_channel(drvdata, dir); in lpass_platform_pcmops_open() 89 LPAIF_DMACTL_REG(v, dma_ch, dir), 0); in lpass_platform_pcmops_open() 121 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_close() local 125 v = drvdata->variant; in lpass_platform_pcmops_close() 127 if (v->free_dma_channel) in lpass_platform_pcmops_close() 128 v->free_dma_channel(drvdata, data->dma_ch); in lpass_platform_pcmops_close() 141 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_params() local 147 int ret, dma_port = pcm_data->i2s_port + v->dmactl_audif_start; in lpass_platform_pcmops_hw_params() [all …]
|
D | lpass-apq8016.c | 139 struct lpass_variant *v = drvdata->variant; in apq8016_lpass_alloc_dma_channel() local 144 v->rdma_channels); in apq8016_lpass_alloc_dma_channel() 146 if (chan >= v->rdma_channels) in apq8016_lpass_alloc_dma_channel() 150 v->wrdma_channel_start + in apq8016_lpass_alloc_dma_channel() 151 v->wrdma_channels, in apq8016_lpass_alloc_dma_channel() 152 v->wrdma_channel_start); in apq8016_lpass_alloc_dma_channel() 154 if (chan >= v->wrdma_channel_start + v->wrdma_channels) in apq8016_lpass_alloc_dma_channel()
|
/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 | 164 if (sp->v.size == 0) in snd_emu8000_sample_new() 168 if (sp->v.loopstart > sp->v.loopend) { in snd_emu8000_sample_new() 169 int tmp = sp->v.loopstart; in snd_emu8000_sample_new() 170 sp->v.loopstart = sp->v.loopend; in snd_emu8000_sample_new() 171 sp->v.loopend = tmp; in snd_emu8000_sample_new() 175 truesize = sp->v.size; in snd_emu8000_sample_new() 176 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) in snd_emu8000_sample_new() 177 truesize += sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new() 178 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) in snd_emu8000_sample_new() 188 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu8000_sample_new() [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/soc/sunxi/ |
D | sun4i-spdif.c | 38 #define SUN4I_SPDIF_CTL_MCLKDIV(v) ((v) << 4) /* v even */ argument 47 #define SUN4I_SPDIF_TXCFG_TXRATIO(v) ((v) << 4) argument 70 #define SUN4I_SPDIF_FCTL_TXTL(v) ((v) << 8) argument 72 #define SUN4I_SPDIF_FCTL_RXTL(v) ((v) << 3) argument 75 #define SUN4I_SPDIF_FCTL_RXOM(v) ((v) << 0) argument 113 #define SUN4I_SPDIF_TXCHSTA0_CLK(v) ((v) << 28) argument 114 #define SUN4I_SPDIF_TXCHSTA0_SAMFREQ(v) ((v) << 24) argument 116 #define SUN4I_SPDIF_TXCHSTA0_CHNUM(v) ((v) << 20) argument 118 #define SUN4I_SPDIF_TXCHSTA0_SRCNUM(v) ((v) << 16) argument 119 #define SUN4I_SPDIF_TXCHSTA0_CATACOD(v) ((v) << 8) argument [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 142 #define ASRCFG_POSTMOD(i, v) ((v) << ASRCFG_POSTMODi_SHIFT(i)) argument 150 #define ASRCFG_PREMOD(i, v) ((v) << ASRCFG_PREMODi_SHIFT(i)) argument 161 #define ASRCSR_AOCS(i, v) ((v) << ASRCSR_AOCSi_SHIFT(i)) argument 164 #define ASRCSR_AICS(i, v) ((v) << ASRCSR_AICSi_SHIFT(i)) argument 170 #define ASRCDRi_AICP(i, v) ((v) << ASRCDRi_AICPi_SHIFT(i)) argument 173 #define ASRCDRi_AICD(i, v) ((v) << ASRCDRi_AICDi_SHIFT(i)) argument 176 #define ASRCDRi_AOCP(i, v) ((v) << ASRCDRi_AOCPi_SHIFT(i)) argument 179 #define ASRCDRi_AOCD(i, v) ((v) << ASRCDRi_AOCDi_SHIFT(i)) argument 239 #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 | 1111 .v.verbs = alc_gpio1_init_verbs, 1115 .v.verbs = alc_gpio2_init_verbs, 1119 .v.verbs = (const struct hda_verb[]) { 1129 .v.pins = (const struct hda_pintbl[]) { 1139 .v.pins = (const struct hda_pintbl[]) { 1147 .v.pins = (const struct hda_pintbl[]) { 1157 .v.verbs = (const struct hda_verb[]) { 1166 .v.verbs = (const struct hda_verb[]) { 1177 .v.func = alc880_fixup_vol_knob, 1182 .v.pins = (const struct hda_pintbl[]) { [all …]
|
D | patch_sigmatel.c | 1406 .v.pins = ref9200_pin_configs, 1410 .v.pins = oqo9200_pin_configs, 1416 .v.pins = dell9200_d21_pin_configs, 1420 .v.pins = dell9200_d22_pin_configs, 1424 .v.pins = dell9200_d23_pin_configs, 1428 .v.pins = dell9200_m21_pin_configs, 1432 .v.pins = dell9200_m22_pin_configs, 1436 .v.pins = dell9200_m23_pin_configs, 1440 .v.pins = dell9200_m24_pin_configs, 1444 .v.pins = dell9200_m25_pin_configs, [all …]
|
D | patch_conexant.c | 759 .v.pins = cxt_pincfg_lenovo_x200, 763 .v.pins = cxt_pincfg_lenovo_tp410, 771 .v.pins = cxt_pincfg_lemote, 775 .v.pins = cxt_pincfg_lemote, 779 .v.pins = (const struct hda_pintbl[]) { 788 .v.func = cxt_fixup_stereo_dmic, 792 .v.func = cxt5066_increase_mic_boost, 798 .v.pins = (const struct hda_pintbl[]) { 805 .v.func = cxt_fixup_headphone_mic, 809 .v.verbs = (const struct hda_verb[]) { [all …]
|
/sound/soc/bcm/ |
D | bcm2835-i2s.c | 76 #define BCM2835_I2S_RXTHR(v) ((v) << 7) argument 77 #define BCM2835_I2S_TXTHR(v) ((v) << 5) argument 93 #define BCM2835_I2S_FLEN(v) ((v) << 10) argument 94 #define BCM2835_I2S_FSLEN(v) (v) argument 98 #define BCM2835_I2S_CHPOS(v) ((v) << 4) argument 99 #define BCM2835_I2S_CHWID(v) (v) argument 100 #define BCM2835_I2S_CH1(v) ((v) << 16) argument 101 #define BCM2835_I2S_CH2(v) (v) argument 103 #define BCM2835_I2S_TX_PANIC(v) ((v) << 24) argument 104 #define BCM2835_I2S_RX_PANIC(v) ((v) << 16) argument [all …]
|
/sound/pci/asihpi/ |
D | hpi_version.h | 27 #define HPI_VER_MAJOR(v) ((int)(v >> 16)) argument 29 #define HPI_VER_MINOR(v) ((int)((v >> 8) & 0xFF)) argument 31 #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) argument
|
/sound/soc/davinci/ |
D | davinci-i2s.c | 66 #define DAVINCI_MCBSP_SPCR_RINTM(v) ((v) << 4) argument 68 #define DAVINCI_MCBSP_SPCR_XINTM(v) ((v) << 20) argument 73 #define DAVINCI_MCBSP_RCR_RWDLEN1(v) ((v) << 5) argument 74 #define DAVINCI_MCBSP_RCR_RFRLEN1(v) ((v) << 8) argument 75 #define DAVINCI_MCBSP_RCR_RDATDLY(v) ((v) << 16) argument 77 #define DAVINCI_MCBSP_RCR_RWDLEN2(v) ((v) << 21) argument 78 #define DAVINCI_MCBSP_RCR_RFRLEN2(v) ((v) << 24) argument 81 #define DAVINCI_MCBSP_XCR_XWDLEN1(v) ((v) << 5) argument 82 #define DAVINCI_MCBSP_XCR_XFRLEN1(v) ((v) << 8) argument 83 #define DAVINCI_MCBSP_XCR_XDATDLY(v) ((v) << 16) argument [all …]
|
/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 …]
|