/sound/soc/ |
D | soc-cache.c | 283 unsigned int min, max, index; in snd_soc_get_reg_access_index() local 289 index = (min + max) / 2; in snd_soc_get_reg_access_index() 290 if (codec_drv->reg_access_default[index].reg == reg) in snd_soc_get_reg_access_index() 291 return index; in snd_soc_get_reg_access_index() 292 if (codec_drv->reg_access_default[index].reg < reg) in snd_soc_get_reg_access_index() 293 min = index + 1; in snd_soc_get_reg_access_index() 295 max = index; in snd_soc_get_reg_access_index() 303 int index; in snd_soc_default_volatile_register() local 307 index = snd_soc_get_reg_access_index(codec, reg); in snd_soc_default_volatile_register() 308 if (index < 0) in snd_soc_default_volatile_register() [all …]
|
/sound/pci/echoaudio/ |
D | echoaudio_dsp.c | 229 int index, words, i; in install_resident_loader() local 271 index = code[0]; in install_resident_loader() 274 index += 3; in install_resident_loader() 277 words = code[index++]; in install_resident_loader() 280 address = ((u32)code[index] << 16) + code[index + 1]; in install_resident_loader() 281 index += 2; in install_resident_loader() 297 data = ((u32)code[index] << 16) + code[index + 1]; in install_resident_loader() 302 index += 2; in install_resident_loader() 333 int index, words, i; in load_dsp() local 378 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() 250 u16 oxygen_read_eeprom(struct oxygen *chip, unsigned int index) in oxygen_read_eeprom() argument 255 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"); 85 err = oxygen_pci_probe(pci, index[dev], id[dev], THIS_MODULE, in xonar_probe()
|
D | oxygen_mixer.c | 520 unsigned int index = ctl->private_value & 0xff; in ac97_switch_get() local 526 reg = oxygen_read_ac97(chip, codec, index); in ac97_switch_get() 558 unsigned int index = ctl->private_value & 0xff; in ac97_switch_put() local 565 oldreg = oxygen_read_ac97(chip, codec, index); in ac97_switch_put() 573 oxygen_write_ac97(chip, codec, index, newreg); in ac97_switch_put() 575 chip->model.ac97_switch(chip, index, newreg & 0x8000); in ac97_switch_put() 576 if (index == AC97_LINE) { in ac97_switch_put() 585 } else if ((index == AC97_MIC || index == AC97_CD || in ac97_switch_put() 586 index == AC97_VIDEO || index == AC97_AUX) && in ac97_switch_put() 615 unsigned int index = ctl->private_value & 0xff; in ac97_volume_get() local [all …]
|
/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 | 1142 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 …]
|
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/soc/davinci/ |
D | davinci-evm.c | 295 int index; in evm_init() local 300 index = 0; in evm_init() 303 index = 1; in evm_init() 306 index = 0; in evm_init() 309 index = 0; in evm_init() 312 index = 1; in evm_init() 315 index = 0; in evm_init() 319 evm_snd_device = platform_device_alloc("soc-audio", index); in evm_init()
|
/sound/firewire/ |
D | amdtp.c | 221 unsigned int syt_offset, phase, index, syt; in calculate_syt() local 238 index = phase % 13; in calculate_syt() 240 syt_offset += 1386 + ((index && !(index & 3)) || in calculate_syt() 338 unsigned int index, data_blocks, syt, ptr; in queue_out_packet() local 345 index = s->packet_index; in queue_out_packet() 350 buffer = s->buffer.packets[index].buffer; in queue_out_packet() 369 packet.interrupt = IS_ALIGNED(index + 1, INTERRUPT_INTERVAL); in queue_out_packet() 376 s->buffer.packets[index].offset); in queue_out_packet() 384 if (++index >= QUEUE_LENGTH) in queue_out_packet() 385 index = 0; in queue_out_packet() [all …]
|
/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 91 vx_outb(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK)); in vx_write_one_cbit() 94 vx_outl(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK)); in vx_write_one_cbit()
|
/sound/core/seq/oss/ |
D | seq_oss_synth.c | 155 int index; in snd_seq_oss_synth_unregister() local 160 for (index = 0; index < max_synth_devs; index++) { in snd_seq_oss_synth_unregister() 161 if (synth_devs[index] == rec) in snd_seq_oss_synth_unregister() 164 if (index >= max_synth_devs) { in snd_seq_oss_synth_unregister() 169 synth_devs[index] = NULL; in snd_seq_oss_synth_unregister() 170 if (index == max_synth_devs - 1) { in snd_seq_oss_synth_unregister() 171 for (index--; index >= 0; index--) { in snd_seq_oss_synth_unregister() 172 if (synth_devs[index]) in snd_seq_oss_synth_unregister() 175 max_synth_devs = index + 1; in snd_seq_oss_synth_unregister()
|
/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_create(index, name, mod, sizeof(struct aoa_card), in aoa_alsa_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."); 76 card_list[pdacf->index] = NULL; in snd_pdacf_free() 115 err = snd_card_create(index[i], id[i], THIS_MODULE, 0, &card); in snd_pdacf_probe() 136 pdacf->index = i; in snd_pdacf_probe()
|
/sound/i2c/other/ |
D | tea575x-tuner.c | 67 .index = 0, 76 .index = 0, 85 .index = 1, 254 int index; in vidioc_enum_freq_bands() local 259 switch (band->index) { in vidioc_enum_freq_bands() 262 index = BAND_FM_JAPAN; in vidioc_enum_freq_bands() 264 index = BAND_FM; in vidioc_enum_freq_bands() 268 index = BAND_AM; in vidioc_enum_freq_bands() 276 *band = bands[index]; in vidioc_enum_freq_bands() 289 if (v->index > 0) in vidioc_g_tuner() [all …]
|
/sound/pci/cs46xx/ |
D | dsp_spos.c | 134 int index = ins->symbol_table.nsymbols,i; in find_free_symbol_index() local 138 index = i; in find_free_symbol_index() 143 return index; in find_free_symbol_index() 192 int index; in add_symbol() local 206 index = find_free_symbol_index (ins); in add_symbol() 208 strcpy (ins->symbol_table.symbols[index].symbol_name, symbol_name); in add_symbol() 209 ins->symbol_table.symbols[index].address = address; in add_symbol() 210 ins->symbol_table.symbols[index].symbol_type = type; in add_symbol() 211 ins->symbol_table.symbols[index].module = NULL; in add_symbol() 212 ins->symbol_table.symbols[index].deleted = 0; in add_symbol() [all …]
|
D | cs46xx.c | 47 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_create(index[dev], id[dev], THIS_MODULE, 0, &card); in snd_card_cs46xx_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_create(index[n], id[n], THIS_MODULE, 0, &card); in snd_adlib_probe()
|
/sound/pcmcia/vx/ |
D | vxpocket.c | 40 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."); 310 err = snd_card_create(index[i], id[i], THIS_MODULE, 0, &card); in vxpocket_probe() 323 vxp->index = i; in vxpocket_probe() 341 card_alloc &= ~(1 << vxp->index); in vxpocket_detach()
|
/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() 361 .index = sum_index,
|
/sound/core/oss/ |
D | mixer_oss.c | 201 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/pci/au88x0/ |
D | au88x0_eq.c | 210 vortex_EqHw_SetLeftGainsSingleTarget(vortex_t * vortex, u16 index, u16 b) in vortex_EqHw_SetLeftGainsSingleTarget() argument 212 hwwrite(vortex->mmio, 0x2b02c + (index * 0x30), b); in vortex_EqHw_SetLeftGainsSingleTarget() 216 vortex_EqHw_SetRightGainsSingleTarget(vortex_t * vortex, u16 index, u16 b) in vortex_EqHw_SetRightGainsSingleTarget() argument 218 hwwrite(vortex->mmio, 0x2b20c + (index * 0x30), b); in vortex_EqHw_SetRightGainsSingleTarget() 505 static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetLeftGain() argument 510 *gain = eq->this130[index]; in vortex_Eqlzr_GetLeftGain() 516 static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetLeftGain() argument 523 eq->this130[index] = gain; in vortex_Eqlzr_SetLeftGain() 527 vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetLeftGain() 530 static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetRightGain() argument [all …]
|
/sound/drivers/ |
D | virmidi.c | 64 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_create(index[dev], id[dev], THIS_MODULE, in snd_virmidi_probe()
|