Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 257) sorted by relevance

1234567891011

/sound/soc/fsl/
Dfsl_asrc.c28 dev_err(&asrc_priv->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
31 dev_dbg(&asrc_priv->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
95 enum asrc_pair_index index = ASRC_INVALID_PAIR; in fsl_asrc_request_pair() local
107 index = i; in fsl_asrc_request_pair()
113 if (index == ASRC_INVALID_PAIR) { in fsl_asrc_request_pair()
121 asrc_priv->pair[index] = pair; in fsl_asrc_request_pair()
123 pair->index = index; in fsl_asrc_request_pair()
139 enum asrc_pair_index index = pair->index; in fsl_asrc_release_pair() local
144 ASRCTR_ASRCEi_MASK(index), 0); in fsl_asrc_release_pair()
149 asrc_priv->pair[index] = NULL; in fsl_asrc_release_pair()
[all …]
Dfsl_spdif.c1054 enum spdif_txrate index, bool round) in fsl_spdif_txclk_caldiv() argument
1068 rate_ideal = rate[index] * (txclk_df + 1) * 64; in fsl_spdif_txclk_caldiv()
1077 if (arate == rate[index]) { in fsl_spdif_txclk_caldiv()
1080 spdif_priv->txclk_df[index] = txclk_df; in fsl_spdif_txclk_caldiv()
1081 spdif_priv->sysclk_df[index] = sysclk_df; in fsl_spdif_txclk_caldiv()
1082 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv()
1084 } else if (arate / rate[index] == 1) { in fsl_spdif_txclk_caldiv()
1086 sub = (u64)(arate - rate[index]) * 100000; in fsl_spdif_txclk_caldiv()
1087 do_div(sub, rate[index]); in fsl_spdif_txclk_caldiv()
1091 spdif_priv->txclk_df[index] = txclk_df; in fsl_spdif_txclk_caldiv()
[all …]
/sound/pci/echoaudio/
Dechoaudio_dsp.c230 int index, words, i; in install_resident_loader() local
272 index = code[0]; in install_resident_loader()
275 index += 3; in install_resident_loader()
278 words = code[index++]; in install_resident_loader()
281 address = ((u32)code[index] << 16) + code[index + 1]; in install_resident_loader()
282 index += 2; in install_resident_loader()
298 data = ((u32)code[index] << 16) + code[index + 1]; in install_resident_loader()
303 index += 2; in install_resident_loader()
334 int index, words, i; in load_dsp() local
379 index = code[0]; in load_dsp()
[all …]
/sound/pci/oxygen/
Doxygen_io.c130 unsigned int index, u16 data) in oxygen_write_ac97() argument
136 reg |= index << OXYGEN_AC97_REG_ADDR_SHIFT; in oxygen_write_ac97()
146 chip->saved_ac97_registers[codec][index / 2] = data; in oxygen_write_ac97()
155 unsigned int index) in oxygen_read_ac97() argument
161 reg = index << OXYGEN_AC97_REG_ADDR_SHIFT; in oxygen_read_ac97()
188 unsigned int index, u16 data, u16 mask) in oxygen_write_ac97_masked() argument
190 u16 value = oxygen_read_ac97(chip, codec, index); in oxygen_write_ac97_masked()
193 oxygen_write_ac97(chip, codec, index, value); in oxygen_write_ac97_masked()
263 u16 oxygen_read_eeprom(struct oxygen *chip, unsigned int index) in oxygen_read_eeprom() argument
268 index | OXYGEN_EEPROM_DIR_READ); in oxygen_read_eeprom()
[all …]
Doxygen.h156 int oxygen_pci_probe(struct pci_dev *pci, int index, char *id,
195 unsigned int index);
197 unsigned int index, u16 data);
199 unsigned int index, u16 data, u16 mask);
207 u16 oxygen_read_eeprom(struct oxygen *chip, unsigned int index);
208 void oxygen_write_eeprom(struct oxygen *chip, unsigned int index, u16 value);
247 unsigned int index, u16 value) in oxygen_ac97_set_bits() argument
249 oxygen_write_ac97_masked(chip, codec, index, value, value); in oxygen_ac97_set_bits()
254 unsigned int index, u16 value) in oxygen_ac97_clear_bits() argument
256 oxygen_write_ac97_masked(chip, codec, index, 0, value); in oxygen_ac97_clear_bits()
Dvirtuoso.c33 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; variable
37 module_param_array(index, int, NULL, 0444);
38 MODULE_PARM_DESC(index, "card index");
87 err = oxygen_pci_probe(pci, index[dev], id[dev], THIS_MODULE, in xonar_probe()
Doxygen_mixer.c521 unsigned int index = ctl->private_value & 0xff; in ac97_switch_get() local
527 reg = oxygen_read_ac97(chip, codec, index); in ac97_switch_get()
559 unsigned int index = ctl->private_value & 0xff; in ac97_switch_put() local
566 oldreg = oxygen_read_ac97(chip, codec, index); in ac97_switch_put()
574 oxygen_write_ac97(chip, codec, index, newreg); in ac97_switch_put()
576 chip->model.ac97_switch(chip, index, newreg & 0x8000); in ac97_switch_put()
577 if (index == AC97_LINE) { in ac97_switch_put()
586 } else if ((index == AC97_MIC || index == AC97_CD || in ac97_switch_put()
587 index == AC97_VIDEO || index == AC97_AUX) && in ac97_switch_put()
616 unsigned int index = ctl->private_value & 0xff; in ac97_volume_get() local
[all …]
/sound/ppc/
Dawacs.c202 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = 0, \
253 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = 0, \
293 static int awacs_amp_set_vol(struct awacs_amp *amp, int index, in awacs_amp_set_vol() argument
296 if (do_check && amp->amp_vol[index][0] == lvol && in awacs_amp_set_vol()
297 amp->amp_vol[index][1] == rvol) in awacs_amp_set_vol()
299 awacs_set_cuda(3 + index, lvol); in awacs_amp_set_vol()
300 awacs_set_cuda(5 + index, rvol); in awacs_amp_set_vol()
301 amp->amp_vol[index][0] = lvol; in awacs_amp_set_vol()
302 amp->amp_vol[index][1] = rvol; in awacs_amp_set_vol()
347 int index = kcontrol->private_value; in snd_pmac_awacs_get_volume_amp() local
[all …]
/sound/pci/asihpi/
Dhpi.h1142 u16 index; /**< GPIO bit index. */ member
1216 u16 hpi_adapter_enumerate_property(u16 adapter_index, u16 index,
1339 u16 index);
1409 u16 hpi_channel_mode_query_mode(const u32 h_mode, const u32 index,
1419 u16 hpi_tuner_query_band(const u32 h_tuner, const u32 index, u16 *pw_band);
1425 u16 hpi_tuner_query_frequency(const u32 h_tuner, const u32 index,
1436 u16 hpi_tuner_query_gain(const u32 h_tuner, const u32 index, u16 *pw_gain);
1450 u16 hpi_tuner_query_deemphasis(const u32 h_tuner, const u32 index,
1500 u16 hpi_aesebu_receiver_query_format(const u32 h_aes_rx, const u32 index,
1509 u16 hpi_aesebu_receiver_get_user_data(u32 h_control, u16 index, u16 *pw_data);
[all …]
Dhpicmn.c75 if (pao->index >= HPI_MAX_ADAPTERS) { in hpi_add_adapter()
80 if (adapters.adapter[pao->index].type) { in hpi_add_adapter()
86 pao->type, pao->index, a); in hpi_add_adapter()
87 pao->index = a; in hpi_add_adapter()
96 adapters.adapter[pao->index] = *pao; in hpi_add_adapter()
97 hpios_dsplock_init(&adapters.adapter[pao->index]); in hpi_add_adapter()
113 if (adapters.adapter[pao->index].type) in hpi_delete_adapter()
115 memset(&adapters.adapter[pao->index], 0, sizeof(adapters.adapter[0])); in hpi_delete_adapter()
164 u16 index = 0; in subsys_get_adapter() local
167 for (index = 0; index < HPI_MAX_ADAPTERS; index++) { in subsys_get_adapter()
[all …]
Dhpifunc.c225 hm.u.ax.module_info.index = module_index; in hpi_adapter_get_module_by_index()
277 u16 hpi_adapter_enumerate_property(u16 adapter_index, u16 index, in hpi_adapter_enumerate_property() argument
1293 u16 index) in hpi_mixer_store() argument
1301 hm.u.mx.store.index = index; in hpi_mixer_store()
1388 u16 hpi_control_query(const u32 h_control, const u16 attrib, const u32 index, in hpi_control_query() argument
1400 hm.u.c.param1 = index; in hpi_control_query()
1468 u16 hpi_aesebu_receiver_query_format(const u32 h_aes_rx, const u32 index, in hpi_aesebu_receiver_query_format() argument
1474 err = hpi_control_query(h_aes_rx, HPI_AESEBURX_FORMAT, index, 0, &qr); in hpi_aesebu_receiver_query_format()
1503 u16 hpi_aesebu_receiver_get_user_data(u32 h_control, u16 index, u16 *pw_data) in hpi_aesebu_receiver_get_user_data() argument
1512 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_user_data()
[all …]
/sound/drivers/vx/
Dvx_uer.c61 static int vx_read_one_cbit(struct vx_core *chip, int index) in vx_read_one_cbit() argument
68 vx_outb(chip, RUER, index & XX_UER_CBITS_OFFSET_MASK); in vx_read_one_cbit()
72 vx_outl(chip, RUER, index & XX_UER_CBITS_OFFSET_MASK); in vx_read_one_cbit()
84 static void vx_write_one_cbit(struct vx_core *chip, int index, int val) in vx_write_one_cbit() argument
90 vx_outb(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK)); in vx_write_one_cbit()
93 vx_outl(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK)); in vx_write_one_cbit()
/sound/aoa/core/
Dalsa.c11 static int index = -1; variable
12 module_param(index, int, 0444);
13 MODULE_PARM_DESC(index, "index for AOA sound card.");
26 err = snd_card_new(dev, index, name, mod, sizeof(struct aoa_card), in aoa_alsa_init()
/sound/core/seq/oss/
Dseq_oss_synth.c154 int index; in snd_seq_oss_synth_unregister() local
159 for (index = 0; index < max_synth_devs; index++) { in snd_seq_oss_synth_unregister()
160 if (synth_devs[index] == rec) in snd_seq_oss_synth_unregister()
163 if (index >= max_synth_devs) { in snd_seq_oss_synth_unregister()
168 synth_devs[index] = NULL; in snd_seq_oss_synth_unregister()
169 if (index == max_synth_devs - 1) { in snd_seq_oss_synth_unregister()
170 for (index--; index >= 0; index--) { in snd_seq_oss_synth_unregister()
171 if (synth_devs[index]) in snd_seq_oss_synth_unregister()
174 max_synth_devs = index + 1; in snd_seq_oss_synth_unregister()
/sound/soc/davinci/
Ddavinci-evm.c450 int index; in evm_init() local
464 index = 0; in evm_init()
467 index = 1; in evm_init()
470 index = 0; in evm_init()
473 index = 0; in evm_init()
476 index = 1; in evm_init()
479 index = 0; in evm_init()
483 evm_snd_device = platform_device_alloc("soc-audio", index); in evm_init()
/sound/pcmcia/pdaudiocf/
Dpdaudiocf.c40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ variable
44 module_param_array(index, int, NULL, 0444);
45 MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard.");
77 card_list[pdacf->index] = NULL; in snd_pdacf_free()
116 err = snd_card_new(&link->dev, index[i], id[i], THIS_MODULE, in snd_pdacf_probe()
136 pdacf->index = i; in snd_pdacf_probe()
/sound/soc/intel/
Dsst-haswell-dsp.c349 u32 bit = 0, shift = 0, index; in hsw_block_get_bit() local
352 for (index = 0; index < ARRAY_SIZE(sram_shift); index++) { in hsw_block_get_bit()
353 if (sram_shift[index].dev_id == sst->id) in hsw_block_get_bit()
357 if (index < ARRAY_SIZE(sram_shift)) { in hsw_block_get_bit()
360 shift = sram_shift[index].dram_shift; in hsw_block_get_bit()
363 shift = sram_shift[index].iram_shift; in hsw_block_get_bit()
371 bit = 1 << (block->index + shift); in hsw_block_get_bit()
397 block->type, block->index, block->offset); in hsw_block_enable()
421 block->type, block->index, block->offset); in hsw_block_disable()
/sound/pci/cs46xx/
Ddsp_spos.c139 int index = ins->symbol_table.nsymbols,i; in find_free_symbol_index() local
143 index = i; in find_free_symbol_index()
148 return index; in find_free_symbol_index()
201 int index; in add_symbol() local
216 index = find_free_symbol_index (ins); in add_symbol()
218 strcpy (ins->symbol_table.symbols[index].symbol_name, symbol_name); in add_symbol()
219 ins->symbol_table.symbols[index].address = address; in add_symbol()
220 ins->symbol_table.symbols[index].symbol_type = type; in add_symbol()
221 ins->symbol_table.symbols[index].module = NULL; in add_symbol()
222 ins->symbol_table.symbols[index].deleted = 0; in add_symbol()
[all …]
Dcs46xx.c47 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ variable
54 module_param_array(index, int, NULL, 0444);
55 MODULE_PARM_DESC(index, "Index value for the CS46xx soundcard.");
91 err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, in snd_card_cs46xx_probe()
/sound/isa/
Dadlib.c19 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; variable
24 module_param_array(index, int, NULL, 0444);
25 MODULE_PARM_DESC(index, "Index value for " CRD_NAME " soundcard.");
56 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_adlib_probe()
/sound/pci/ctxfi/
Dctamixer.c55 .index = amixer_index,
107 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum()
116 unsigned int index; in amixer_commit_write() local
142 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write()
145 index = amixer->rsc.ops->output_slot(&amixer->rsc); in amixer_commit_write()
146 hw->amixer_commit_write(hw, index, amixer->rsc.ctrl_blk); in amixer_commit_write()
162 unsigned int index; in amixer_commit_raw_write() local
165 index = amixer->rsc.ops->output_slot(&amixer->rsc); in amixer_commit_raw_write()
166 hw->amixer_commit_write(hw, index, amixer->rsc.ctrl_blk); in amixer_commit_raw_write()
363 .index = sum_index,
/sound/atmel/
Dabdac.c354 int index = 0; in set_sample_rates() local
357 while (new_rate >= RATE_MIN && index < (MAX_NUM_RATES + 1)) { in set_sample_rates()
362 if (index < MAX_NUM_RATES && in set_sample_rates()
364 dac->rates[index] = new_rate / 256; in set_sample_rates()
365 index++; in set_sample_rates()
371 if (index) { in set_sample_rates()
375 for (i = 0; i < (index / 2); i++) { in set_sample_rates()
376 unsigned int tmp = dac->rates[index - 1 - i]; in set_sample_rates()
377 dac->rates[index - 1 - i] = dac->rates[i]; in set_sample_rates()
381 dac->constraints_rates.count = index; in set_sample_rates()
[all …]
/sound/pcmcia/vx/
Dvxpocket.c40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ variable
45 module_param_array(index, int, NULL, 0444);
46 MODULE_PARM_DESC(index, "Index value for VXPocket soundcard.");
314 err = snd_card_new(&p_dev->dev, index[i], id[i], THIS_MODULE, in vxpocket_probe()
328 vxp->index = i; in vxpocket_probe()
346 card_alloc &= ~(1 << vxp->index); in vxpocket_detach()
/sound/core/oss/
Dmixer_oss.c201 unsigned int index; in snd_mixer_oss_get_recsrc() local
202 if ((err = mixer->get_recsrc(fmixer, &index)) < 0) in snd_mixer_oss_get_recsrc()
204 result = 1 << index; in snd_mixer_oss_get_recsrc()
226 unsigned int index; in snd_mixer_oss_set_recsrc() local
235 mixer->get_recsrc(fmixer, &index); in snd_mixer_oss_set_recsrc()
236 result = 1 << index; in snd_mixer_oss_set_recsrc()
503 …truct snd_kcontrol *snd_mixer_oss_test_id(struct snd_mixer_oss *mixer, const char *name, int index) in snd_mixer_oss_test_id() argument
511 id.index = index; in snd_mixer_oss_test_id()
905 int index; member
908 …s_build_test(struct snd_mixer_oss *mixer, struct slot *slot, const char *name, int index, int item) in snd_mixer_oss_build_test() argument
[all …]
/sound/drivers/
Dvirmidi.c64 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ variable
69 module_param_array(index, int, NULL, 0444);
70 MODULE_PARM_DESC(index, "Index value for virmidi soundcard.");
93 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_virmidi_probe()

1234567891011