Home
last modified time | relevance | path

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

12345678910

/sound/isa/gus/
Dgus_mem_proc.c46 int idx; in snd_gf1_mem_proc_init() local
51 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init()
52 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init()
57 sprintf(name, "gus-ram-%i", idx); in snd_gf1_mem_proc_init()
63 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init()
64 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init()
68 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init()
69 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init()
75 sprintf(name, "gus-rom-%i", idx); in snd_gf1_mem_proc_init()
81 priv->address = idx * 4096 * 1024; in snd_gf1_mem_proc_init()
/sound/pci/ice1712/
Dwtm.c68 int id, idx, change; in stac9460_dac_mute_all() local
74 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all()
76 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all()
77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
81 stac9460_put(ice, idx, new); in stac9460_dac_mute_all()
93 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all()
95 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all()
96 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all()
100 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_all()
119 int idx, id; in stac9460_dac_mute_get() local
[all …]
Dprodigy192.c78 static int stac9460_dac_mute(struct snd_ice1712 *ice, int idx, in stac9460_dac_mute() argument
83 old = stac9460_get(ice, idx); in stac9460_dac_mute()
88 stac9460_put(ice, idx, new); in stac9460_dac_mute()
98 int idx; in stac9460_dac_mute_get() local
101 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get()
103 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
104 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
113 int idx, change; in stac9460_dac_mute_put() local
116 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put()
118 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put()
[all …]
Dmaya44.c160 unsigned int idx = kcontrol->private_value; in maya_vol_info() local
161 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_info()
176 unsigned int idx = kcontrol->private_value; in maya_vol_get() local
179 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get()
180 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get()
191 unsigned int idx = kcontrol->private_value; in maya_vol_put() local
192 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_put()
201 if (val == wm->volumes[idx][ch]) in maya_vol_put()
214 wm->volumes[idx][ch] = val; in maya_vol_put()
224 #define COMPOSE_SW_VAL(idx, reg, mask) ((idx) | ((reg) << 8) | ((mask) << 16)) argument
[all …]
/sound/soc/intel/avs/
Dutils.c49 int idx; in avs_get_module_entry() local
53 idx = avs_module_entry_index(adev, uuid); in avs_get_module_entry()
54 if (idx >= 0) in avs_get_module_entry()
55 memcpy(entry, &adev->mods_info->entries[idx], sizeof(*entry)); in avs_get_module_entry()
58 return (idx < 0) ? idx : 0; in avs_get_module_entry()
63 int idx; in avs_get_module_id_entry() local
67 idx = avs_module_id_entry_index(adev, module_id); in avs_get_module_id_entry()
68 if (idx >= 0) in avs_get_module_id_entry()
69 memcpy(entry, &adev->mods_info->entries[idx], sizeof(*entry)); in avs_get_module_id_entry()
72 return (idx < 0) ? idx : 0; in avs_get_module_id_entry()
[all …]
/sound/isa/msnd/
Dmsnd_pinnacle.c846 static int snd_msnd_isa_probe(struct device *pdev, unsigned int idx) in snd_msnd_isa_probe() argument
852 if (has_isapnp(idx) in snd_msnd_isa_probe()
854 || cfg[idx] == SNDRV_AUTO_PORT in snd_msnd_isa_probe()
861 err = snd_devm_card_new(pdev, index[idx], id[idx], THIS_MODULE, in snd_msnd_isa_probe()
870 switch (irq[idx]) { in snd_msnd_isa_probe()
885 switch (mem[idx]) { in snd_msnd_isa_probe()
901 cfg[idx]); in snd_msnd_isa_probe()
903 if (!devm_request_region(card->dev, cfg[idx], 2, in snd_msnd_isa_probe()
906 cfg[idx]); in snd_msnd_isa_probe()
909 if (reset[idx]) in snd_msnd_isa_probe()
[all …]
/sound/soc/intel/avs/boards/
Dssm4567.c138 int idx; in avs_create_dapm_routes() local
146 idx = num_base; in avs_create_dapm_routes()
147 dr[idx].sink = devm_kasprintf(dev, GFP_KERNEL, "Left Playback"); in avs_create_dapm_routes()
148 dr[idx].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Tx", ssp_port); in avs_create_dapm_routes()
149 if (!dr[idx].sink || !dr[idx].source) in avs_create_dapm_routes()
152 idx++; in avs_create_dapm_routes()
153 dr[idx].sink = devm_kasprintf(dev, GFP_KERNEL, "Right Playback"); in avs_create_dapm_routes()
154 dr[idx].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Tx", ssp_port); in avs_create_dapm_routes()
155 if (!dr[idx].sink || !dr[idx].source) in avs_create_dapm_routes()
158 idx++; in avs_create_dapm_routes()
[all …]
/sound/core/
Dinit.c50 static int module_slot_match(struct module *module, int idx) in module_slot_match() argument
56 if (!module || !*module->name || !slots[idx]) in module_slot_match()
60 s2 = slots[idx]; in module_slot_match()
138 int idx, const char *xid, struct module *module,
163 int snd_card_new(struct device *parent, int idx, const char *xid, in snd_card_new() argument
180 err = snd_card_init(card, parent, idx, xid, module, extra_size); in snd_card_new()
219 int snd_devm_card_new(struct device *parent, int idx, const char *xid, in snd_devm_card_new() argument
232 err = snd_card_init(card, parent, idx, xid, module, extra_size); in snd_devm_card_new()
269 int idx, const char *xid, struct module *module, in snd_card_init() argument
283 if (idx < 0) /* first check the matching module-name slot */ in snd_card_init()
[all …]
/sound/pci/emu10k1/
Demuproc.c176 int idx; in snd_emu10k1_proc_read() local
185 for (idx = 0; idx < NUM_G; idx++) { in snd_emu10k1_proc_read()
187 snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : in snd_emu10k1_proc_read()
188 snd_emu10k1_ptr_read(emu, FXRT, idx); in snd_emu10k1_proc_read()
190 snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : in snd_emu10k1_proc_read()
194 idx, in snd_emu10k1_proc_read()
206 idx, in snd_emu10k1_proc_read()
214 for (idx = 0; idx < nefx; idx++) { in snd_emu10k1_proc_read()
215 if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) in snd_emu10k1_proc_read()
216 snd_iprintf(buffer, " Output %02i [%s]\n", idx, outputs[idx]); in snd_emu10k1_proc_read()
[all …]
Demumixer.c43 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() local
47 if (idx >= 3) in snd_emu10k1_spdif_get()
50 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
51 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
52 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
53 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
1145 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put() local
1151 if (idx >= 3) in snd_emu10k1_spdif_put()
1158 change = val != emu->spdif_bits[idx]; in snd_emu10k1_spdif_put()
1160 snd_emu10k1_ptr_write(emu, SPCS0 + idx, 0, val); in snd_emu10k1_spdif_put()
[all …]
/sound/i2c/other/
Dak4xxx-adda.c605 int idx, err, mixer_ch, num_stereo; in build_dac_controls() local
609 for (idx = 0; idx < ak->num_dacs; ) { in build_dac_controls()
625 AK_COMPOSE(idx/2, 1, 0, 0) | AK_INVERT; in build_dac_controls()
656 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 127) | in build_dac_controls()
663 AK_COMPOSE(idx/2, (idx%2) + 4, 0, 127) | in build_dac_controls()
669 int val = idx < 6 ? idx + 2 : (idx - 6) + 0xb; in build_dac_controls()
677 knew.private_value = AK_COMPOSE(0, idx + 4, 0, 255); in build_dac_controls()
682 int addr = idx < 6 ? idx + 4 : idx + 5; in build_dac_controls()
691 AK_COMPOSE(idx/2, (idx%2) + 3, 0, 255); in build_dac_controls()
697 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 255); in build_dac_controls()
[all …]
/sound/pci/lola/
Dlola.h377 #define lola_readl(chip, idx, name) \ argument
378 readl((chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
379 #define lola_readw(chip, idx, name) \ argument
380 readw((chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
381 #define lola_readb(chip, idx, name) \ argument
382 readb((chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
383 #define lola_writel(chip, idx, name, val) \ argument
384 writel((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
385 #define lola_writew(chip, idx, name, val) \ argument
386 writew((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
[all …]
Dlola_clock.c113 int i, j, nitems, nb_verbs, idx, idx_list; in lola_init_clock_widget() local
139 idx = 0; in lola_init_clock_widget()
146 idx, 0, &val, &res_ex); in lola_init_clock_widget()
188 chip->clock.idx_lookup[idx_list] = idx; in lola_init_clock_widget()
193 if (++idx >= nitems) in lola_init_clock_widget()
220 int lola_set_clock_index(struct lola *chip, unsigned int idx) in lola_set_clock_index() argument
227 chip->clock.idx_lookup[idx], in lola_set_clock_index()
260 int lola_set_clock(struct lola *chip, int idx) in lola_set_clock() argument
265 if (idx == chip->clock.cur_index) { in lola_set_clock()
269 } else if (chip->clock.sample_clock[idx].type == in lola_set_clock()
[all …]
/sound/pci/ctxfi/
Dcthw20k1.c134 unsigned int idx; member
359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument
367 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write()
370 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write()
373 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write()
382 unsigned int pm_idx = src_param_pitch_mixer(idx); in src_commit_write()
389 hw_write_20kx(hw, SRCSA+idx*0x100, ctl->sa); in src_commit_write()
393 hw_write_20kx(hw, SRCLA+idx*0x100, ctl->la); in src_commit_write()
397 hw_write_20kx(hw, SRCCA+idx*0x100, ctl->ca); in src_commit_write()
402 hw_write_20kx(hw, SRCCF+idx*0x100, 0x0); in src_commit_write()
[all …]
Dcthardware.h108 int (*src_commit_write)(struct hw *hw, unsigned int idx, void *blk);
109 int (*src_get_ca)(struct hw *hw, unsigned int idx, void *blk);
115 int (*src_mgr_enbs_src)(void *blk, unsigned int idx);
117 int (*src_mgr_enb_src)(void *blk, unsigned int idx);
119 int (*src_mgr_dsb_src)(void *blk, unsigned int idx);
144 int (*amixer_commit_write)(struct hw *hw, unsigned int idx, void *blk);
157 int (*dai_commit_write)(struct hw *hw, unsigned int idx, void *blk);
161 int (*dao_commit_write)(struct hw *hw, unsigned int idx, void *blk);
166 int (*daio_mgr_enb_dai)(void *blk, unsigned int idx);
167 int (*daio_mgr_dsb_dai)(void *blk, unsigned int idx);
[all …]
Dctamixer.c29 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master()
39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index()
201 err = rsc_init(&amixer->rsc, amixer->idx[0], in amixer_rsc_init()
232 unsigned int idx; in get_amixer_rsc() local
248 err = mgr_get_resource(&mgr->mgr, 1, &idx); in get_amixer_rsc()
252 amixer->idx[i] = idx; in get_amixer_rsc()
272 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc()
286 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in put_amixer_rsc()
336 rsc->idx = container_of(rsc, struct sum, rsc)->idx[0]; in sum_master()
346 return container_of(rsc, struct sum, rsc)->idx[rsc->conj]; in sum_index()
[all …]
Dcthw20k2.c134 unsigned int idx; member
359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument
367 hw_write_20kx(hw, SRC_UPZ+idx*0x100+i*0x4, 0); in src_commit_write()
370 hw_write_20kx(hw, SRC_DN0Z+idx*0x100+i*0x4, 0); in src_commit_write()
373 hw_write_20kx(hw, SRC_DN1Z+idx*0x100+i*0x4, 0); in src_commit_write()
382 unsigned int pm_idx = src_param_pitch_mixer(idx); in src_commit_write()
389 hw_write_20kx(hw, SRC_SA+idx*0x100, ctl->sa); in src_commit_write()
393 hw_write_20kx(hw, SRC_LA+idx*0x100, ctl->la); in src_commit_write()
397 hw_write_20kx(hw, SRC_CA+idx*0x100, ctl->ca); in src_commit_write()
402 hw_write_20kx(hw, SRC_CF+idx*0x100, 0x0); in src_commit_write()
[all …]
Dctresource.c58 static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx) in put_resource() argument
63 for (n = multi, i = idx; n > 0; n--) { in put_resource()
87 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument
89 put_resource(mgr->rscs, n, idx); in mgr_put_resource()
122 rsc->conj = rsc->idx; in rsc_master()
133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument
137 rsc->idx = idx; in rsc_init()
138 rsc->conj = idx; in rsc_init()
197 rsc->idx = rsc->conj = 0; in rsc_uninit()
/sound/aoa/codecs/
Dtas-basstreble.h92 static inline u8 tas3004_treble(int idx) in tas3004_treble() argument
94 return tas3004_treble_table[idx]; in tas3004_treble()
128 static inline u8 tas3004_bass(int idx) in tas3004_bass() argument
130 u8 result = tas3004_treble_table[idx]; in tas3004_bass()
132 if (idx >= 50) in tas3004_bass()
133 result += tas3004_bass_diff_to_treble[idx-50]; in tas3004_bass()
/sound/pci/
Dak4531_codec.c33 int idx;
35 for (idx = 0; idx < 0x19; idx++)
37 idx, ak4531->regs[idx]);
371 unsigned int idx; in snd_ak4531_mixer() local
396 for (idx = 0; idx <= 0x19; idx++) { in snd_ak4531_mixer()
397 if (idx == AK4531_RESET || idx == AK4531_CLOCK) in snd_ak4531_mixer()
399 …ak4531->write(ak4531, idx, ak4531->regs[idx] = snd_ak4531_initial_map[idx]); /* recording source i… in snd_ak4531_mixer()
401 for (idx = 0; idx < ARRAY_SIZE(snd_ak4531_controls); idx++) { in snd_ak4531_mixer()
402 err = snd_ctl_add(card, snd_ctl_new1(&snd_ak4531_controls[idx], ak4531)); in snd_ak4531_mixer()
438 int idx; in snd_ak4531_resume() local
[all …]
/sound/
Dlast.c13 int idx, ok = 0; in alsa_sound_last_init() local
16 for (idx = 0; idx < SNDRV_CARDS; idx++) { in alsa_sound_last_init()
17 card = snd_card_ref(idx); in alsa_sound_last_init()
19 printk(KERN_INFO " #%i: %s\n", idx, card->longname); in alsa_sound_last_init()
/sound/pci/mixart/
Dmixart_mixer.c710 int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int idx) in mixart_update_playback_stream_level() argument
721 set_level.stream_level.desc.stream_idx = idx; in mixart_update_playback_stream_level()
725 idx += MIXART_PLAYBACK_STREAMS; in mixart_update_playback_stream_level()
737 if(chip->digital_playback_active[idx][i]) in mixart_update_playback_stream_level()
738 volume[i] = chip->digital_playback_volume[idx][i]; in mixart_update_playback_stream_level()
764 int err, i, idx; in mixart_update_capture_stream_level() local
771 idx = 1; in mixart_update_capture_stream_level()
774 idx = 0; in mixart_update_capture_stream_level()
789 set_level.level[i].digital_level = mixart_digital_level[chip->digital_capture_volume[idx][i]]; in mixart_update_capture_stream_level()
824 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_get() local
[all …]
/sound/pci/asihpi/
Dhpioctl.c349 int idx, nm, low_latency_mode = 0, irq_supported = 0; in asihpi_adapter_probe() local
381 for (idx = 0; idx < nm; idx++) { in asihpi_adapter_probe()
382 HPI_DEBUG_LOG(INFO, "resource %d %pR\n", idx, in asihpi_adapter_probe()
383 &pci_dev->resource[idx]); in asihpi_adapter_probe()
385 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { in asihpi_adapter_probe()
386 memlen = pci_resource_len(pci_dev, idx); in asihpi_adapter_probe()
387 pci.ap_mem_base[idx] = in asihpi_adapter_probe()
388 ioremap(pci_resource_start(pci_dev, idx), in asihpi_adapter_probe()
390 if (!pci.ap_mem_base[idx]) { in asihpi_adapter_probe()
512 while (--idx >= 0) { in asihpi_adapter_probe()
[all …]
/sound/core/oss/
Dmixer_oss.c827 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
897 for (idx = 0; idx < 32; idx++) { in snd_mixer_oss_put_recsrc2()
898 if (!(mixer->mask_recsrc & (1 << idx))) in snd_mixer_oss_put_recsrc2()
900 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2()
906 if (idx == active_index) in snd_mixer_oss_put_recsrc2()
[all …]
/sound/pci/hda/
Dhda_generic.c291 ssize_t idx; in snd_hda_get_path_idx() local
295 idx = path - array; in snd_hda_get_path_idx()
296 if (idx < 0 || idx >= spec->paths.used) in snd_hda_get_path_idx()
298 return idx + 1; in snd_hda_get_path_idx()
308 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx() argument
312 if (idx <= 0 || idx > spec->paths.used) in snd_hda_get_path_from_idx()
314 return snd_array_elem(&spec->paths, idx - 1); in snd_hda_get_path_from_idx()
361 int dir, int idx, int type) in is_ctl_associated() argument
363 unsigned int val = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir); in is_ctl_associated()
428 path->idx[path->depth + 1] = i; in __parse_nid_path()
[all …]

12345678910