/sound/soc/fsl/ |
D | fsl_asrc.c | 28 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 …]
|
D | fsl_spdif.c | 1111 enum spdif_txrate index, bool round) in fsl_spdif_txclk_caldiv() argument 1125 rate_ideal = rate[index] * txclk_df * 64; in fsl_spdif_txclk_caldiv() 1134 if (arate == rate[index]) { in fsl_spdif_txclk_caldiv() 1137 spdif_priv->txclk_df[index] = txclk_df; in fsl_spdif_txclk_caldiv() 1138 spdif_priv->sysclk_df[index] = sysclk_df; in fsl_spdif_txclk_caldiv() 1139 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv() 1141 } else if (arate / rate[index] == 1) { in fsl_spdif_txclk_caldiv() 1143 sub = (u64)(arate - rate[index]) * 100000; in fsl_spdif_txclk_caldiv() 1144 do_div(sub, rate[index]); in fsl_spdif_txclk_caldiv() 1148 spdif_priv->txclk_df[index] = txclk_df; in fsl_spdif_txclk_caldiv() [all …]
|
/sound/firewire/ |
D | amdtp-stream-trace.h | 17 …amdtp_stream *s, u32 cycles, u32 cip_header[2], unsigned int payload_quadlets, unsigned int index), 18 TP_ARGS(s, cycles, cip_header, payload_quadlets, index), 30 __field(unsigned int, index) 43 __entry->index = index; 57 __entry->index) 61 … amdtp_stream *s, u32 cycles, __be32 *cip_header, unsigned int payload_length, unsigned int index), 62 TP_ARGS(s, cycles, cip_header, payload_length, index), 74 __field(unsigned int, index) 87 __entry->index = index; 101 __entry->index)
|
/sound/usb/line6/ |
D | capture.c | 27 int index; in submit_audio_in_urb() local 32 index = find_first_zero_bit(&line6pcm->in.active_urbs, in submit_audio_in_urb() 35 if (index < 0 || index >= line6pcm->line6->iso_buffers) { in submit_audio_in_urb() 40 urb_in = line6pcm->in.urbs[index]; in submit_audio_in_urb() 53 index * LINE6_ISO_PACKETS * line6pcm->max_packet_size_in; in submit_audio_in_urb() 60 set_bit(index, &line6pcm->in.active_urbs); in submit_audio_in_urb() 63 "URB in #%d submission failed (%d)\n", index, ret); in submit_audio_in_urb() 151 int i, index, length = 0, shutdown = 0; in audio_in_callback() local 159 for (index = 0; index < line6pcm->line6->iso_buffers; ++index) in audio_in_callback() 160 if (urb == line6pcm->in.urbs[index]) in audio_in_callback() [all …]
|
D | playback.c | 146 int index; in submit_audio_out_urb() local 159 index = find_first_zero_bit(&line6pcm->out.active_urbs, in submit_audio_out_urb() 162 if (index < 0 || index >= line6pcm->line6->iso_buffers) { in submit_audio_out_urb() 167 urb_out = line6pcm->out.urbs[index]; in submit_audio_out_urb() 203 index * LINE6_ISO_PACKETS * line6pcm->max_packet_size_out; in submit_audio_out_urb() 278 set_bit(index, &line6pcm->out.active_urbs); in submit_audio_out_urb() 281 "URB out #%d submission failed (%d)\n", index, ret); in submit_audio_out_urb() 308 int i, index, length = 0, shutdown = 0; in audio_out_callback() local 324 for (index = 0; index < line6pcm->line6->iso_buffers; index++) in audio_out_callback() 325 if (urb == line6pcm->out.urbs[index]) in audio_out_callback() [all …]
|
/sound/pci/echoaudio/ |
D | echoaudio_dsp.c | 230 int index, words, i; in install_resident_loader() local 273 index = code[0]; in install_resident_loader() 276 index += 3; in install_resident_loader() 279 words = code[index++]; in install_resident_loader() 282 address = ((u32)code[index] << 16) + code[index + 1]; in install_resident_loader() 283 index += 2; in install_resident_loader() 301 data = ((u32)code[index] << 16) + code[index + 1]; in install_resident_loader() 307 index += 2; in install_resident_loader() 338 int index, words, i; in load_dsp() local 385 index = code[0]; in load_dsp() [all …]
|
/sound/pci/oxygen/ |
D | oxygen_io.c | 130 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 …]
|
D | oxygen.h | 156 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()
|
D | virtuoso.c | 33 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()
|
D | oxygen_mixer.c | 521 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 …]
|
D | se6x.c | 44 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; variable 48 module_param_array(index, int, NULL, 0444); 49 MODULE_PARM_DESC(index, "card index"); 140 err = oxygen_pci_probe(pci, index[dev], id[dev], THIS_MODULE, in se6x_probe()
|
/sound/ppc/ |
D | awacs.c | 202 { .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/ |
D | hpi.h | 1150 u16 index; /**< GPIO bit index. */ member 1224 u16 hpi_adapter_enumerate_property(u16 adapter_index, u16 index, 1347 u16 index); 1417 u16 hpi_channel_mode_query_mode(const u32 h_mode, const u32 index, 1427 u16 hpi_tuner_query_band(const u32 h_tuner, const u32 index, u16 *pw_band); 1433 u16 hpi_tuner_query_frequency(const u32 h_tuner, const u32 index, 1444 u16 hpi_tuner_query_gain(const u32 h_tuner, const u32 index, u16 *pw_gain); 1458 u16 hpi_tuner_query_deemphasis(const u32 h_tuner, const u32 index, 1508 u16 hpi_aesebu_receiver_query_format(const u32 h_aes_rx, const u32 index, 1517 u16 hpi_aesebu_receiver_get_user_data(u32 h_control, u16 index, u16 *pw_data); [all …]
|
D | hpicmn.c | 75 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 …]
|
D | hpifunc.c | 225 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/firewire/dice/ |
D | dice-stream.c | 137 enum amdtp_stream_direction dir, unsigned int index, in keep_resources() argument 148 stream = &dice->tx_stream[index]; in keep_resources() 149 resources = &dice->tx_resources[index]; in keep_resources() 151 stream = &dice->rx_stream[index]; in keep_resources() 152 resources = &dice->rx_resources[index]; in keep_resources() 369 unsigned int index) in init_stream() argument 376 stream = &dice->tx_stream[index]; in init_stream() 377 resources = &dice->tx_resources[index]; in init_stream() 379 stream = &dice->rx_stream[index]; in init_stream() 380 resources = &dice->rx_resources[index]; in init_stream() [all …]
|
/sound/core/ |
D | ctljack.c | 40 sid.index = 0; in get_available_index() 45 sid.index++; in get_available_index() 50 return sid.index; in get_available_index() 76 kctl->id.index = get_available_index(card, kctl->id.name); in snd_kctl_jack_new()
|
/sound/drivers/vx/ |
D | vx_uer.c | 61 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/ |
D | alsa.c | 11 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/ |
D | seq_oss_synth.c | 155 int index; in snd_seq_oss_synth_remove() local 160 for (index = 0; index < max_synth_devs; index++) { in snd_seq_oss_synth_remove() 161 if (synth_devs[index] == rec) in snd_seq_oss_synth_remove() 164 if (index >= max_synth_devs) { in snd_seq_oss_synth_remove() 169 synth_devs[index] = NULL; in snd_seq_oss_synth_remove() 170 if (index == max_synth_devs - 1) { in snd_seq_oss_synth_remove() 171 for (index--; index >= 0; index--) { in snd_seq_oss_synth_remove() 172 if (synth_devs[index]) in snd_seq_oss_synth_remove() 175 max_synth_devs = index + 1; in snd_seq_oss_synth_remove()
|
/sound/soc/davinci/ |
D | davinci-evm.c | 442 int index; in evm_init() local 456 index = 0; in evm_init() 459 index = 1; in evm_init() 462 index = 0; in evm_init() 465 index = 0; in evm_init() 468 index = 1; in evm_init() 471 index = 0; in evm_init() 475 evm_snd_device = platform_device_alloc("soc-audio", index); in evm_init()
|
/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf.c | 40 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/isa/ |
D | adlib.c | 19 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/cs46xx/ |
D | dsp_spos.c | 139 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 …]
|
/sound/pci/ctxfi/ |
D | ctamixer.c | 55 .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,
|