/sound/soc/fsl/ |
D | fsl_asrc.h | 38 #define REG_ASRCDR(i) ((i < 2) ? REG_ASRCDR1 : REG_ASRCDR2) argument 58 #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) argument 59 #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) argument 60 #define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i)) argument 68 #define REG_ASRIDRH(i) (REG_ASRIDRHA + (i << 3)) argument 69 #define REG_ASRIDRL(i) (REG_ASRIDRLA + (i << 3)) argument 80 #define REG_ASRMCR(i) (REG_ASRMCRA + (i << 3)) argument 81 #define REG_ASRFST(i) (REG_ASRFSTA + (i << 3)) argument 86 #define REG_ASRMCR1(i) (REG_ASRMCR1A + (i << 2)) argument 90 #define ASRCTR_ATSi_SHIFT(i) (20 + i) argument [all …]
|
/sound/pci/au88x0/ |
D | au88x0_xtalk.c | 257 int i; in vortex_XtalkHw_SetLeftEQ() local 259 for (i = 0; i < 5; i++) { in vortex_XtalkHw_SetLeftEQ() 260 hwwrite(vortex->mmio, 0x24200 + i * 0x24, coefs[i][0]); in vortex_XtalkHw_SetLeftEQ() 261 hwwrite(vortex->mmio, 0x24204 + i * 0x24, coefs[i][1]); in vortex_XtalkHw_SetLeftEQ() 262 hwwrite(vortex->mmio, 0x24208 + i * 0x24, coefs[i][2]); in vortex_XtalkHw_SetLeftEQ() 263 hwwrite(vortex->mmio, 0x2420c + i * 0x24, coefs[i][3]); in vortex_XtalkHw_SetLeftEQ() 264 hwwrite(vortex->mmio, 0x24210 + i * 0x24, coefs[i][4]); in vortex_XtalkHw_SetLeftEQ() 274 int i; in vortex_XtalkHw_SetRightEQ() local 276 for (i = 0; i < 5; i++) { in vortex_XtalkHw_SetRightEQ() 277 hwwrite(vortex->mmio, 0x242b4 + i * 0x24, coefs[i][0]); in vortex_XtalkHw_SetRightEQ() [all …]
|
D | au88x0_a3d.c | 139 int i; in a3dsrc_SetHrtfTarget() local 141 for (i = 0; i < HRTF_SZ; i++) in a3dsrc_SetHrtfTarget() 144 A3D_B_HrtfTarget) + (i << 2), in a3dsrc_SetHrtfTarget() 145 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfTarget() 152 int i; in a3dsrc_SetHrtfCurrent() local 154 for (i = 0; i < HRTF_SZ; i++) in a3dsrc_SetHrtfCurrent() 157 A3D_B_HrtfCurrent) + (i << 2), in a3dsrc_SetHrtfCurrent() 158 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfCurrent() 165 int i; in a3dsrc_SetHrtfState() local 167 for (i = 0; i < HRTF_SZ; i++) in a3dsrc_SetHrtfState() [all …]
|
D | au88x0_eq.c | 69 int i = 0, n /*esp2c */; in vortex_EqHw_SetLeftCoefs() local 72 hwwrite(vortex->mmio, 0x2b000 + n * 0x30, coefs[i + 0]); in vortex_EqHw_SetLeftCoefs() 73 hwwrite(vortex->mmio, 0x2b004 + n * 0x30, coefs[i + 1]); in vortex_EqHw_SetLeftCoefs() 76 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, coefs[i + 2]); in vortex_EqHw_SetLeftCoefs() 77 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, coefs[i + 3]); in vortex_EqHw_SetLeftCoefs() 78 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, coefs[i + 4]); in vortex_EqHw_SetLeftCoefs() 80 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, sign_invert(coefs[2 + i])); in vortex_EqHw_SetLeftCoefs() 81 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, sign_invert(coefs[3 + i])); in vortex_EqHw_SetLeftCoefs() 82 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, sign_invert(coefs[4 + i])); in vortex_EqHw_SetLeftCoefs() 84 i += 5; in vortex_EqHw_SetLeftCoefs() [all …]
|
/sound/soc/ |
D | soc-jack.c | 137 int i; in snd_soc_jack_add_zones() local 139 for (i = 0; i < count; i++) { in snd_soc_jack_add_zones() 140 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones() 141 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones() 184 int i; in snd_soc_jack_add_pins() local 186 for (i = 0; i < count; i++) { in snd_soc_jack_add_pins() 187 if (!pins[i].pin) { in snd_soc_jack_add_pins() 189 i); in snd_soc_jack_add_pins() 192 if (!pins[i].mask) { in snd_soc_jack_add_pins() 194 " (%s)\n", i, pins[i].pin); in snd_soc_jack_add_pins() [all …]
|
/sound/drivers/opl4/ |
D | opl4_synth.c | 276 int i; in snd_opl4_synth_reset() local 279 for (i = 0; i < OPL4_MAX_VOICES; i++) in snd_opl4_synth_reset() 280 snd_opl4_write(opl4, OPL4_REG_MISC + i, OPL4_DAMP_BIT); in snd_opl4_synth_reset() 286 for (i = 0; i < OPL4_MAX_VOICES; i++) { in snd_opl4_synth_reset() 287 opl4->voices[i].number = i; in snd_opl4_synth_reset() 288 list_add_tail(&opl4->voices[i].list, &opl4->off_voices); in snd_opl4_synth_reset() 300 int i; in snd_opl4_synth_shutdown() local 303 for (i = 0; i < OPL4_MAX_VOICES; i++) in snd_opl4_synth_shutdown() 304 snd_opl4_write(opl4, OPL4_REG_MISC + i, in snd_opl4_synth_shutdown() 305 opl4->voices[i].reg_misc & ~OPL4_KEY_ON_BIT); in snd_opl4_synth_shutdown() [all …]
|
/sound/firewire/dice/ |
D | dice-stream.c | 99 unsigned int i; in release_resources() local 101 for (i = 0; i < MAX_STREAMS; i++) { in release_resources() 102 if (amdtp_stream_running(&dice->tx_stream[i])) { in release_resources() 103 amdtp_stream_pcm_abort(&dice->tx_stream[i]); in release_resources() 104 amdtp_stream_stop(&dice->tx_stream[i]); in release_resources() 106 if (amdtp_stream_running(&dice->rx_stream[i])) { in release_resources() 107 amdtp_stream_pcm_abort(&dice->rx_stream[i]); in release_resources() 108 amdtp_stream_stop(&dice->rx_stream[i]); in release_resources() 111 fw_iso_resources_free(&dice->tx_resources[i]); in release_resources() 112 fw_iso_resources_free(&dice->rx_resources[i]); in release_resources() [all …]
|
D | dice-proc.c | 15 unsigned int i; in dice_proc_read_mem() local 24 for (i = 0; i < quadlets; ++i) in dice_proc_read_mem() 25 be32_to_cpus(&((u32 *)buffer)[i]); in dice_proc_read_mem() 31 unsigned int i) in str_from_array() argument 33 if (i < count) in str_from_array() 34 return strs[i]; in str_from_array() 41 unsigned int i; in dice_proc_fixup_string() local 43 for (i = 0; i < size; i += 4) in dice_proc_fixup_string() 44 cpu_to_le32s((u32 *)(s + i)); in dice_proc_fixup_string() 46 for (i = 0; i < size - 2; ++i) { in dice_proc_fixup_string() [all …]
|
/sound/pci/lola/ |
D | lola_proc.c | 64 int i, j, num_clocks; in print_clock_widget() local 70 for (i = 0; i < num_clocks; i += 4) { in print_clock_widget() 76 i, 0, &val, &res_ex); in print_clock_widget() 84 if (i + j >= num_clocks) in print_clock_widget() 96 i + j, type, name, freq); in print_clock_widget() 115 int i, nid; in lola_proc_codec_read() local 126 for (i = 0; i < chip->pcm[CAPT].num_streams; i++, nid++) in lola_proc_codec_read() 128 for (i = 0; i < chip->pcm[PLAY].num_streams; i++, nid++) in lola_proc_codec_read() 130 for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) in lola_proc_codec_read() 133 for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) in lola_proc_codec_read() [all …]
|
D | lola_mixer.c | 96 int i, err, nid; in lola_init_pins() local 98 for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { in lola_init_pins() 99 err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); in lola_init_pins() 102 if (chip->pin[dir].pins[i].is_analog) in lola_init_pins() 253 int i; 257 for (i = 0; i < LOLA_MIXER_DIM; i++) { 258 if (mask & (1 << i)) { 259 writew(*gains, &chip->mixer.array->src_gain[i]); 271 for (i = 0; i < LOLA_MIXER_DIM; i++) { 272 if (mask & (1 << i)) { [all …]
|
/sound/hda/ |
D | hdmi_chmap.c | 220 int i, j; in init_channel_allocations() local 223 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in init_channel_allocations() 224 p = channel_allocations + i; in init_channel_allocations() 237 int i; in get_channel_allocation_order() local 239 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in get_channel_allocation_order() 240 if (channel_allocations[i].ca_index == ca) in get_channel_allocation_order() 243 return i; in get_channel_allocation_order() 248 int i, j; in snd_hdac_print_channel_allocation() local 250 for (i = 0, j = 0; i < ARRAY_SIZE(cea_speaker_allocation_names); i++) { in snd_hdac_print_channel_allocation() 251 if (spk_alloc & (1 << i)) in snd_hdac_print_channel_allocation() [all …]
|
/sound/oss/ |
D | dev_table.c | 161 int i = register_sound_dsp(&oss_sound_fops, -1); in sound_alloc_audiodev() local 162 if(i==-1) in sound_alloc_audiodev() 163 return i; in sound_alloc_audiodev() 164 i>>=4; in sound_alloc_audiodev() 165 if(i>=num_audiodevs) in sound_alloc_audiodev() 166 num_audiodevs = i + 1; in sound_alloc_audiodev() 167 return i; in sound_alloc_audiodev() 172 int i = register_sound_midi(&oss_sound_fops, -1); in sound_alloc_mididev() local 173 if(i==-1) in sound_alloc_mididev() 174 return i; in sound_alloc_mididev() [all …]
|
D | sequencer.c | 418 int i; in find_voice() local 421 for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) in find_voice() 422 if (synth_devs[dev]->alloc.map[i] == key) in find_voice() 423 return i; in find_voice() 572 int i, key; in seq_chn_common_event() local 586 for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) in seq_chn_common_event() 587 if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) in seq_chn_common_event() 588 synth_devs[dev]->controller(dev, i, p1, val); in seq_chn_common_event() 608 int i, key; in seq_chn_common_event() local 612 for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) in seq_chn_common_event() [all …]
|
/sound/isa/wavefront/ |
D | wavefront_synth.c | 235 int i; in wavefront_errorstr() local 237 for (i = 0; wavefront_errors[i].errstr; i++) { in wavefront_errorstr() 238 if (wavefront_errors[i].errno == errnum) { in wavefront_errorstr() 239 return wavefront_errors[i].errstr; in wavefront_errorstr() 250 int i; in wavefront_get_command() local 252 for (i = 0; wavefront_commands[i].cmd != 0; i++) { in wavefront_get_command() 253 if (cmd == wavefront_commands[i].cmd) { in wavefront_get_command() 254 return &wavefront_commands[i]; in wavefront_get_command() 281 int i; in wavefront_wait() local 287 for (i = 0; i < wait_usecs; i += 5) { in wavefront_wait() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 143 int is_capture, i; in pcxhr_analog_vol_put() local 147 for (i = 0; i < 2; i++) { in pcxhr_analog_vol_put() 148 int new_volume = ucontrol->value.integer.value[i]; in pcxhr_analog_vol_put() 150 &chip->analog_capture_volume[i] : in pcxhr_analog_vol_put() 151 &chip->analog_playback_volume[i]; in pcxhr_analog_vol_put() 178 is_capture, i); in pcxhr_analog_vol_put() 181 is_capture, i); in pcxhr_analog_vol_put() 219 int i, changed = 0; in pcxhr_audio_sw_put() local 221 for(i = 0; i < 2; i++) { in pcxhr_audio_sw_put() 222 if (chip->analog_playback_active[i] != in pcxhr_audio_sw_put() [all …]
|
/sound/soc/qcom/ |
D | lpass-cpu.c | 326 int i; in lpass_cpu_regmap_writeable() local 328 for (i = 0; i < v->i2s_ports; ++i) in lpass_cpu_regmap_writeable() 329 if (reg == LPAIF_I2SCTL_REG(v, i)) in lpass_cpu_regmap_writeable() 332 for (i = 0; i < v->irq_ports; ++i) { in lpass_cpu_regmap_writeable() 333 if (reg == LPAIF_IRQEN_REG(v, i)) in lpass_cpu_regmap_writeable() 335 if (reg == LPAIF_IRQCLEAR_REG(v, i)) in lpass_cpu_regmap_writeable() 339 for (i = 0; i < v->rdma_channels; ++i) { in lpass_cpu_regmap_writeable() 340 if (reg == LPAIF_RDMACTL_REG(v, i)) in lpass_cpu_regmap_writeable() 342 if (reg == LPAIF_RDMABASE_REG(v, i)) in lpass_cpu_regmap_writeable() 344 if (reg == LPAIF_RDMABUFF_REG(v, i)) in lpass_cpu_regmap_writeable() [all …]
|
/sound/pci/ice1712/ |
D | prodigy_hifi.c | 172 int i; in wm8766_spi_send_word() local 173 for (i = 0; i < 16; i++) { in wm8766_spi_send_word() 212 int i; in ak4396_send_word() local 213 for (i = 0; i < 16; i++) { in ak4396_send_word() 270 int i; in ak4396_dac_vol_get() local 272 for (i = 0; i < 2; i++) in ak4396_dac_vol_get() 273 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 282 int i; in ak4396_dac_vol_put() local 286 for (i = 0; i < 2; i++) { in ak4396_dac_vol_put() 287 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() [all …]
|
/sound/usb/caiaq/ |
D | audio.c | 43 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument 44 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1) 95 int i; in all_substreams_zero() local 96 for (i = 0; i < MAX_STREAMS; i++) in all_substreams_zero() 97 if (subs[i] != NULL) in all_substreams_zero() 104 int i, ret; in stream_start() local 120 for (i = 0; i < N_URBS; i++) { in stream_start() 121 ret = usb_submit_urb(cdev->data_urbs_in[i], GFP_ATOMIC); in stream_start() 124 i, ret); in stream_start() 135 int i; in stream_stop() local [all …]
|
/sound/pci/cs46xx/ |
D | dsp_spos.c | 61 unsigned int i = 0, j, nreallocated = 0; in shadow_and_reallocate_code() local 69 while (i < size) { in shadow_and_reallocate_code() 70 loval = data[i++]; in shadow_and_reallocate_code() 71 hival = data[i++]; in shadow_and_reallocate_code() 127 int i; in get_segment_desc() local 128 for (i = 0;i < module->nsegments; ++i) { in get_segment_desc() 129 if (module->segments[i].segment_type == seg_type) { in get_segment_desc() 130 return (module->segments + i); in get_segment_desc() 139 int index = ins->symbol_table.nsymbols,i; in find_free_symbol_index() local 141 for (i = ins->symbol_table.highest_frag_index; i < ins->symbol_table.nsymbols; ++i) { in find_free_symbol_index() [all …]
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 305 int i, err; in mixart_update_analog_audio_level() local 313 for(i=0; i<2; i++) { in mixart_update_analog_audio_level() 315 io_level.level[i].analog_level = mixart_analog_level[chip->analog_capture_volume[i]]; in mixart_update_analog_audio_level() 317 if(chip->analog_playback_active[i]) in mixart_update_analog_audio_level() 318 io_level.level[i].analog_level = mixart_analog_level[chip->analog_playback_volume[i]]; in mixart_update_analog_audio_level() 320 io_level.level[i].analog_level = mixart_analog_level[MIXART_ANALOG_PLAYBACK_LEVEL_MIN]; in mixart_update_analog_audio_level() 376 int is_capture, i; in mixart_analog_vol_put() local 380 for (i = 0; i < 2; i++) { in mixart_analog_vol_put() 381 int new_volume = ucontrol->value.integer.value[i]; in mixart_analog_vol_put() 383 &chip->analog_capture_volume[i] : in mixart_analog_vol_put() [all …]
|
/sound/pci/echoaudio/ |
D | echoaudio_dsp.c | 44 int i; in wait_handshake() local 47 for (i = 0; i < HANDSHAKE_TIMEOUT; i++) { in wait_handshake() 68 int i; in send_vector() local 73 for (i = 0; i < VECTOR_BUSY_TIMEOUT; i++) { in send_vector() 93 u32 status, i; in write_dsp() local 95 for (i = 0; i < 10000000; i++) { /* timeout = 10s */ in write_dsp() 117 u32 status, i; in read_dsp() local 119 for (i = 0; i < READ_DSP_TIMEOUT; i++) { in read_dsp() 147 int i; in read_sn() local 150 for (i = 0; i < 5; i++) { in read_sn() [all …]
|
/sound/pci/ctxfi/ |
D | ctatc.c | 252 int n_amixer = apcm->substream->runtime->channels, i = 0; in atc_pcm_playback_prepare() local 284 for (i = 0, apcm->n_amixer = 0; i < n_amixer; i++) { in atc_pcm_playback_prepare() 286 (struct amixer **)&apcm->amixers[i]); in atc_pcm_playback_prepare() 300 for (i = 0; i < n_amixer; i++) { in atc_pcm_playback_prepare() 301 amixer = apcm->amixers[i]; in atc_pcm_playback_prepare() 304 INIT_VOL, atc->pcm[i+device*2]); in atc_pcm_playback_prepare() 328 int i; in atc_pcm_release_resources() local 331 for (i = 0; i < apcm->n_srcimp; i++) { in atc_pcm_release_resources() 332 srcimp = apcm->srcimps[i]; in atc_pcm_release_resources() 335 apcm->srcimps[i] = NULL; in atc_pcm_release_resources() [all …]
|
/sound/pci/hda/ |
D | hda_eld.c | 161 int i; in hdmi_update_short_audio_desc() local 166 for (i = 0; i < 7; i++) in hdmi_update_short_audio_desc() 167 if (val & (1 << i)) in hdmi_update_short_audio_desc() 168 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc() 184 for (i = 0; i < 3; i++) in hdmi_update_short_audio_desc() 185 if (val & (1 << i)) in hdmi_update_short_audio_desc() 186 a->sample_bits |= cea_sample_sizes[i + 1]; in hdmi_update_short_audio_desc() 241 int i; in snd_hdmi_parse_eld() local 278 for (i = 0; i < e->sad_count; i++) { in snd_hdmi_parse_eld() 279 if (ELD_FIXED_BYTES + mnl + 3 * (i + 1) > size) { in snd_hdmi_parse_eld() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-spkr.c | 199 unsigned int i; in spkr_volume_get() local 201 for (i = 0; i < spkr->mixer_channels; ++i) in spkr_volume_get() 202 value->value.integer.value[channel_map[i]] = spkr->volume[i]; in spkr_volume_get() 212 unsigned int i, changed_channels; in spkr_volume_put() local 217 for (i = 0; i < spkr->mixer_channels; ++i) { in spkr_volume_put() 218 if (value->value.integer.value[i] < spkr->volume_min || in spkr_volume_put() 219 value->value.integer.value[i] > spkr->volume_max) in spkr_volume_put() 221 if (value->value.integer.value[i] != in spkr_volume_put() 227 for (i = 0; i < spkr->mixer_channels; ++i) in spkr_volume_put() 228 if (value->value.integer.value[channel_map[i]] != in spkr_volume_put() [all …]
|
/sound/soc/codecs/ |
D | rl6231.c | 75 int i; in rl6231_calc_dmic_clk() local 82 for (i = 0; i < ARRAY_SIZE(div); i++) { in rl6231_calc_dmic_clk() 83 if ((div[i] % 3) == 0) in rl6231_calc_dmic_clk() 86 if (3072000 * div[i] >= rate) in rl6231_calc_dmic_clk() 87 return i; in rl6231_calc_dmic_clk() 122 int i, k, red, n_t, pll_out, in_t, out_t; in rl6231_pll_calc() local 130 for (i = 0; i < ARRAY_SIZE(pll_preset_table); i++) { in rl6231_pll_calc() 131 if (freq_in == pll_preset_table[i].pll_in && in rl6231_pll_calc() 132 freq_out == pll_preset_table[i].pll_out) { in rl6231_pll_calc() 133 k = pll_preset_table[i].k; in rl6231_pll_calc() [all …]
|