/sound/isa/gus/ |
D | gus_mem_proc.c | 61 int idx; in snd_gf1_mem_proc_init() local 66 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init() 67 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init() 72 sprintf(name, "gus-ram-%i", idx); in snd_gf1_mem_proc_init() 78 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init() 79 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init() 83 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init() 84 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init() 90 sprintf(name, "gus-rom-%i", idx); in snd_gf1_mem_proc_init() 96 priv->address = idx * 4096 * 1024; in snd_gf1_mem_proc_init()
|
/sound/pci/ice1712/ |
D | wtm.c | 82 int id, idx, change; in stac9460_dac_mute_all() local 88 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all() 90 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all() 91 old = stac9460_get(ice, idx); in stac9460_dac_mute_all() 95 stac9460_put(ice, idx, new); in stac9460_dac_mute_all() 107 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all() 109 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all() 110 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all() 114 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_all() 133 int idx, id; in stac9460_dac_mute_get() local [all …]
|
D | prodigy192.c | 92 static int stac9460_dac_mute(struct snd_ice1712 *ice, int idx, in stac9460_dac_mute() argument 97 old = stac9460_get(ice, idx); in stac9460_dac_mute() 102 stac9460_put(ice, idx, new); in stac9460_dac_mute() 112 int idx; in stac9460_dac_mute_get() local 115 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get() 117 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get() 118 val = stac9460_get(ice, idx); in stac9460_dac_mute_get() 127 int idx, change; in stac9460_dac_mute_put() local 130 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put() 132 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put() [all …]
|
D | maya44.c | 174 unsigned int idx = kcontrol->private_value; in maya_vol_info() local 175 struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_info() 190 unsigned int idx = kcontrol->private_value; in maya_vol_get() local 193 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get() 194 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get() 205 unsigned int idx = kcontrol->private_value; in maya_vol_put() local 206 struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_put() 215 if (val == wm->volumes[idx][ch]) in maya_vol_put() 228 wm->volumes[idx][ch] = val; in maya_vol_put() 238 #define COMPOSE_SW_VAL(idx, reg, mask) ((idx) | ((reg) << 8) | ((mask) << 16)) argument [all …]
|
/sound/isa/msnd/ |
D | msnd_pinnacle.c | 893 static int snd_msnd_isa_probe(struct device *pdev, unsigned int idx) in snd_msnd_isa_probe() argument 899 if (has_isapnp(idx) in snd_msnd_isa_probe() 901 || cfg[idx] == SNDRV_AUTO_PORT in snd_msnd_isa_probe() 908 err = snd_card_new(pdev, index[idx], id[idx], THIS_MODULE, in snd_msnd_isa_probe() 917 switch (irq[idx]) { in snd_msnd_isa_probe() 932 switch (mem[idx]) { in snd_msnd_isa_probe() 948 cfg[idx]); in snd_msnd_isa_probe() 950 if (!request_region(cfg[idx], 2, "Pinnacle/Fiji Config")) { in snd_msnd_isa_probe() 952 cfg[idx]); in snd_msnd_isa_probe() 956 if (reset[idx]) in snd_msnd_isa_probe() [all …]
|
/sound/core/ |
D | init.c | 64 static int module_slot_match(struct module *module, int idx) in module_slot_match() argument 70 if (!module || !*module->name || !slots[idx]) in module_slot_match() 74 s2 = slots[idx]; in module_slot_match() 201 int snd_card_new(struct device *parent, int idx, const char *xid, in snd_card_new() argument 223 if (idx < 0) /* first check the matching module-name slot */ in snd_card_new() 224 idx = get_slot_from_bitmask(idx, module_slot_match, module); in snd_card_new() 225 if (idx < 0) /* if not matched, assign an empty slot */ in snd_card_new() 226 idx = get_slot_from_bitmask(idx, check_empty_slot, module); in snd_card_new() 227 if (idx < 0) in snd_card_new() 229 else if (idx < snd_ecards_limit) { in snd_card_new() [all …]
|
D | info_oss.c | 69 int idx, ok = -1; in snd_sndstat_show_strings() local 74 for (idx = 0; idx < SNDRV_CARDS; idx++) { in snd_sndstat_show_strings() 75 str = snd_sndstat_strings[idx][dev]; in snd_sndstat_show_strings() 81 snd_iprintf(buf, "%i: %s\n", idx, str); in snd_sndstat_show_strings()
|
/sound/ |
D | last.c | 27 int idx, ok = 0; in alsa_sound_last_init() local 30 for (idx = 0; idx < SNDRV_CARDS; idx++) in alsa_sound_last_init() 31 if (snd_cards[idx] != NULL) { in alsa_sound_last_init() 32 printk(KERN_INFO " #%i: %s\n", idx, snd_cards[idx]->longname); in alsa_sound_last_init()
|
/sound/pci/emu10k1/ |
D | emuproc.c | 190 int idx; in snd_emu10k1_proc_read() local 199 for (idx = 0; idx < NUM_G; idx++) { in snd_emu10k1_proc_read() 201 snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : in snd_emu10k1_proc_read() 202 snd_emu10k1_ptr_read(emu, FXRT, idx); in snd_emu10k1_proc_read() 204 snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : in snd_emu10k1_proc_read() 208 idx, in snd_emu10k1_proc_read() 220 idx, in snd_emu10k1_proc_read() 228 for (idx = 0; idx < nefx; idx++) { in snd_emu10k1_proc_read() 229 if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) in snd_emu10k1_proc_read() 230 snd_iprintf(buffer, " Output %02i [%s]\n", idx, outputs[idx]); in snd_emu10k1_proc_read() [all …]
|
D | emumixer.c | 57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() local 61 if (idx >= 3) in snd_emu10k1_spdif_get() 64 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get() 65 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get() 66 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get() 67 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get() 1158 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put() local 1164 if (idx >= 3) in snd_emu10k1_spdif_put() 1171 change = val != emu->spdif_bits[idx]; in snd_emu10k1_spdif_put() 1173 snd_emu10k1_ptr_write(emu, SPCS0 + idx, 0, val); in snd_emu10k1_spdif_put() [all …]
|
/sound/pci/lola/ |
D | lola.h | 390 #define lola_readl(chip, idx, name) \ argument 391 readl((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 392 #define lola_readw(chip, idx, name) \ argument 393 readw((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 394 #define lola_readb(chip, idx, name) \ argument 395 readb((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 396 #define lola_writel(chip, idx, name, val) \ argument 397 writel((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 398 #define lola_writew(chip, idx, name, val) \ argument 399 writew((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) [all …]
|
D | lola_clock.c | 126 int i, j, nitems, nb_verbs, idx, idx_list; in lola_init_clock_widget() local 152 idx = 0; in lola_init_clock_widget() 159 idx, 0, &val, &res_ex); in lola_init_clock_widget() 201 chip->clock.idx_lookup[idx_list] = idx; in lola_init_clock_widget() 206 if (++idx >= nitems) in lola_init_clock_widget() 233 int lola_set_clock_index(struct lola *chip, unsigned int idx) in lola_set_clock_index() argument 240 chip->clock.idx_lookup[idx], in lola_set_clock_index() 273 int lola_set_clock(struct lola *chip, int idx) in lola_set_clock() argument 278 if (idx == chip->clock.cur_index) { in lola_set_clock() 282 } else if (chip->clock.sample_clock[idx].type == in lola_set_clock() [all …]
|
/sound/i2c/other/ |
D | ak4xxx-adda.c | 619 int idx, err, mixer_ch, num_stereo; in build_dac_controls() local 623 for (idx = 0; idx < ak->num_dacs; ) { in build_dac_controls() 639 AK_COMPOSE(idx/2, 1, 0, 0) | AK_INVERT; in build_dac_controls() 670 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 127) | in build_dac_controls() 677 AK_COMPOSE(idx/2, (idx%2) + 4, 0, 127) | in build_dac_controls() 683 int val = idx < 6 ? idx + 2 : (idx - 6) + 0xb; in build_dac_controls() 691 knew.private_value = AK_COMPOSE(0, idx + 4, 0, 255); in build_dac_controls() 696 int addr = idx < 6 ? idx + 4 : idx + 5; in build_dac_controls() 705 AK_COMPOSE(idx/2, (idx%2) + 3, 0, 255); in build_dac_controls() 711 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 255); in build_dac_controls() [all …]
|
/sound/aoa/codecs/ |
D | tas-basstreble.h | 91 static inline u8 tas3004_treble(int idx) in tas3004_treble() argument 93 return tas3004_treble_table[idx]; in tas3004_treble() 127 static inline u8 tas3004_bass(int idx) in tas3004_bass() argument 129 u8 result = tas3004_treble_table[idx]; in tas3004_bass() 131 if (idx >= 50) in tas3004_bass() 132 result += tas3004_bass_diff_to_treble[idx-50]; in tas3004_bass()
|
/sound/pci/ctxfi/ |
D | cthw20k1.c | 138 unsigned int idx; member 363 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 371 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write() 374 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 377 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 386 unsigned int pm_idx = src_param_pitch_mixer(idx); in src_commit_write() 393 hw_write_20kx(hw, SRCSA+idx*0x100, ctl->sa); in src_commit_write() 397 hw_write_20kx(hw, SRCLA+idx*0x100, ctl->la); in src_commit_write() 401 hw_write_20kx(hw, SRCCA+idx*0x100, ctl->ca); in src_commit_write() 406 hw_write_20kx(hw, SRCCF+idx*0x100, 0x0); in src_commit_write() [all …]
|
D | cthardware.h | 111 int (*src_commit_write)(struct hw *hw, unsigned int idx, void *blk); 112 int (*src_get_ca)(struct hw *hw, unsigned int idx, void *blk); 118 int (*src_mgr_enbs_src)(void *blk, unsigned int idx); 120 int (*src_mgr_enb_src)(void *blk, unsigned int idx); 122 int (*src_mgr_dsb_src)(void *blk, unsigned int idx); 147 int (*amixer_commit_write)(struct hw *hw, unsigned int idx, void *blk); 160 int (*dai_commit_write)(struct hw *hw, unsigned int idx, void *blk); 164 int (*dao_commit_write)(struct hw *hw, unsigned int idx, void *blk); 169 int (*daio_mgr_enb_dai)(void *blk, unsigned int idx); 170 int (*daio_mgr_dsb_dai)(void *blk, unsigned int idx); [all …]
|
D | ctamixer.c | 33 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master() 43 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index() 205 err = rsc_init(&amixer->rsc, amixer->idx[0], in amixer_rsc_init() 236 unsigned int idx; in get_amixer_rsc() local 252 err = mgr_get_resource(&mgr->mgr, 1, &idx); in get_amixer_rsc() 256 amixer->idx[i] = idx; in get_amixer_rsc() 276 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc() 290 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in put_amixer_rsc() 340 rsc->idx = container_of(rsc, struct sum, rsc)->idx[0]; in sum_master() 350 return container_of(rsc, struct sum, rsc)->idx[rsc->conj]; in sum_index() [all …]
|
D | cthw20k2.c | 138 unsigned int idx; member 363 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 371 hw_write_20kx(hw, SRC_UPZ+idx*0x100+i*0x4, 0); in src_commit_write() 374 hw_write_20kx(hw, SRC_DN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 377 hw_write_20kx(hw, SRC_DN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 386 unsigned int pm_idx = src_param_pitch_mixer(idx); in src_commit_write() 393 hw_write_20kx(hw, SRC_SA+idx*0x100, ctl->sa); in src_commit_write() 397 hw_write_20kx(hw, SRC_LA+idx*0x100, ctl->la); in src_commit_write() 401 hw_write_20kx(hw, SRC_CA+idx*0x100, ctl->ca); in src_commit_write() 406 hw_write_20kx(hw, SRC_CF+idx*0x100, 0x0); in src_commit_write() [all …]
|
D | ctresource.c | 62 static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx) in put_resource() argument 67 for (n = multi, i = idx; n > 0; n--) { in put_resource() 91 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument 93 put_resource(mgr->rscs, n, idx); in mgr_put_resource() 126 rsc->conj = rsc->idx; in rsc_master() 137 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument 141 rsc->idx = idx; in rsc_init() 142 rsc->conj = idx; in rsc_init() 201 rsc->idx = rsc->conj = 0; in rsc_uninit()
|
/sound/pci/ |
D | ak4531_codec.c | 48 int idx; 50 for (idx = 0; idx < 0x19; idx++) 52 idx, ak4531->regs[idx]); 386 unsigned int idx; in snd_ak4531_mixer() local 410 for (idx = 0; idx <= 0x19; idx++) { in snd_ak4531_mixer() 411 if (idx == AK4531_RESET || idx == AK4531_CLOCK) in snd_ak4531_mixer() 413 …ak4531->write(ak4531, idx, ak4531->regs[idx] = snd_ak4531_initial_map[idx]); /* recording source i… in snd_ak4531_mixer() 415 for (idx = 0; idx < ARRAY_SIZE(snd_ak4531_controls); idx++) { in snd_ak4531_mixer() 416 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ak4531_controls[idx], ak4531))) < 0) { in snd_ak4531_mixer() 450 int idx; in snd_ak4531_resume() local [all …]
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 723 int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int idx) in mixart_update_playback_stream_level() argument 734 set_level.stream_level.desc.stream_idx = idx; in mixart_update_playback_stream_level() 738 idx += MIXART_PLAYBACK_STREAMS; in mixart_update_playback_stream_level() 750 if(chip->digital_playback_active[idx][i]) in mixart_update_playback_stream_level() 751 volume[i] = chip->digital_playback_volume[idx][i]; in mixart_update_playback_stream_level() 777 int err, i, idx; in mixart_update_capture_stream_level() local 784 idx = 1; in mixart_update_capture_stream_level() 787 idx = 0; in mixart_update_capture_stream_level() 802 set_level.level[i].digital_level = mixart_digital_level[chip->digital_capture_volume[idx][i]]; in mixart_update_capture_stream_level() 837 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_get() local [all …]
|
/sound/core/oss/ |
D | mixer_oss.c | 829 int err, idx; in snd_mixer_oss_get_recsrc2() local 847 for (idx = 0; idx < 32; idx++) { in snd_mixer_oss_get_recsrc2() 848 if (!(mixer->mask_recsrc & (1 << idx))) in snd_mixer_oss_get_recsrc2() 850 pslot = &mixer->slots[idx]; in snd_mixer_oss_get_recsrc2() 857 *active_index = idx; in snd_mixer_oss_get_recsrc2() 880 unsigned int idx; in snd_mixer_oss_put_recsrc2() local 896 for (idx = 0; idx < 32; idx++) { in snd_mixer_oss_put_recsrc2() 897 if (!(mixer->mask_recsrc & (1 << idx))) in snd_mixer_oss_put_recsrc2() 899 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2() 905 if (idx == active_index) in snd_mixer_oss_put_recsrc2() [all …]
|
/sound/pci/asihpi/ |
D | hpioctl.c | 343 int idx, nm, low_latency_mode = 0, irq_supported = 0; in asihpi_adapter_probe() local 375 for (idx = 0; idx < nm; idx++) { in asihpi_adapter_probe() 376 HPI_DEBUG_LOG(INFO, "resource %d %pR\n", idx, in asihpi_adapter_probe() 377 &pci_dev->resource[idx]); in asihpi_adapter_probe() 379 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { in asihpi_adapter_probe() 380 memlen = pci_resource_len(pci_dev, idx); in asihpi_adapter_probe() 381 pci.ap_mem_base[idx] = in asihpi_adapter_probe() 382 ioremap(pci_resource_start(pci_dev, idx), in asihpi_adapter_probe() 384 if (!pci.ap_mem_base[idx]) { in asihpi_adapter_probe() 505 while (--idx >= 0) { in asihpi_adapter_probe() [all …]
|
/sound/pci/hda/ |
D | hda_generic.c | 310 ssize_t idx; in snd_hda_get_path_idx() local 314 idx = path - array; in snd_hda_get_path_idx() 315 if (idx < 0 || idx >= spec->paths.used) in snd_hda_get_path_idx() 317 return idx + 1; in snd_hda_get_path_idx() 327 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx() argument 331 if (idx <= 0 || idx > spec->paths.used) in snd_hda_get_path_from_idx() 333 return snd_array_elem(&spec->paths, idx - 1); in snd_hda_get_path_from_idx() 380 int dir, int idx, int type) in is_ctl_associated() argument 382 unsigned int val = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir); in is_ctl_associated() 447 path->idx[path->depth + 1] = i; in __parse_nid_path() [all …]
|
D | hda_controller_trace.h | 21 __field( int, idx ) 27 __entry->idx = (dev)->core.index; 31 TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd) 42 __field( int, idx ) 49 __entry->idx = (dev)->core.index; 54 TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay)
|