/sound/soc/uniphier/ |
D | aio-reg.h | 17 #define A2CHNMAPCTR0(n) (0x00000 + 0x40 * (n)) argument 18 #define A2RBNMAPCTR0(n) (0x01000 + 0x40 * (n)) argument 19 #define A2IPORTNMAPCTR0(n) (0x02000 + 0x40 * (n)) argument 20 #define A2IPORTNMAPCTR1(n) (0x02004 + 0x40 * (n)) argument 21 #define A2IIFNMAPCTR0(n) (0x03000 + 0x40 * (n)) argument 22 #define A2OPORTNMAPCTR0(n) (0x04000 + 0x40 * (n)) argument 23 #define A2OPORTNMAPCTR1(n) (0x04004 + 0x40 * (n)) argument 24 #define A2OPORTNMAPCTR2(n) (0x04008 + 0x40 * (n)) argument 25 #define A2OIFNMAPCTR0(n) (0x05000 + 0x40 * (n)) argument 26 #define A2ATNMAPCTR0(n) (0x06000 + 0x40 * (n)) argument [all …]
|
/sound/ppc/ |
D | snd_ps3_reg.h | 23 #define PS3_AUDIO_KICK(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x00) argument 24 #define PS3_AUDIO_SOURCE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x04) argument 25 #define PS3_AUDIO_DEST(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x08) argument 26 #define PS3_AUDIO_DMASIZE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x0C) argument 45 #define PS3_AUDIO_AO_3WCTRL(n) (0x00006200 + 0x200 * (n)) argument 53 #define PS3_AUDIO_AO_SPD_REGBASE(n) (0x00007200 + 0x200 * (n)) argument 55 #define PS3_AUDIO_AO_SPDCTRL(n) \ argument 56 (PS3_AUDIO_AO_SPD_REGBASE(n) + 0x00) 57 #define PS3_AUDIO_AO_SPDUB(n, x) \ argument 58 (PS3_AUDIO_AO_SPD_REGBASE(n) + 0x04 + 0x04 * (x)) [all …]
|
/sound/isa/galaxy/ |
D | galaxy.c | 194 static int snd_galaxy_match(struct device *dev, unsigned int n) in snd_galaxy_match() argument 196 if (!enable[n]) in snd_galaxy_match() 199 switch (port[n]) { in snd_galaxy_match() 204 config[n] |= GALAXY_CONFIG_SBA_220; in snd_galaxy_match() 207 config[n] |= GALAXY_CONFIG_SBA_240; in snd_galaxy_match() 210 config[n] |= GALAXY_CONFIG_SBA_260; in snd_galaxy_match() 213 config[n] |= GALAXY_CONFIG_SBA_280; in snd_galaxy_match() 216 dev_err(dev, "invalid port %#lx\n", port[n]); in snd_galaxy_match() 220 switch (wss_port[n]) { in snd_galaxy_match() 225 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_530; in snd_galaxy_match() [all …]
|
/sound/isa/es1688/ |
D | es1688.c | 78 static int snd_es1688_match(struct device *dev, unsigned int n) in snd_es1688_match() argument 80 return enable[n] && !is_isapnp_selected(n); in snd_es1688_match() 84 struct device *dev, unsigned int n) in snd_es1688_legacy_create() argument 93 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_es1688_legacy_create() 94 irq[n] = snd_legacy_find_free_irq(possible_irqs); in snd_es1688_legacy_create() 95 if (irq[n] < 0) { in snd_es1688_legacy_create() 100 if (dma8[n] == SNDRV_AUTO_DMA) { in snd_es1688_legacy_create() 101 dma8[n] = snd_legacy_find_free_dma(possible_dmas); in snd_es1688_legacy_create() 102 if (dma8[n] < 0) { in snd_es1688_legacy_create() 108 if (port[n] != SNDRV_AUTO_PORT) in snd_es1688_legacy_create() [all …]
|
/sound/isa/gus/ |
D | gusextreme.c | 77 static int snd_gusextreme_match(struct device *dev, unsigned int n) in snd_gusextreme_match() argument 79 return enable[n]; in snd_gusextreme_match() 84 struct device *dev, unsigned int n) in snd_gusextreme_es1688_create() argument 92 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_gusextreme_es1688_create() 93 irq[n] = snd_legacy_find_free_irq(possible_irqs); in snd_gusextreme_es1688_create() 94 if (irq[n] < 0) { in snd_gusextreme_es1688_create() 99 if (dma8[n] == SNDRV_AUTO_DMA) { in snd_gusextreme_es1688_create() 100 dma8[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusextreme_es1688_create() 101 if (dma8[n] < 0) { in snd_gusextreme_es1688_create() 107 if (port[n] != SNDRV_AUTO_PORT) in snd_gusextreme_es1688_create() [all …]
|
D | gusclassic.c | 61 static int snd_gusclassic_match(struct device *dev, unsigned int n) in snd_gusclassic_match() argument 63 return enable[n]; in snd_gusclassic_match() 67 struct device *dev, unsigned int n, in snd_gusclassic_create() argument 76 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_gusclassic_create() 77 irq[n] = snd_legacy_find_free_irq(possible_irqs); in snd_gusclassic_create() 78 if (irq[n] < 0) { in snd_gusclassic_create() 83 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() 84 dma1[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusclassic_create() 85 if (dma1[n] < 0) { in snd_gusclassic_create() 90 if (dma2[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() [all …]
|
/sound/pci/ice1712/ |
D | wm8766.c | 185 int n = kcontrol->private_value; in snd_wm8766_volume_info() local 188 uinfo->count = (wm->ctl[n].flags & WM8766_FLAG_STEREO) ? 2 : 1; in snd_wm8766_volume_info() 189 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info() 190 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 199 int n = kcontrol->private_value; in snd_wm8766_enum_info() local 201 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_info() 202 wm->ctl[n].enum_names); in snd_wm8766_enum_info() 209 int n = kcontrol->private_value; in snd_wm8766_ctl_get() local 212 if (wm->ctl[n].get) in snd_wm8766_ctl_get() 213 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() [all …]
|
D | wm8776.c | 459 int n = kcontrol->private_value; in snd_wm8776_volume_info() local 462 uinfo->count = (wm->ctl[n].flags & WM8776_FLAG_STEREO) ? 2 : 1; in snd_wm8776_volume_info() 463 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info() 464 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8776_volume_info() 473 int n = kcontrol->private_value; in snd_wm8776_enum_info() local 475 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8776_enum_info() 476 wm->ctl[n].enum_names); in snd_wm8776_enum_info() 483 int n = kcontrol->private_value; in snd_wm8776_ctl_get() local 486 if (wm->ctl[n].get) in snd_wm8776_ctl_get() 487 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get() [all …]
|
D | se.c | 407 static int se200pci_get_enum_count(int n) in se200pci_get_enum_count() argument 412 member = se200pci_cont[n].member; in se200pci_get_enum_count() 435 int n, c; in se200pci_cont_enum_info() local 437 n = kc->private_value; in se200pci_cont_enum_info() 438 c = se200pci_get_enum_count(n); in se200pci_cont_enum_info() 441 return snd_ctl_enum_info(uinfo, 1, c, se200pci_cont[n].member); in se200pci_cont_enum_info() 449 int n = kc->private_value; in se200pci_cont_volume_get() local 450 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 451 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 460 int n = kc->private_value; in se200pci_cont_boolean_get() local [all …]
|
/sound/isa/cs423x/ |
D | cs4231.c | 57 static int snd_cs4231_match(struct device *dev, unsigned int n) in snd_cs4231_match() argument 59 if (!enable[n]) in snd_cs4231_match() 62 if (port[n] == SNDRV_AUTO_PORT) { in snd_cs4231_match() 66 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_cs4231_match() 70 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_cs4231_match() 77 static int snd_cs4231_probe(struct device *dev, unsigned int n) in snd_cs4231_probe() argument 83 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_cs4231_probe() 87 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe() 101 if (dma2[n] < 0) in snd_cs4231_probe() 104 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_cs4231_probe() [all …]
|
/sound/soc/ux500/ |
D | ux500_msp_i2s.h | 154 #define MSP_RX_CLKPOL_BIT(n) ((n & RCKPOL_MASK) << RCKPOL_SHIFT) argument 155 #define MSP_TX_CLKPOL_BIT(n) ((n & TCKPOL_MASK) << TCKPOL_SHIFT) argument 183 #define MSP_P1_ELEM_LEN_BITS(n) (n & P1ELEN_MASK) argument 184 #define MSP_P2_ELEM_LEN_BITS(n) (((n) << P2ELEN_SHIFT) & P2ELEN_MASK) argument 185 #define MSP_P1_FRAME_LEN_BITS(n) (((n) << P1FLEN_SHIFT) & P1FLEN_MASK) argument 186 #define MSP_P2_FRAME_LEN_BITS(n) (((n) << P2FLEN_SHIFT) & P2FLEN_MASK) argument 187 #define MSP_DATA_DELAY_BITS(n) (((n) << DDLY_SHIFT) & DDLY_MASK) argument 188 #define MSP_DATA_TYPE_BITS(n) (((n) << DTYP_SHIFT) & DTYP_MASK) argument 189 #define MSP_P2_START_MODE_BIT(n) ((n << P2SM_SHIFT) & P2SM_MASK) argument 190 #define MSP_P2_ENABLE_BIT(n) ((n << P2EN_SHIFT) & P2EN_MASK) argument [all …]
|
/sound/isa/ad1848/ |
D | ad1848.c | 52 static int snd_ad1848_match(struct device *dev, unsigned int n) in snd_ad1848_match() argument 54 if (!enable[n]) in snd_ad1848_match() 57 if (port[n] == SNDRV_AUTO_PORT) { in snd_ad1848_match() 61 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_ad1848_match() 65 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_ad1848_match() 72 static int snd_ad1848_probe(struct device *dev, unsigned int n) in snd_ad1848_probe() argument 78 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_ad1848_probe() 82 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], -1, in snd_ad1848_probe() 83 thinkpad[n] ? WSS_HW_THINKPAD : WSS_HW_DETECT, in snd_ad1848_probe() 101 if (!thinkpad[n]) in snd_ad1848_probe() [all …]
|
/sound/pci/ctxfi/ |
D | ctresource.c | 26 int i, j, k, n; in get_resource() local 29 for (i = 0, n = multi; i < amount; i++) { in get_resource() 33 n = multi; in get_resource() 36 if (!(--n)) in get_resource() 46 for (n = multi; n > 0; n--) { in get_resource() 60 unsigned int i, j, k, n; in put_resource() local 63 for (n = multi, i = idx; n > 0; n--) { in put_resource() 73 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) in mgr_get_resource() argument 77 if (n > mgr->avail) in mgr_get_resource() 80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource() [all …]
|
/sound/isa/ |
D | adlib.c | 34 static int snd_adlib_match(struct device *dev, unsigned int n) in snd_adlib_match() argument 36 if (!enable[n]) in snd_adlib_match() 39 if (port[n] == SNDRV_AUTO_PORT) { in snd_adlib_match() 51 static int snd_adlib_probe(struct device *dev, unsigned int n) in snd_adlib_probe() argument 57 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_adlib_probe() 63 card->private_data = request_region(port[n], 4, CRD_NAME); in snd_adlib_probe() 73 sprintf(card->longname, CRD_NAME " at %#lx", port[n]); in snd_adlib_probe() 75 error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3); in snd_adlib_probe() 100 static int snd_adlib_remove(struct device *dev, unsigned int n) in snd_adlib_remove() argument
|
/sound/soc/ti/ |
D | davinci-mcasp.h | 81 #define DAVINCI_MCASP_XRSRCTL_REG(n) (DAVINCI_MCASP_XRSRCTL_BASE_REG + \ argument 82 (n << 2)) 85 #define DAVINCI_MCASP_TXBUF_REG(n) (0x200 + (n << 2)) argument 87 #define DAVINCI_MCASP_RXBUF_REG(n) (0x280 + (n << 2)) argument 112 #define PIN_BIT_AXR(n) (n) argument 226 #define TXTDMS(n) (1<<n) argument 231 #define RXTDMS(n) (1<<n) argument
|
/sound/soc/codecs/ |
D | adau-utils.c | 18 unsigned int r, n, m, i, j; in adau_calc_pll_cfg() local 23 n = 0; in adau_calc_pll_cfg() 33 n = i / j; in adau_calc_pll_cfg() 38 n = 0; in adau_calc_pll_cfg() 42 if (n > 0xffff || m > 0xffff || div > 3 || r > 8 || r < 2) in adau_calc_pll_cfg() 48 regs[2] = n >> 8; in adau_calc_pll_cfg() 49 regs[3] = n & 0xff; in adau_calc_pll_cfg()
|
D | rl6231.c | 97 int n; member 145 int k_t, min_k, max_k, n = 0, m = 0, m_t = 0; in rl6231_pll_calc() local 159 n = pll_preset_table[i].n; in rl6231_pll_calc() 187 n = n_t; in rl6231_pll_calc() 195 n = n_t; in rl6231_pll_calc() 207 n = n_t; in rl6231_pll_calc() 228 pll_code->n_code = n; in rl6231_pll_calc()
|
/sound/soc/cirrus/ |
D | ep93xx-ac97.c | 31 #define AC97CH(n) (((n) - 1) * 0x20) argument 33 #define AC97DR(n) (AC97CH(n) + 0x0000) argument 35 #define AC97RXCR(n) (AC97CH(n) + 0x0004) argument 41 #define AC97TXCR(n) (AC97CH(n) + 0x0008) argument 47 #define AC97SR(n) (AC97CH(n) + 0x000c) argument 51 #define AC97RISR(n) (AC97CH(n) + 0x0010) argument 52 #define AC97ISR(n) (AC97CH(n) + 0x0014) argument 53 #define AC97IE(n) (AC97CH(n) + 0x0018) argument
|
/sound/core/seq/ |
D | seq_midi_emul.c | 595 int n; in all_sounds_off() local 599 for (n = 0; n < 128; n++) { in all_sounds_off() 600 if (chan->note[n]) { in all_sounds_off() 601 ops->note_terminate(drv, n, chan); in all_sounds_off() 602 chan->note[n] = 0; in all_sounds_off() 614 int n; in all_notes_off() local 618 for (n = 0; n < 128; n++) { in all_notes_off() 619 if (chan->note[n] == SNDRV_MIDI_NOTE_ON) in all_notes_off() 620 note_off(ops, drv, chan, n, 0); in all_notes_off() 627 static void snd_midi_channel_init(struct snd_midi_channel *p, int n) in snd_midi_channel_init() argument [all …]
|
/sound/ |
D | sound_core.c | 164 int n=low; in __sound_insert_unit() local 168 while (*list && (*list)->unit_minor<n) in __sound_insert_unit() 171 while(n<top) in __sound_insert_unit() 174 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit() 177 n+=SOUND_STEP; in __sound_insert_unit() 180 if(n>=top) in __sound_insert_unit() 183 n = low+(index*16); in __sound_insert_unit() 185 if ((*list)->unit_minor==n) in __sound_insert_unit() 187 if ((*list)->unit_minor>n) in __sound_insert_unit() 197 s->unit_minor=n; in __sound_insert_unit() [all …]
|
/sound/aoa/soundbus/i2sbus/ |
D | interface.h | 12 #define __PAD(m,n) u8 __pad##m[n] argument 13 #define _PAD(line, n) __PAD(line, n) argument 14 #define PAD(n) _PAD(__LINE__, (n)) argument
|
/sound/pci/au88x0/ |
D | au88x0_eq.c | 57 int i = 0, n /*esp2c */; in vortex_EqHw_SetLeftCoefs() local 59 for (n = 0; n < eqhw->this04; n++) { in vortex_EqHw_SetLeftCoefs() 60 hwwrite(vortex->mmio, 0x2b000 + n * 0x30, coefs[i + 0]); in vortex_EqHw_SetLeftCoefs() 61 hwwrite(vortex->mmio, 0x2b004 + n * 0x30, coefs[i + 1]); in vortex_EqHw_SetLeftCoefs() 64 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, coefs[i + 2]); in vortex_EqHw_SetLeftCoefs() 65 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, coefs[i + 3]); in vortex_EqHw_SetLeftCoefs() 66 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, coefs[i + 4]); in vortex_EqHw_SetLeftCoefs() 68 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, sign_invert(coefs[2 + i])); in vortex_EqHw_SetLeftCoefs() 69 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, sign_invert(coefs[3 + i])); in vortex_EqHw_SetLeftCoefs() 70 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, sign_invert(coefs[4 + i])); in vortex_EqHw_SetLeftCoefs() [all …]
|
/sound/isa/msnd/ |
D | msnd.c | 281 n = msnd_fifo_write(&chip->DARF, in snd_msnd_DARQ() 284 if (n <= 0) { in snd_msnd_DARQ() 286 return n; in snd_msnd_DARQ() 359 int n; in snd_msnd_play_reset_queue() local 370 for (n = 0; n < pcm_periods; ++n, pDAQ += DAQDS__size) { in snd_msnd_play_reset_queue() 371 writew(PCTODSP_BASED((u32)(pcm_count * n)), in snd_msnd_play_reset_queue() 378 writew(HIMT_PLAY_DONE * 0x100 + n, pDAQ + DAQDS_wIntMsg); in snd_msnd_play_reset_queue() 379 writew(n, pDAQ + DAQDS_wFlags); in snd_msnd_play_reset_queue() 387 int n; in snd_msnd_capture_reset_queue() local 413 for (n = 0; n < pcm_periods; ++n, pDAQ += DAQDS__size) { in snd_msnd_capture_reset_queue() [all …]
|
/sound/usb/ |
D | mixer_s1810c.c | 216 u32 a, b, c, e, n, off; in snd_s1810c_init_mixer_maps() local 222 for (n = 0; n < 2; n++) { in snd_s1810c_init_mixer_maps() 223 off = n * 18; in snd_s1810c_init_mixer_maps() 255 for (n = 0; n < 2; n++) { in snd_s1810c_init_mixer_maps() 256 off = n * 18; in snd_s1810c_init_mixer_maps() 306 for (n = 0; n < 2; n++) { in snd_s1810c_init_mixer_maps() 307 off = n * 18; in snd_s1810c_init_mixer_maps()
|
/sound/soc/sof/ |
D | compress.c | 125 unsigned int offset, n; in sof_probe_compr_copy() local 134 n = rtd->buffer_size - offset; in sof_probe_compr_copy() 136 if (count < n) { in sof_probe_compr_copy() 139 ret = copy_to_user(buf, ptr, n); in sof_probe_compr_copy() 140 ret += copy_to_user(buf + n, rtd->dma_area, count - n); in sof_probe_compr_copy()
|