/sound/pci/ice1712/ |
D | hoontech.h | 43 #define ICE1712_STDSP24_0_BOX(r, x) r[0] = ((r[0] & ~3) | ((x)&3)) argument 44 #define ICE1712_STDSP24_0_DAREAR(r, x) r[0] = ((r[0] & ~4) | (((x)&1)<<2)) argument 45 #define ICE1712_STDSP24_1_CHN1(r, x) r[1] = ((r[1] & ~1) | ((x)&1)) argument 46 #define ICE1712_STDSP24_1_CHN2(r, x) r[1] = ((r[1] & ~2) | (((x)&1)<<1)) argument 47 #define ICE1712_STDSP24_1_CHN3(r, x) r[1] = ((r[1] & ~4) | (((x)&1)<<2)) argument 48 #define ICE1712_STDSP24_2_CHN4(r, x) r[2] = ((r[2] & ~1) | ((x)&1)) argument 49 #define ICE1712_STDSP24_2_MIDIIN(r, x) r[2] = ((r[2] & ~2) | (((x)&1)<<1)) argument 50 #define ICE1712_STDSP24_2_MIDI1(r, x) r[2] = ((r[2] & ~4) | (((x)&1)<<2)) argument 51 #define ICE1712_STDSP24_3_MIDI2(r, x) r[3] = ((r[3] & ~1) | ((x)&1)) argument 52 #define ICE1712_STDSP24_3_MUTE(r, x) r[3] = ((r[3] & ~2) | (((x)&1)<<1)) argument [all …]
|
/sound/firewire/ |
D | iso-resources.c | 26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) in fw_iso_resources_init() argument 28 r->channels_mask = ~0uLL; in fw_iso_resources_init() 29 r->unit = fw_unit_get(unit); in fw_iso_resources_init() 30 mutex_init(&r->mutex); in fw_iso_resources_init() 31 r->allocated = false; in fw_iso_resources_init() 41 void fw_iso_resources_destroy(struct fw_iso_resources *r) in fw_iso_resources_destroy() argument 43 WARN_ON(r->allocated); in fw_iso_resources_destroy() 44 mutex_destroy(&r->mutex); in fw_iso_resources_destroy() 45 fw_unit_put(r->unit); in fw_iso_resources_destroy() 106 int fw_iso_resources_allocate(struct fw_iso_resources *r, in fw_iso_resources_allocate() argument [all …]
|
D | iso-resources.h | 29 int fw_iso_resources_init(struct fw_iso_resources *r, 31 void fw_iso_resources_destroy(struct fw_iso_resources *r); 33 int fw_iso_resources_allocate(struct fw_iso_resources *r, 35 int fw_iso_resources_update(struct fw_iso_resources *r); 36 void fw_iso_resources_free(struct fw_iso_resources *r);
|
/sound/soc/codecs/ |
D | wl1273.c | 47 int r = 0; in snd_wl1273_fm_set_i2s_mode() local 84 r = -EINVAL; in snd_wl1273_fm_set_i2s_mode() 118 r = -EINVAL; in snd_wl1273_fm_set_i2s_mode() 127 r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode); in snd_wl1273_fm_set_i2s_mode() 128 if (r) in snd_wl1273_fm_set_i2s_mode() 132 r = core->write(core, WL1273_AUDIO_ENABLE, in snd_wl1273_fm_set_i2s_mode() 134 if (r) in snd_wl1273_fm_set_i2s_mode() 140 return r; in snd_wl1273_fm_set_i2s_mode() 147 int r = 0; in snd_wl1273_fm_set_channel_number() local 157 r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO); in snd_wl1273_fm_set_channel_number() [all …]
|
D | sgtl5000.c | 317 int r; in dac_get_volsw() local 325 r = (reg & SGTL5000_DAC_VOL_RIGHT_MASK) >> SGTL5000_DAC_VOL_RIGHT_SHIFT; in dac_get_volsw() 329 r = clamp(r, 0x3c, 0xfc); in dac_get_volsw() 333 r = 0xfc - r; in dac_get_volsw() 336 ucontrol->value.integer.value[1] = r; in dac_get_volsw() 370 int r; in dac_put_volsw() local 373 r = ucontrol->value.integer.value[1]; in dac_put_volsw() 377 r = clamp(r, 0, 0xfc - 0x3c); in dac_put_volsw() 381 r = 0xfc - r; in dac_put_volsw() 385 r << SGTL5000_DAC_VOL_RIGHT_SHIFT; in dac_put_volsw()
|
D | wm9712.c | 167 u16 l, r, beep, line, phone, mic, pcm, aux; in mixer_event() local 170 r = ac97_read(w->codec, HPR_MIXER); in mixer_event() 178 if (l & 0x1 || r & 0x1) in mixer_event() 183 if (l & 0x2 || r & 0x2) in mixer_event() 188 if (l & 0x4 || r & 0x4) in mixer_event() 193 if (l & 0x8 || r & 0x8) in mixer_event() 198 if (l & 0x10 || r & 0x10) in mixer_event() 203 if (l & 0x20 || r & 0x20) in mixer_event()
|
/sound/isa/wavefront/ |
D | wavefront_fx.c | 172 wavefront_fx_info r; in snd_wavefront_fx_ioctl() local 186 if (copy_from_user (&r, (void __user *)arg, sizeof (wavefront_fx_info))) in snd_wavefront_fx_ioctl() 189 switch (r.request) { in snd_wavefront_fx_ioctl() 191 wavefront_fx_mute (dev, r.data[0]); in snd_wavefront_fx_ioctl() 195 if (r.data[2] <= 0) { in snd_wavefront_fx_ioctl() 199 } else if (r.data[2] == 1) { in snd_wavefront_fx_ioctl() 200 pd = (unsigned short *) &r.data[3]; in snd_wavefront_fx_ioctl() 202 if (r.data[2] > 256) { in snd_wavefront_fx_ioctl() 208 r.data[3], in snd_wavefront_fx_ioctl() 209 r.data[2] * sizeof(short)); in snd_wavefront_fx_ioctl() [all …]
|
/sound/aoa/soundbus/i2sbus/ |
D | core.c | 42 struct dbdma_command_mem *r, in alloc_dbdma_descriptor_ring() argument 46 r->size = (numcmds + 3) * sizeof(struct dbdma_cmd); in alloc_dbdma_descriptor_ring() 50 r->space = dma_zalloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring() 51 r->size, &r->bus_addr, GFP_KERNEL); in alloc_dbdma_descriptor_ring() 52 if (!r->space) in alloc_dbdma_descriptor_ring() 55 r->cmds = (void*)DBDMA_ALIGN(r->space); in alloc_dbdma_descriptor_ring() 56 r->bus_cmd_start = r->bus_addr + in alloc_dbdma_descriptor_ring() 57 (dma_addr_t)((char*)r->cmds - (char*)r->space); in alloc_dbdma_descriptor_ring() 63 struct dbdma_command_mem *r) in free_dbdma_descriptor_ring() argument 65 if (!r->space) return; in free_dbdma_descriptor_ring() [all …]
|
/sound/pci/ac97/ |
D | ac97_pcm.c | 169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg() 426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates() 494 slots = pcm->r[0].slots; in snd_ac97_pcm_assign() 508 tmp &= ~rpcms[k].r[0].rslots[j]; in snd_ac97_pcm_assign() 512 tmp &= pcm->r[0].slots; in snd_ac97_pcm_assign() 515 rpcm->r[0].rslots[j] = tmp; in snd_ac97_pcm_assign() 516 rpcm->r[0].codec[j] = bus->codec[j]; in snd_ac97_pcm_assign() 517 rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; in snd_ac97_pcm_assign() 526 rpcm->r[0].slots |= tmp; in snd_ac97_pcm_assign() 535 if ((tmp & pcm->r[1].slots) == tmp) { in snd_ac97_pcm_assign() [all …]
|
/sound/core/seq/ |
D | seq_queue.h | 120 #define udiv_qrnnd(q, r, n1, n0, d) \ argument 123 "=d" ((u32)(r)) \ 129 #define u64_mod(x,y,r) do {u32 __tmp; udiv_qrnnd(__tmp, q, (x)>>32, x, y);} while (0) argument 130 #define u64_divmod(x,y,q,r) udiv_qrnnd(q, r, (x)>>32, x, y) argument 134 #define u64_mod(x,y,r) ((r) = (u32)((u64)(x) % (u64)(y))) argument 135 #define u64_divmod(x,y,q,r) (u64_div(x,y,q), u64_mod(x,y,r)) argument
|
D | seq_ports.c | 469 static inline int addr_match(struct snd_seq_addr *r, struct snd_seq_addr *s) in addr_match() argument 471 return (r->client == s->client) && (r->port == s->port); in addr_match() 476 static int match_subs_info(struct snd_seq_port_subscribe *r, in match_subs_info() argument 479 if (addr_match(&r->sender, &s->sender) && in match_subs_info() 480 addr_match(&r->dest, &s->dest)) { in match_subs_info() 481 if (r->flags && r->flags == s->flags) in match_subs_info() 482 return r->queue == s->queue; in match_subs_info() 483 else if (! r->flags) in match_subs_info()
|
/sound/soc/au1x/ |
D | psc-ac97.c | 216 unsigned long r, ro, stat; in au1xpsc_ac97_hw_params() local 221 r = ro = __raw_readl(AC97_CFG(pscdata)); in au1xpsc_ac97_hw_params() 227 if ((PSC_AC97CFG_GET_LEN(r) != params->msbits) || in au1xpsc_ac97_hw_params() 233 r &= ~PSC_AC97CFG_LEN_MASK; in au1xpsc_ac97_hw_params() 234 r |= PSC_AC97CFG_SET_LEN(params->msbits); in au1xpsc_ac97_hw_params() 238 r &= ~PSC_AC97CFG_TXSLOT_MASK; in au1xpsc_ac97_hw_params() 239 r |= PSC_AC97CFG_TXSLOT_ENA(3); in au1xpsc_ac97_hw_params() 240 r |= PSC_AC97CFG_TXSLOT_ENA(4); in au1xpsc_ac97_hw_params() 242 r &= ~PSC_AC97CFG_RXSLOT_MASK; in au1xpsc_ac97_hw_params() 243 r |= PSC_AC97CFG_RXSLOT_ENA(3); in au1xpsc_ac97_hw_params() [all …]
|
D | ac97c.c | 83 unsigned short r) in au1xac97c_ac97_read() argument 102 WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ); in au1xac97c_ac97_read() 119 pr_debug("AC97RD %04x %04lx %d\n", r, data, retry); in au1xac97c_ac97_read() 124 static void au1xac97c_ac97_write(struct snd_ac97 *ac97, unsigned short r, in au1xac97c_ac97_write() argument 141 WR(ctx, AC97_CMDRESP, CMD_WRITE | CMD_IDX(r) | CMD_SET_DATA(v)); in au1xac97c_ac97_write() 151 pr_debug("AC97WR %04x %04x %d\n", r, v, retry); in au1xac97c_ac97_write()
|
/sound/soc/txx9/ |
D | txx9aclc-ac97.c | 179 struct resource *r; in txx9aclc_ac97_dev_probe() local 191 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in txx9aclc_ac97_dev_probe() 192 drvdata->base = devm_ioremap_resource(&pdev->dev, r); in txx9aclc_ac97_dev_probe() 197 drvdata->physbase = r->start; in txx9aclc_ac97_dev_probe() 198 if (sizeof(drvdata->physbase) > sizeof(r->start) && in txx9aclc_ac97_dev_probe() 199 r->start >= TXX9_DIRECTMAP_BASE && in txx9aclc_ac97_dev_probe() 200 r->start < TXX9_DIRECTMAP_BASE + 0x400000) in txx9aclc_ac97_dev_probe()
|
/sound/core/ |
D | pcm_lib.c | 604 unsigned int *r) in div32() argument 607 *r = 0; in div32() 610 *r = a % b; in div32() 623 unsigned int r; in div_up() local 627 q = div32(a, b, &r); in div_up() 628 if (r) in div_up() 643 unsigned int c, unsigned int *r) in muldiv32() argument 647 *r = 0; in muldiv32() 650 n = div_u64_rem(n, c, r); in muldiv32() 652 *r = 0; in muldiv32() [all …]
|
/sound/pci/ymfpci/ |
D | ymfpci.c | 86 struct resource *r = NULL; in snd_ymfpci_create_gameport() local 105 if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL) in snd_ymfpci_create_gameport() 108 if (!r) { in snd_ymfpci_create_gameport() 126 if (!r && !(r = request_region(io_port, 1, "YMFPCI gameport"))) { in snd_ymfpci_create_gameport() 136 release_and_free_resource(r); in snd_ymfpci_create_gameport() 145 gameport_set_port_data(gp, r); in snd_ymfpci_create_gameport() 161 struct resource *r = gameport_get_port_data(chip->gameport); in snd_ymfpci_free_gameport() local 166 release_and_free_resource(r); in snd_ymfpci_free_gameport()
|
/sound/ |
D | sound_core.c | 257 int r; in sound_insert_unit() local 264 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit() 267 if (r < 0) in sound_insert_unit() 269 else if (r < SOUND_STEP) in sound_insert_unit() 272 sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); in sound_insert_unit() 280 r = __register_chrdev(SOUND_MAJOR, s->unit_minor, 1, s->name, in sound_insert_unit() 282 if (r < 0) { in sound_insert_unit() 300 return r; in sound_insert_unit()
|
D | sound_firmware.c | 69 int r; in mod_firmware_load() local 73 r = do_mod_firmware_load(fn, fp); in mod_firmware_load() 75 return r; in mod_firmware_load()
|
/sound/mips/ |
D | au1x00.c | 598 struct resource *r; in au1000_ac97_probe() local 617 r = platform_get_resource(pdev, IORESOURCE_DMA, 0); in au1000_ac97_probe() 618 if (!r) { in au1000_ac97_probe() 623 au1000->dmaid[0] = r->start; in au1000_ac97_probe() 626 r = platform_get_resource(pdev, IORESOURCE_DMA, 1); in au1000_ac97_probe() 627 if (!r) { in au1000_ac97_probe() 632 au1000->dmaid[1] = r->start; in au1000_ac97_probe() 646 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in au1000_ac97_probe() 647 if (!r) in au1000_ac97_probe() 651 au1000->ac97_res_port = request_mem_region(r->start, resource_size(r), in au1000_ac97_probe() [all …]
|
D | hal2.c | 204 int l, r; in hal2_gain_get() local 211 r = 0; in hal2_gain_get() 214 r = 31 - ((tmp >> H2I_C2_R_ATT_SHIFT) & 31); in hal2_gain_get() 220 r = (tmp >> H2I_C2_R_GAIN_SHIFT) & 15; in hal2_gain_get() 224 ucontrol->value.integer.value[1] = r; in hal2_gain_get() 234 int l, r; in hal2_gain_put() local 237 r = ucontrol->value.integer.value[1]; in hal2_gain_put() 243 if (l | r) { in hal2_gain_put() 245 r = 31 - r; in hal2_gain_put() 247 new |= (r << H2I_C2_R_ATT_SHIFT); in hal2_gain_put() [all …]
|
/sound/pci/asihpi/ |
D | hpi_version.h | 23 #define HPI_VERSION_CONSTRUCTOR(maj, min, r) ((maj << 16) + (min << 8) + r) argument
|
/sound/soc/sh/rcar/ |
D | rsnd.h | 142 #define rsnd_mod_read(m, r) \ argument 143 rsnd_read(rsnd_mod_to_priv(m), m, RSND_REG_##r) 144 #define rsnd_mod_write(m, r, d) \ argument 145 rsnd_write(rsnd_mod_to_priv(m), m, RSND_REG_##r, d) 146 #define rsnd_mod_bset(m, r, s, d) \ argument 147 rsnd_bset(rsnd_mod_to_priv(m), m, RSND_REG_##r, s, d)
|
/sound/core/oss/ |
D | mulaw.c | 37 int r = 0; in val_seg() local 41 r += 4; in val_seg() 45 r += 2; in val_seg() 48 r += 1; in val_seg() 49 return r; in val_seg()
|
/sound/soc/pxa/ |
D | mmp-pcm.c | 106 struct resource *r; in mmp_pcm_open() local 108 r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream); in mmp_pcm_open() 109 if (!r) in mmp_pcm_open() 115 dma_data.dma_res = r; in mmp_pcm_open()
|
/sound/pci/ |
D | ens1370.c | 520 unsigned int t, r = 0; in snd_es1371_wait_src_ready() local 523 r = inl(ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_wait_src_ready() 524 if ((r & ES_1371_SRC_RAM_BUSY) == 0) in snd_es1371_wait_src_ready() 525 return r; in snd_es1371_wait_src_ready() 529 ES_REG(ensoniq, 1371_SMPRATE), r); in snd_es1371_wait_src_ready() 535 unsigned int temp, i, orig, r; in snd_es1371_src_read() local 541 r = temp & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 | in snd_es1371_src_read() 543 r |= ES_1371_SRC_RAM_ADDRO(reg) | 0x10000; in snd_es1371_src_read() 544 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_read() 559 r = orig & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 | in snd_es1371_src_read() [all …]
|