Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 909) sorted by relevance

12345678910>>...37

/sound/soc/fsl/
Dfsl_asrc.h34 #define REG_ASRCDR(i) ((i < 2) ? REG_ASRCDR1 : REG_ASRCDR2) argument
54 #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) argument
55 #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) argument
56 #define REG_ASRDx(x, i) ((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i)) argument
64 #define REG_ASRIDRH(i) (REG_ASRIDRHA + (i << 3)) argument
65 #define REG_ASRIDRL(i) (REG_ASRIDRLA + (i << 3)) argument
76 #define REG_ASRMCR(i) (REG_ASRMCRA + (i << 3)) argument
77 #define REG_ASRFST(i) (REG_ASRFSTA + (i << 3)) argument
82 #define REG_ASRMCR1(i) (REG_ASRMCR1A + (i << 2)) argument
86 #define ASRCTR_ATSi_SHIFT(i) (20 + i) argument
[all …]
/sound/pci/au88x0/
Dau88x0_xtalk.c245 int i; in vortex_XtalkHw_SetLeftEQ() local
247 for (i = 0; i < 5; i++) { in vortex_XtalkHw_SetLeftEQ()
248 hwwrite(vortex->mmio, 0x24200 + i * 0x24, coefs[i][0]); in vortex_XtalkHw_SetLeftEQ()
249 hwwrite(vortex->mmio, 0x24204 + i * 0x24, coefs[i][1]); in vortex_XtalkHw_SetLeftEQ()
250 hwwrite(vortex->mmio, 0x24208 + i * 0x24, coefs[i][2]); in vortex_XtalkHw_SetLeftEQ()
251 hwwrite(vortex->mmio, 0x2420c + i * 0x24, coefs[i][3]); in vortex_XtalkHw_SetLeftEQ()
252 hwwrite(vortex->mmio, 0x24210 + i * 0x24, coefs[i][4]); in vortex_XtalkHw_SetLeftEQ()
262 int i; in vortex_XtalkHw_SetRightEQ() local
264 for (i = 0; i < 5; i++) { in vortex_XtalkHw_SetRightEQ()
265 hwwrite(vortex->mmio, 0x242b4 + i * 0x24, coefs[i][0]); in vortex_XtalkHw_SetRightEQ()
[all …]
Dau88x0_a3d.c127 int i; in a3dsrc_SetHrtfTarget() local
129 for (i = 0; i < HRTF_SZ; i++) in a3dsrc_SetHrtfTarget()
132 A3D_B_HrtfTarget) + (i << 2), in a3dsrc_SetHrtfTarget()
133 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfTarget()
140 int i; in a3dsrc_SetHrtfCurrent() local
142 for (i = 0; i < HRTF_SZ; i++) in a3dsrc_SetHrtfCurrent()
145 A3D_B_HrtfCurrent) + (i << 2), in a3dsrc_SetHrtfCurrent()
146 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfCurrent()
153 int i; in a3dsrc_SetHrtfState() local
155 for (i = 0; i < HRTF_SZ; i++) in a3dsrc_SetHrtfState()
[all …]
Dau88x0_eq.c57 int i = 0, n /*esp2c */; in vortex_EqHw_SetLeftCoefs() local
60 hwwrite(vortex->mmio, 0x2b000 + n * 0x30, coefs[i + 0]); in vortex_EqHw_SetLeftCoefs()
61 hwwrite(vortex->mmio, 0x2b004 + n * 0x30, coefs[i + 1]); in vortex_EqHw_SetLeftCoefs()
64 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, coefs[i + 2]); in vortex_EqHw_SetLeftCoefs()
65 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, coefs[i + 3]); in vortex_EqHw_SetLeftCoefs()
66 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, coefs[i + 4]); in vortex_EqHw_SetLeftCoefs()
68 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, sign_invert(coefs[2 + i])); in vortex_EqHw_SetLeftCoefs()
69 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, sign_invert(coefs[3 + i])); in vortex_EqHw_SetLeftCoefs()
70 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, sign_invert(coefs[4 + i])); in vortex_EqHw_SetLeftCoefs()
72 i += 5; in vortex_EqHw_SetLeftCoefs()
[all …]
/sound/firewire/dice/
Ddice-stream.c45 int i; in snd_dice_stream_get_rate_mode() local
47 for (i = 0; i < ARRAY_SIZE(snd_dice_rates); i++) { in snd_dice_stream_get_rate_mode()
48 if (!(dice->clock_caps & BIT(i))) in snd_dice_stream_get_rate_mode()
50 if (snd_dice_rates[i] != rate) in snd_dice_stream_get_rate_mode()
53 *mode = modes[i]; in snd_dice_stream_get_rate_mode()
64 int i; in select_clock() local
75 for (i = 0; i < ARRAY_SIZE(snd_dice_rates); ++i) { in select_clock()
76 if (snd_dice_rates[i] == rate) in select_clock()
79 if (i == ARRAY_SIZE(snd_dice_rates)) in select_clock()
81 data |= i << CLOCK_RATE_SHIFT; in select_clock()
[all …]
Ddice-proc.c14 unsigned int i; in dice_proc_read_mem() local
23 for (i = 0; i < quadlets; ++i) in dice_proc_read_mem()
24 be32_to_cpus(&((u32 *)buffer)[i]); in dice_proc_read_mem()
30 unsigned int i) in str_from_array() argument
32 if (i < count) in str_from_array()
33 return strs[i]; in str_from_array()
40 unsigned int i; in dice_proc_fixup_string() local
42 for (i = 0; i < size; i += 4) in dice_proc_fixup_string()
43 cpu_to_le32s((u32 *)(s + i)); in dice_proc_fixup_string()
45 for (i = 0; i < size - 2; ++i) { in dice_proc_fixup_string()
[all …]
/sound/soc/
Dsoc-jack.c93 int i; in snd_soc_jack_add_zones() local
95 for (i = 0; i < count; i++) { in snd_soc_jack_add_zones()
96 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones()
97 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones()
140 int i; in snd_soc_jack_add_pins() local
142 for (i = 0; i < count; i++) { in snd_soc_jack_add_pins()
143 if (!pins[i].pin) { in snd_soc_jack_add_pins()
145 i); in snd_soc_jack_add_pins()
148 if (!pins[i].mask) { in snd_soc_jack_add_pins()
150 " (%s)\n", i, pins[i].pin); in snd_soc_jack_add_pins()
[all …]
/sound/soc/amd/acp/
Dacp-mach-common.c352 int srate, i, ret = 0; in acp_card_rt1019_hw_params() local
359 for_each_rtd_codec_dais(rtd, i, codec_dai) { in acp_card_rt1019_hw_params()
578 int i = 0, num_links = 0; in acp_sofdsp_dai_links_create() local
592 links[i].name = "acp-headset-codec"; in acp_sofdsp_dai_links_create()
593 links[i].id = HEADSET_BE_ID; in acp_sofdsp_dai_links_create()
594 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create()
595 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
596 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
597 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
598 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
[all …]
/sound/soc/qcom/
Dlpass-cpu.c459 int i; in asoc_qcom_of_xlate_dai_name() local
461 for (i = 0; i < variant->num_dai; i++) { in asoc_qcom_of_xlate_dai_name()
462 if (variant->dai_driver[i].id == id) { in asoc_qcom_of_xlate_dai_name()
463 *dai_name = variant->dai_driver[i].name; in asoc_qcom_of_xlate_dai_name()
482 int i; in lpass_cpu_regmap_writeable() local
484 for (i = 0; i < v->i2s_ports; ++i) in lpass_cpu_regmap_writeable()
485 if (reg == LPAIF_I2SCTL_REG(v, i)) in lpass_cpu_regmap_writeable()
488 for (i = 0; i < v->irq_ports; ++i) { in lpass_cpu_regmap_writeable()
489 if (reg == LPAIF_IRQEN_REG(v, i)) in lpass_cpu_regmap_writeable()
491 if (reg == LPAIF_IRQCLEAR_REG(v, i)) in lpass_cpu_regmap_writeable()
[all …]
/sound/drivers/opl4/
Dopl4_synth.c276 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/pci/lola/
Dlola_proc.c51 int i, j, num_clocks; in print_clock_widget() local
57 for (i = 0; i < num_clocks; i += 4) { in print_clock_widget()
63 i, 0, &val, &res_ex); in print_clock_widget()
71 if (i + j >= num_clocks) in print_clock_widget()
83 i + j, type, name, freq); in print_clock_widget()
102 int i, nid; in lola_proc_codec_read() local
113 for (i = 0; i < chip->pcm[CAPT].num_streams; i++, nid++) in lola_proc_codec_read()
115 for (i = 0; i < chip->pcm[PLAY].num_streams; i++, nid++) in lola_proc_codec_read()
117 for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) in lola_proc_codec_read()
120 for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) in lola_proc_codec_read()
[all …]
Dlola_mixer.c83 int i, err, nid; in lola_init_pins() local
85 for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { in lola_init_pins()
86 err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); in lola_init_pins()
89 if (chip->pin[dir].pins[i].is_analog) in lola_init_pins()
242 int i;
246 for (i = 0; i < LOLA_MIXER_DIM; i++) {
247 if (mask & (1 << i)) {
248 writew(*gains, &chip->mixer.array->src_gain[i]);
260 for (i = 0; i < LOLA_MIXER_DIM; i++) {
261 if (mask & (1 << i)) {
[all …]
/sound/soc/sprd/
Dsprd-pcm-dma.c56 int size, ret, i; in sprd_pcm_open() local
83 for (i = 0; i < hw_chan; i++) { in sprd_pcm_open()
84 struct sprd_pcm_dma_data *data = &dma_private->data[i]; in sprd_pcm_open()
101 for (i = 0; i < hw_chan; i++) { in sprd_pcm_open()
102 struct sprd_pcm_dma_data *data = &dma_private->data[i]; in sprd_pcm_open()
119 int i; in sprd_pcm_close() local
121 for (i = 0; i < dma_private->hw_chan; i++) { in sprd_pcm_close()
122 struct sprd_pcm_dma_data *data = &dma_private->data[i]; in sprd_pcm_close()
144 int i; in sprd_pcm_release_dma_channel() local
146 for (i = 0; i < SPRD_PCM_CHANNEL_MAX; i++) { in sprd_pcm_release_dma_channel()
[all …]
/sound/hda/
Dhdmi_chmap.c221 int i, j; in init_channel_allocations() local
224 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in init_channel_allocations()
225 p = channel_allocations + i; in init_channel_allocations()
238 int i; in get_channel_allocation_order() local
240 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in get_channel_allocation_order()
241 if (channel_allocations[i].ca_index == ca) in get_channel_allocation_order()
244 return i; in get_channel_allocation_order()
249 int i, j; in snd_hdac_print_channel_allocation() local
251 for (i = 0, j = 0; i < ARRAY_SIZE(cea_speaker_allocation_names); i++) { in snd_hdac_print_channel_allocation()
252 if (spk_alloc & (1 << i)) in snd_hdac_print_channel_allocation()
[all …]
/sound/usb/caiaq/
Daudio.c30 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument
31 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
82 int i; in all_substreams_zero() local
83 for (i = 0; i < MAX_STREAMS; i++) in all_substreams_zero()
84 if (subs[i] != NULL) in all_substreams_zero()
91 int i, ret; in stream_start() local
107 for (i = 0; i < N_URBS; i++) { in stream_start()
108 ret = usb_submit_urb(cdev->data_urbs_in[i], GFP_ATOMIC); in stream_start()
111 i, ret); in stream_start()
122 int i; in stream_stop() local
[all …]
/sound/soc/sof/
Dnocodec.c28 int i; in sof_nocodec_bes_setup() local
34 for (i = 0; i < link_num; i++) { in sof_nocodec_bes_setup()
39 links[i].name = devm_kasprintf(dev, GFP_KERNEL, in sof_nocodec_bes_setup()
40 "NoCodec-%d", i); in sof_nocodec_bes_setup()
41 if (!links[i].name) in sof_nocodec_bes_setup()
44 links[i].stream_name = links[i].name; in sof_nocodec_bes_setup()
46 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup()
47 links[i].codecs = &dlc[1]; in sof_nocodec_bes_setup()
48 links[i].platforms = &dlc[2]; in sof_nocodec_bes_setup()
50 links[i].num_cpus = 1; in sof_nocodec_bes_setup()
[all …]
/sound/isa/wavefront/
Dwavefront_synth.c233 int i; in wavefront_errorstr() local
235 for (i = 0; wavefront_errors[i].errstr; i++) { in wavefront_errorstr()
236 if (wavefront_errors[i].errno == errnum) { in wavefront_errorstr()
237 return wavefront_errors[i].errstr; in wavefront_errorstr()
248 int i; in wavefront_get_command() local
250 for (i = 0; wavefront_commands[i].cmd != 0; i++) { in wavefront_get_command()
251 if (cmd == wavefront_commands[i].cmd) { in wavefront_get_command()
252 return &wavefront_commands[i]; in wavefront_get_command()
279 int i; in wavefront_wait() local
285 for (i = 0; i < wait_usecs; i += 5) { in wavefront_wait()
[all …]
/sound/pci/pcxhr/
Dpcxhr_mixer.c130 int is_capture, i; in pcxhr_analog_vol_put() local
134 for (i = 0; i < 2; i++) { in pcxhr_analog_vol_put()
135 int new_volume = ucontrol->value.integer.value[i]; in pcxhr_analog_vol_put()
137 &chip->analog_capture_volume[i] : in pcxhr_analog_vol_put()
138 &chip->analog_playback_volume[i]; in pcxhr_analog_vol_put()
165 is_capture, i); in pcxhr_analog_vol_put()
168 is_capture, i); in pcxhr_analog_vol_put()
206 int i, changed = 0; in pcxhr_audio_sw_put() local
208 for(i = 0; i < 2; i++) { in pcxhr_audio_sw_put()
209 if (chip->analog_playback_active[i] != in pcxhr_audio_sw_put()
[all …]
/sound/pci/ice1712/
Dprodigy_hifi.c158 int i; in wm8766_spi_send_word() local
159 for (i = 0; i < 16; i++) { in wm8766_spi_send_word()
198 int i; in ak4396_send_word() local
199 for (i = 0; i < 16; i++) { in ak4396_send_word()
256 int i; in ak4396_dac_vol_get() local
258 for (i = 0; i < 2; i++) in ak4396_dac_vol_get()
259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
268 int i; in ak4396_dac_vol_put() local
272 for (i = 0; i < 2; i++) { in ak4396_dac_vol_put()
273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
[all …]
/sound/pci/cs46xx/
Ddsp_spos.c48 unsigned int i = 0, j, nreallocated = 0; in shadow_and_reallocate_code() local
56 while (i < size) { in shadow_and_reallocate_code()
57 loval = data[i++]; in shadow_and_reallocate_code()
58 hival = data[i++]; in shadow_and_reallocate_code()
115 int i; in get_segment_desc() local
116 for (i = 0;i < module->nsegments; ++i) { in get_segment_desc()
117 if (module->segments[i].segment_type == seg_type) { in get_segment_desc()
118 return (module->segments + i); in get_segment_desc()
127 int index = ins->symbol_table.nsymbols,i; in find_free_symbol_index() local
129 for (i = ins->symbol_table.highest_frag_index; i < ins->symbol_table.nsymbols; ++i) { in find_free_symbol_index()
[all …]
/sound/pci/echoaudio/
Dechoaudio_dsp.c44 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/soc/generic/
Dsimple-card-utils.c20 int i; in asoc_simple_fixup_sample_fmt() local
34 for (i = 0; i < ARRAY_SIZE(of_sample_fmt_table); i++) { in asoc_simple_fixup_sample_fmt()
36 of_sample_fmt_table[i].fmt)) { in asoc_simple_fixup_sample_fmt()
38 snd_mask_set(mask, of_sample_fmt_table[i].val); in asoc_simple_fixup_sample_fmt()
143 int n, i, ret; in asoc_simple_parse_tdm_width_map() local
169 for (i = 0; i < n / 3; ++i) { in asoc_simple_parse_tdm_width_map()
170 dai->tdm_width_map[i].sample_bits = *p++; in asoc_simple_parse_tdm_width_map()
171 dai->tdm_width_map[i].slot_width = *p++; in asoc_simple_parse_tdm_width_map()
172 dai->tdm_width_map[i].slot_count = *p++; in asoc_simple_parse_tdm_width_map()
175 dai->n_tdm_widths = i; in asoc_simple_parse_tdm_width_map()
[all …]
/sound/soc/codecs/
Drt715-sdca.c137 unsigned int gain_val, i, k_changed = 0; in rt715_sdca_set_amp_gain_put() local
140 for (i = 0; i < 2; i++) { in rt715_sdca_set_amp_gain_put()
141 if (ucontrol->value.integer.value[i] != rt715->kctl_2ch_orig[i]) { in rt715_sdca_set_amp_gain_put()
147 for (i = 0; i < 2; i++) { in rt715_sdca_set_amp_gain_put()
148 rt715->kctl_2ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_put()
150 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, in rt715_sdca_set_amp_gain_put()
152 ret = regmap_write(rt715->mbq_regmap, mc->reg + i, gain_val); in rt715_sdca_set_amp_gain_put()
155 mc->reg + i, gain_val); in rt715_sdca_set_amp_gain_put()
172 unsigned int gain_val, i; in rt715_sdca_set_amp_gain_4ch_put() local
175 for (i = 0; i < 4; i++) { in rt715_sdca_set_amp_gain_4ch_put()
[all …]
/sound/firewire/motu/
Damdtp-motu.c55 int i, err; in amdtp_motu_set_parameters() local
60 for (i = 0; i < ARRAY_SIZE(snd_motu_clock_rates); ++i) { in amdtp_motu_set_parameters()
61 if (snd_motu_clock_rates[i] == rate) { in amdtp_motu_set_parameters()
62 mode = i >> 1; in amdtp_motu_set_parameters()
66 if (i == ARRAY_SIZE(snd_motu_clock_rates)) in amdtp_motu_set_parameters()
104 int i, c; in read_pcm_s32() local
113 for (i = 0; i < data_blocks; ++i) { in read_pcm_s32()
140 int i, c; in write_pcm_s32() local
149 for (i = 0; i < data_blocks; ++i) { in write_pcm_s32()
170 unsigned int channels, i, c; in write_pcm_silence() local
[all …]
/sound/firewire/fireface/
Dff-protocol-former.c42 int i; in parse_clock_bits() local
44 for (i = 0; i < ARRAY_SIZE(rate_entries); ++i) { in parse_clock_bits()
45 rate_entry = rate_entries + i; in parse_clock_bits()
51 if (i == ARRAY_SIZE(rate_entries)) in parse_clock_bits()
57 for (i = 0; i < ARRAY_SIZE(clk_entries); ++i) { in parse_clock_bits()
58 clk_entry = clk_entries + i; in parse_clock_bits()
64 if (i == ARRAY_SIZE(clk_entries)) in parse_clock_bits()
91 int i; in former_switch_fetching_mode() local
95 for (i = 0; i < SND_FF_STREAM_MODE_COUNT; ++i) in former_switch_fetching_mode()
96 count = max(count, ff->spec->pcm_playback_channels[i]); in former_switch_fetching_mode()
[all …]

12345678910>>...37