Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 126) sorted by relevance

123456

/sound/core/
Dinit.c52 static int module_slot_match(struct module *module, int idx) in module_slot_match() argument
58 if (!module || !module->name || !slots[idx]) in module_slot_match()
62 s2 = slots[idx]; in module_slot_match()
135 struct snd_card *snd_card_new(int idx, const char *xid, in snd_card_new() argument
153 if (idx < 0) { in snd_card_new()
156 if (~snd_cards_lock & idx & 1<<idx2) { in snd_card_new()
158 idx = idx2; in snd_card_new()
163 if (idx < 0) { in snd_card_new()
166 if (~snd_cards_lock & idx & 1<<idx2) { in snd_card_new()
168 idx = idx2; in snd_card_new()
[all …]
Dinfo_oss.c72 int idx, ok = -1; in snd_sndstat_show_strings() local
77 for (idx = 0; idx < SNDRV_CARDS; idx++) { in snd_sndstat_show_strings()
78 str = snd_sndstat_strings[idx][dev]; in snd_sndstat_show_strings()
84 snd_iprintf(buf, "%i: %s\n", idx, str); in snd_sndstat_show_strings()
/sound/pci/ice1712/
Dwtm.c80 int idx, id; in stac9460_dac_mute_get() local
83 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get()
87 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
90 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
92 val = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_get()
102 int id, idx; in stac9460_dac_mute_put() local
106 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put()
107 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
112 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
113 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_put()
[all …]
Dprodigy192.c93 static int stac9460_dac_mute(struct snd_ice1712 *ice, int idx, in stac9460_dac_mute() argument
98 old = stac9460_get(ice, idx); in stac9460_dac_mute()
103 stac9460_put(ice, idx, new); in stac9460_dac_mute()
113 int idx; in stac9460_dac_mute_get() local
116 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get()
118 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
119 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
128 int idx, change; in stac9460_dac_mute_put() local
131 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put()
133 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put()
[all …]
Dice1712.c457 u32 idx; in snd_ice1712_interrupt() local
462 for (idx = 0; idx < 6; idx++) { in snd_ice1712_interrupt()
463 if ((pbkstatus & (3 << (idx * 2))) == 0) in snd_ice1712_interrupt()
465 substream = ice->playback_con_substream_ds[idx]; in snd_ice1712_interrupt()
468 outw(3 << (idx * 2), ICEDS(ice, INTSTAT)); in snd_ice1712_interrupt()
1440 unsigned int idx; in snd_ice1712_build_pro_mixer() local
1444 for (idx = 0; idx < ARRAY_SIZE(snd_ice1712_multi_playback_ctrls); idx++) { in snd_ice1712_build_pro_mixer()
1445 err = snd_ctl_add(card, snd_ctl_new1(&snd_ice1712_multi_playback_ctrls[idx], ice)); in snd_ice1712_build_pro_mixer()
1475 for (idx = 0; idx < 10; idx++) { in snd_ice1712_build_pro_mixer()
1476 ice->pro_volumes[idx] = 0x80008000; /* mute */ in snd_ice1712_build_pro_mixer()
[all …]
/sound/isa/gus/
Dgus_mem_proc.c93 int idx; in snd_gf1_mem_proc_init() local
98 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init()
99 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init()
104 sprintf(name, "gus-ram-%i", idx); in snd_gf1_mem_proc_init()
110 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init()
111 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init()
115 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init()
116 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init()
122 sprintf(name, "gus-rom-%i", idx); in snd_gf1_mem_proc_init()
128 priv->address = idx * 4096 * 1024; in snd_gf1_mem_proc_init()
Dgus_mixer.c161 unsigned int idx, max; in snd_gf1_new_mixer() local
182 for (idx = 0; idx < max; idx++) { in snd_gf1_new_mixer()
183 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_gf1_controls[idx], gus))) < 0) in snd_gf1_new_mixer()
187 for (idx = 0; idx < ARRAY_SIZE(snd_ics_controls); idx++) { in snd_gf1_new_mixer()
188 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ics_controls[idx], gus))) < 0) in snd_gf1_new_mixer()
Dgus_irq.c120 int idx; in snd_gus_irq_info_read() local
130 for (idx = 0; idx < 32; idx++) { in snd_gus_irq_info_read()
131 pvoice = &gus->gf1.voices[idx]; in snd_gus_irq_info_read()
133 idx, in snd_gus_irq_info_read()
Dgus_mem.c140 unsigned int idx, boundary; in snd_gf1_mem_find() local
154 for (pblock = alloc->first, idx = 0; pblock; pblock = pblock->next) { in snd_gf1_mem_find()
155 while (pblock->ptr >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
156 idx++; in snd_gf1_mem_find()
157 while (pblock->ptr + pblock->size >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
158 idx++; in snd_gf1_mem_find()
176 while (++idx < 4) { in snd_gf1_mem_find()
177 if (size <= info[idx].size) { in snd_gf1_mem_find()
179 block->ptr = info[idx].address; in snd_gf1_mem_find()
/sound/pci/emu10k1/
Demuproc.c191 int idx; in snd_emu10k1_proc_read() local
200 for (idx = 0; idx < NUM_G; idx++) { in snd_emu10k1_proc_read()
202 snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : in snd_emu10k1_proc_read()
203 snd_emu10k1_ptr_read(emu, FXRT, idx); in snd_emu10k1_proc_read()
205 snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : in snd_emu10k1_proc_read()
209 idx, in snd_emu10k1_proc_read()
221 idx, in snd_emu10k1_proc_read()
229 for (idx = 0; idx < nefx; idx++) { in snd_emu10k1_proc_read()
230 if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) in snd_emu10k1_proc_read()
231 snd_iprintf(buffer, " Output %02i [%s]\n", idx, outputs[idx]); in snd_emu10k1_proc_read()
[all …]
Demumixer.c57 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()
1088 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put() local
1094 if (idx >= 3) in snd_emu10k1_spdif_put()
1101 change = val != emu->spdif_bits[idx]; in snd_emu10k1_spdif_put()
1103 snd_emu10k1_ptr_write(emu, SPCS0 + idx, 0, val); in snd_emu10k1_spdif_put()
[all …]
Demupcm.c588 int idx; in snd_emu10k1_capture_prepare() local
609 for (idx = 0; idx < 31; idx++) { in snd_emu10k1_capture_prepare()
610 if (capture_period_sizes[idx] == epcm->capture_bufsize) { in snd_emu10k1_capture_prepare()
611 epcm->capture_bs_val = idx + 1; in snd_emu10k1_capture_prepare()
1007 …mu10k1_pcm_mixer_notify1(struct snd_emu10k1 *emu, struct snd_kcontrol *kctl, int idx, int activate) in snd_emu10k1_pcm_mixer_notify1() argument
1014 kctl->vd[idx].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_emu10k1_pcm_mixer_notify1()
1016 kctl->vd[idx].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_emu10k1_pcm_mixer_notify1()
1019 snd_ctl_build_ioff(&id, kctl, idx)); in snd_emu10k1_pcm_mixer_notify1()
1022 static void snd_emu10k1_pcm_mixer_notify(struct snd_emu10k1 *emu, int idx, int activate) in snd_emu10k1_pcm_mixer_notify() argument
1024 snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_send_routing, idx, activate); in snd_emu10k1_pcm_mixer_notify()
[all …]
/sound/i2c/other/
Dak4xxx-adda.c541 int num_names, idx; in ak4xxx_capture_source_info() local
549 idx = uinfo->value.enumerated.item; in ak4xxx_capture_source_info()
550 if (idx >= num_names) in ak4xxx_capture_source_info()
553 strncpy(uinfo->value.enumerated.name, input_names[idx], in ak4xxx_capture_source_info()
602 int idx, err, mixer_ch, num_stereo; in build_dac_controls() local
606 for (idx = 0; idx < ak->num_dacs; ) { in build_dac_controls()
622 AK_COMPOSE(idx/2, 1, 0, 0) | AK_INVERT; in build_dac_controls()
653 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 127) | in build_dac_controls()
660 AK_COMPOSE(idx/2, (idx%2) + 4, 0, 127) | in build_dac_controls()
666 int val = idx < 6 ? idx + 2 : (idx - 6) + 0xb; in build_dac_controls()
[all …]
/sound/
Dlast.c28 int idx, ok = 0; in alsa_sound_last_init() local
31 for (idx = 0; idx < SNDRV_CARDS; idx++) in alsa_sound_last_init()
32 if (snd_cards[idx] != NULL) { in alsa_sound_last_init()
33 printk(KERN_INFO " #%i: %s\n", idx, snd_cards[idx]->longname); in alsa_sound_last_init()
/sound/pci/
Dak4531_codec.c51 int idx;
53 for (idx = 0; idx < 0x19; idx++)
54 printk("ak4531 0x%x: 0x%x\n", idx, ak4531->regs[idx]);
388 unsigned int idx; in snd_ak4531_mixer() local
412 for (idx = 0; idx <= 0x19; idx++) { in snd_ak4531_mixer()
413 if (idx == AK4531_RESET || idx == AK4531_CLOCK) in snd_ak4531_mixer()
415 …ak4531->write(ak4531, idx, ak4531->regs[idx] = snd_ak4531_initial_map[idx]); /* recording source i… in snd_ak4531_mixer()
417 for (idx = 0; idx < ARRAY_SIZE(snd_ak4531_controls); idx++) { in snd_ak4531_mixer()
418 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ak4531_controls[idx], ak4531))) < 0) { in snd_ak4531_mixer()
452 int idx; in snd_ak4531_resume() local
[all …]
Dvia82xx_modem.c282 unsigned int i, idx, ofs, rest; in build_via_table() local
301 idx = 0; in build_via_table()
314 if (idx >= VIA_TABLE_SIZE) { in build_via_table()
319 ((u32 *)dev->table.area)[idx << 1] = cpu_to_le32(addr); in build_via_table()
332 ((u32 *)dev->table.area)[(idx<<1) + 1] = cpu_to_le32(r | flag); in build_via_table()
333 dev->idx_table[idx].offset = ofs; in build_via_table()
334 dev->idx_table[idx].size = r; in build_via_table()
336 idx++; in build_via_table()
339 dev->tbl_entries = idx; in build_via_table()
560 static inline unsigned int calc_linear_pos(struct viadev *viadev, unsigned int idx, in calc_linear_pos() argument
[all …]
Dvia82xx.c422 unsigned int i, idx, ofs, rest; in build_via_table() local
441 idx = 0; in build_via_table()
454 if (idx >= VIA_TABLE_SIZE) { in build_via_table()
459 ((u32 *)dev->table.area)[idx << 1] = cpu_to_le32(addr); in build_via_table()
470 ((u32 *)dev->table.area)[(idx<<1) + 1] = cpu_to_le32(r | flag); in build_via_table()
471 dev->idx_table[idx].offset = ofs; in build_via_table()
472 dev->idx_table[idx].size = r; in build_via_table()
474 idx++; in build_via_table()
477 dev->tbl_entries = idx; in build_via_table()
769 static inline unsigned int calc_linear_pos(struct viadev *viadev, unsigned int idx, in calc_linear_pos() argument
[all …]
/sound/aoa/codecs/
Dtas-basstreble.h91 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/core/oss/
Dmixer_oss.c781 int err, idx; in snd_mixer_oss_get_recsrc2() local
799 for (idx = 0; idx < 32; idx++) { in snd_mixer_oss_get_recsrc2()
800 if (!(mixer->mask_recsrc & (1 << idx))) in snd_mixer_oss_get_recsrc2()
802 pslot = &mixer->slots[idx]; in snd_mixer_oss_get_recsrc2()
809 *active_index = idx; in snd_mixer_oss_get_recsrc2()
831 unsigned int idx; in snd_mixer_oss_put_recsrc2() local
847 for (idx = 0; idx < 32; idx++) { in snd_mixer_oss_put_recsrc2()
848 if (!(mixer->mask_recsrc & (1 << idx))) in snd_mixer_oss_put_recsrc2()
850 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2()
856 if (idx == active_index) in snd_mixer_oss_put_recsrc2()
[all …]
/sound/pci/mixart/
Dmixart_mixer.c721 int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int idx) in mixart_update_playback_stream_level() argument
732 set_level.stream_level.desc.stream_idx = idx; in mixart_update_playback_stream_level()
736 idx += MIXART_PLAYBACK_STREAMS; in mixart_update_playback_stream_level()
748 if(chip->digital_playback_active[idx][i]) in mixart_update_playback_stream_level()
749 volume[i] = chip->digital_playback_volume[idx][i]; in mixart_update_playback_stream_level()
773 int err, i, idx; in mixart_update_capture_stream_level() local
780 idx = 1; in mixart_update_capture_stream_level()
783 idx = 0; in mixart_update_capture_stream_level()
798 set_level.level[i].digital_level = mixart_digital_level[chip->digital_capture_volume[idx][i]]; in mixart_update_capture_stream_level()
831 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_get() local
[all …]
/sound/pci/ac97/
Dac97_proc.c348 int idx; in snd_ac97_proc_read() local
349 for (idx = 0; idx < 3; idx++) in snd_ac97_proc_read()
350 if (ac97->spec.ad18xx.id[idx]) { in snd_ac97_proc_read()
353 ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]); in snd_ac97_proc_read()
354 snd_ac97_proc_read_main(ac97, buffer, idx); in snd_ac97_proc_read()
412 int idx; in snd_ac97_proc_regs_read() local
413 for (idx = 0; idx < 3; idx++) in snd_ac97_proc_regs_read()
414 if (ac97->spec.ad18xx.id[idx]) { in snd_ac97_proc_regs_read()
417 ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]); in snd_ac97_proc_regs_read()
418 snd_ac97_proc_regs_read_main(ac97, buffer, idx); in snd_ac97_proc_regs_read()
/sound/core/seq/
Dseq_midi_event.c452 int idx = 0; in extra_decode_ctrl14() local
463 buf[idx++] = dev->lastcmd = cmd; in extra_decode_ctrl14()
465 buf[idx++] = ev->data.control.param; in extra_decode_ctrl14()
466 buf[idx++] = (ev->data.control.value >> 7) & 0x7f; in extra_decode_ctrl14()
468 buf[idx++] = cmd; in extra_decode_ctrl14()
469 buf[idx++] = ev->data.control.param + 0x20; in extra_decode_ctrl14()
470 buf[idx++] = ev->data.control.value & 0x7f; in extra_decode_ctrl14()
477 buf[idx++] = dev->lastcmd = cmd; in extra_decode_ctrl14()
479 buf[idx++] = ev->data.control.param & 0x7f; in extra_decode_ctrl14()
480 buf[idx++] = ev->data.control.value & 0x7f; in extra_decode_ctrl14()
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c304 int idx; in snd_cs4236_create()
305 for (idx = 0; idx < 8; idx++) in snd_cs4236_create()
306 snd_printk("CD%i = 0x%x\n", idx, inb(chip->cport + idx)); in snd_cs4236_create()
307 for (idx = 0; idx < 9; idx++) in snd_cs4236_create()
308 snd_printk("C%i = 0x%x\n", idx, snd_cs4236_ctrl_in(chip, idx)); in snd_cs4236_create()
966 unsigned int idx, count; in snd_cs4236_mixer() local
977 for (idx = 0; idx < ARRAY_SIZE(snd_cs4235_controls); idx++) { in snd_cs4236_mixer()
978 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4235_controls[idx], chip))) < 0) in snd_cs4236_mixer()
982 for (idx = 0; idx < ARRAY_SIZE(snd_cs4236_controls); idx++) { in snd_cs4236_mixer()
983 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4236_controls[idx], chip))) < 0) in snd_cs4236_mixer()
[all …]
/sound/drivers/
Dvirmidi.c90 int idx, err; in snd_virmidi_probe() local
104 for (idx = 0; idx < midi_devs[dev]; idx++) { in snd_virmidi_probe()
107 if ((err = snd_virmidi_new(card, idx, &rmidi)) < 0) in snd_virmidi_probe()
110 vmidi->midi[idx] = rmidi; in snd_virmidi_probe()
/sound/isa/
Dcmi8330.c265 int idx, err; in cmi8330_add_sb_mixers() local
273 for (idx = 0; idx < ARRAY_SIZE(cmi8330_sb_init_values); idx++) { in cmi8330_add_sb_mixers()
275 snd_sbmixer_write(chip, cmi8330_sb_init_values[idx][0], in cmi8330_add_sb_mixers()
276 cmi8330_sb_init_values[idx][1]); in cmi8330_add_sb_mixers()
280 for (idx = 0; idx < ARRAY_SIZE(cmi8330_sb_mixers); idx++) { in cmi8330_add_sb_mixers()
281 if ((err = snd_sbmixer_add_ctl_elem(chip, &cmi8330_sb_mixers[idx])) < 0) in cmi8330_add_sb_mixers()
290 unsigned int idx; in snd_cmi8330_mixer() local
295 for (idx = 0; idx < ARRAY_SIZE(snd_cmi8330_controls); idx++) { in snd_cmi8330_mixer()
297 snd_ctl_new1(&snd_cmi8330_controls[idx], in snd_cmi8330_mixer()

123456