Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 23 of 23) sorted by relevance

/sound/soc/sh/
Dsiu_dai.c262 int cnt; in siu_dai_spbstart() local
269 for (cnt = 0; cnt < PRAM0_SIZE; cnt++, add++, ptr++) in siu_dai_spbstart()
274 for (cnt = 0; cnt < PRAM1_SIZE; cnt++, add++, ptr++) in siu_dai_spbstart()
279 for (cnt = 0; cnt < XRAM0_SIZE + XRAM1_SIZE + XRAM2_SIZE; cnt++, add++) in siu_dai_spbstart()
284 for (cnt = 0; cnt < YRAM_DEF_SIZE; cnt++, add++) in siu_dai_spbstart()
285 siu_write32(add, ydef[cnt]); in siu_dai_spbstart()
289 for (cnt = 0; cnt < YRAM_FIR_SIZE; cnt++, add++) in siu_dai_spbstart()
290 siu_write32(add, fw->yram_fir_coeff[cnt]); in siu_dai_spbstart()
294 for (cnt = 0; cnt < YRAM_IIR_SIZE; cnt++, add++) in siu_dai_spbstart()
306 cnt = 0x10000; in siu_dai_spbstart()
[all …]
/sound/oss/
Dpas2_pcm.c245 unsigned long flags, cnt; in pas_audio_output_block() local
247 cnt = count; in pas_audio_output_block()
249 cnt >>= 1; in pas_audio_output_block()
253 cnt == pcm_count) in pas_audio_output_block()
290 int cnt; in pas_audio_start_input() local
292 cnt = count; in pas_audio_start_input()
294 cnt >>= 1; in pas_audio_start_input()
298 cnt == pcm_count) in pas_audio_start_input()
Dsb_audio.c690 unsigned long flags, cnt; in sb16_audio_output_block() local
713 cnt = count; in sb16_audio_output_block()
715 cnt >>= 1; in sb16_audio_output_block()
716 cnt--; in sb16_audio_output_block()
729 sb_dsp_command(devc, (unsigned char) (cnt & 0xff)); in sb16_audio_output_block()
730 sb_dsp_command(devc, (unsigned char) (cnt >> 8)); in sb16_audio_output_block()
747 unsigned long flags, cnt; in sb16_audio_start_input() local
761 cnt = count; in sb16_audio_start_input()
763 cnt >>= 1; in sb16_audio_start_input()
764 cnt--; in sb16_audio_start_input()
[all …]
Dad1848.c1032 unsigned long flags, cnt; in ad1848_output_block() local
1036 cnt = count; in ad1848_output_block()
1040 cnt /= 4; in ad1848_output_block()
1045 cnt >>= 1; in ad1848_output_block()
1048 cnt >>= 1; in ad1848_output_block()
1049 cnt--; in ad1848_output_block()
1053 cnt == devc->xfer_count) in ad1848_output_block()
1063 ad_write(devc, 15, (unsigned char) (cnt & 0xff)); in ad1848_output_block()
1064 ad_write(devc, 14, (unsigned char) ((cnt >> 8) & 0xff)); in ad1848_output_block()
1066 devc->xfer_count = cnt; in ad1848_output_block()
[all …]
Dswarm_cs4297a.c1671 int cnt, count_fr, cnt_by; in cs4297a_read() local
1704 cnt = (s->dma_adc.sb_end - s->dma_adc.sb_swptr) / 2; in cs4297a_read()
1713 if (count_fr < cnt) in cs4297a_read()
1714 cnt = count_fr; in cs4297a_read()
1715 cnt_by = cnt * FRAME_SAMPLE_BYTES; in cs4297a_read()
1723 cnt = (count * 2) / FRAME_SAMPLE_BYTES; in cs4297a_read()
1728 cnt = count / FRAME_SAMPLE_BYTES; in cs4297a_read()
1738 if (cnt <= 0) { in cs4297a_read()
1772 s->dma_adc.sb_swptr += cnt * 2; in cs4297a_read()
1795 int cnt; in cs4297a_write() local
[all …]
/sound/isa/wavefront/
Dwavefront_fx.c76 int cnt, in wavefront_fx_memset() argument
91 if (cnt == 1) { in wavefront_fx_memset()
109 for (i = 0; i < cnt; i++) { in wavefront_fx_memset()
117 if (i != cnt) { in wavefront_fx_memset()
120 page, addr, (unsigned long) data, cnt); in wavefront_fx_memset()
Dwavefront_synth.c690 int i, x, cnt, cnt2; in wavefront_get_patch_status() local
717 for (i = 0, cnt = 0, cnt2 = 0; i < WF_MAX_PATCH; i++) { in wavefront_get_patch_status()
719 cnt++; in wavefront_get_patch_status()
726 snd_printk ("%d patch slots filled, %d in use\n", cnt, cnt2); in wavefront_get_patch_status()
738 int i, x, l, cnt; in wavefront_get_program_status() local
767 for (i = 0, cnt = 0; i < WF_MAX_PROGRAM; i++) { in wavefront_get_program_status()
769 cnt++; in wavefront_get_program_status()
773 snd_printk ("%d programs slots in use\n", cnt); in wavefront_get_program_status()
/sound/soc/codecs/
Dda7210.c998 u8 pll_div1, pll_div2, pll_div3, cnt; in da7210_set_dai_pll() local
1005 for (cnt = 0; cnt < ARRAY_SIZE(da7210_pll_div); cnt++) { in da7210_set_dai_pll()
1007 if ((fref == da7210_pll_div[cnt].fref) && in da7210_set_dai_pll()
1008 (da7210->master == da7210_pll_div[cnt].mode) && in da7210_set_dai_pll()
1009 (fout == da7210_pll_div[cnt].fout)) { in da7210_set_dai_pll()
1011 pll_div1 = da7210_pll_div[cnt].div1; in da7210_set_dai_pll()
1012 pll_div2 = da7210_pll_div[cnt].div2; in da7210_set_dai_pll()
1013 pll_div3 = da7210_pll_div[cnt].div3; in da7210_set_dai_pll()
1017 if (cnt >= ARRAY_SIZE(da7210_pll_div)) in da7210_set_dai_pll()
Dda9055.c1292 u8 pll_frac_top, pll_frac_bot, pll_integer, cnt; in da9055_set_dai_pll() local
1302 for (cnt = 0; cnt < ARRAY_SIZE(da9055_pll_div); cnt++) { in da9055_set_dai_pll()
1304 if ((fref == da9055_pll_div[cnt].fref) && in da9055_set_dai_pll()
1305 (da9055->master == da9055_pll_div[cnt].mode) && in da9055_set_dai_pll()
1306 (fout == da9055_pll_div[cnt].fout)) { in da9055_set_dai_pll()
1308 pll_frac_top = da9055_pll_div[cnt].frac_top; in da9055_set_dai_pll()
1309 pll_frac_bot = da9055_pll_div[cnt].frac_bot; in da9055_set_dai_pll()
1310 pll_integer = da9055_pll_div[cnt].integer; in da9055_set_dai_pll()
1314 if (cnt >= ARRAY_SIZE(da9055_pll_div)) in da9055_set_dai_pll()
/sound/pci/
Dintel8x0.c998 unsigned int cnt; in snd_intel8x0_setup_pcm_out() local
1004 cnt = igetdword(chip, ICHREG(ALI_SCR)); in snd_intel8x0_setup_pcm_out()
1005 cnt &= ~ICH_ALI_SC_PCM_246_MASK; in snd_intel8x0_setup_pcm_out()
1007 cnt |= ICH_ALI_SC_PCM_4; in snd_intel8x0_setup_pcm_out()
1009 cnt |= ICH_ALI_SC_PCM_6; in snd_intel8x0_setup_pcm_out()
1010 iputdword(chip, ICHREG(ALI_SCR), cnt); in snd_intel8x0_setup_pcm_out()
1013 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_setup_pcm_out()
1014 cnt &= ~ICH_SIS_PCM_246_MASK; in snd_intel8x0_setup_pcm_out()
1016 cnt |= ICH_SIS_PCM_4; in snd_intel8x0_setup_pcm_out()
1018 cnt |= ICH_SIS_PCM_6; in snd_intel8x0_setup_pcm_out()
[all …]
Dintel8x0m.c891 unsigned int cnt, status, nstatus; in snd_intel8x0m_ich_chip_init() local
896 cnt = igetdword(chip, ICHREG(GLOB_STA)); in snd_intel8x0m_ich_chip_init()
897 iputdword(chip, ICHREG(GLOB_STA), cnt & status); in snd_intel8x0m_ich_chip_init()
900 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0m_ich_chip_init()
901 cnt &= ~(ICH_ACLINK); in snd_intel8x0m_ich_chip_init()
903 cnt |= (cnt & ICH_AC97COLD) == 0 ? ICH_AC97COLD : ICH_AC97WARM; in snd_intel8x0m_ich_chip_init()
904 iputdword(chip, ICHREG(GLOB_CNT), cnt); in snd_intel8x0m_ich_chip_init()
/sound/usb/
Dmixer.c1088 int c, cnt, val, err; in mixer_ctl_feature_get() local
1092 cnt = 0; in mixer_ctl_feature_get()
1096 err = get_cur_mix_value(cval, c + 1, cnt, &val); in mixer_ctl_feature_get()
1100 ucontrol->value.integer.value[cnt] = val; in mixer_ctl_feature_get()
1101 cnt++; in mixer_ctl_feature_get()
1120 int c, cnt, val, oval, err; in mixer_ctl_feature_put() local
1124 cnt = 0; in mixer_ctl_feature_put()
1128 err = get_cur_mix_value(cval, c + 1, cnt, &oval); in mixer_ctl_feature_put()
1131 val = ucontrol->value.integer.value[cnt]; in mixer_ctl_feature_put()
1134 set_cur_mix_value(cval, c + 1, cnt, val); in mixer_ctl_feature_put()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.c683 int cnt; in snd_cs46xx_proc_start() local
698 for (cnt = 0; cnt < 25; cnt++) { in snd_cs46xx_proc_start()
774 unsigned int frameGroupLength, cnt; in snd_cs46xx_set_capture_sample_rate() local
851 for (cnt = 2; cnt <= 64; cnt *= 2) { in snd_cs46xx_set_capture_sample_rate()
852 if (((rate / cnt) * cnt) != rate) in snd_cs46xx_set_capture_sample_rate()
858 for (cnt = 5; cnt <= 125; cnt *= 5) { in snd_cs46xx_set_capture_sample_rate()
859 if (((rate / cnt) * cnt) != rate) in snd_cs46xx_set_capture_sample_rate()
/sound/usb/caiaq/
Daudio.c357 int stream, pb, *cnt; in check_for_elapsed_periods() local
366 cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in check_for_elapsed_periods()
370 if (*cnt >= pb) { in check_for_elapsed_periods()
372 *cnt %= pb; in check_for_elapsed_periods()
/sound/soc/davinci/
Ddavinci-mcasp.c187 u32 cnt; in mcasp_start_tx() local
205 cnt = 0; in mcasp_start_tx()
207 TXSTATE) && (cnt < 100000)) in mcasp_start_tx()
208 cnt++; in mcasp_start_tx()
/sound/aoa/soundbus/i2sbus/
Dpcm.c341 int cnt; in i2sbus_pcm_prepare() local
506 cnt = 100; in i2sbus_pcm_prepare()
507 while (cnt-- && in i2sbus_pcm_prepare()
/sound/soc/sh/rcar/
Drsnd.h272 void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt);
/sound/oss/dmasound/
Ddmasound_atari.c1265 static int cnt; in AtaInterrupt()
1267 if (++cnt == 10) { in AtaInterrupt()
1269 cnt = 0; in AtaInterrupt()
/sound/pci/au88x0/
Dau88x0_eq.c557 vortex_Eqlzr_GetAllBands(vortex_t * vortex, u16 * gains, s32 *cnt)
574 *cnt = si * 2;
/sound/pci/echoaudio/
Dechoaudio.c819 size_t cnt, bufsize, pos; in pcm_pointer() local
821 cnt = le32_to_cpu(*pipe->dma_counter); in pcm_pointer()
822 pipe->position += cnt - pipe->last_counter; in pcm_pointer()
823 pipe->last_counter = cnt; in pcm_pointer()
/sound/usb/usx2y/
Dusbusx2yaudio.c95 int cnt = runtime->buffer_size - hwptr_done; in usX2Y_urb_capt_retire() local
96 int blen = cnt * usX2Y->stride; in usX2Y_urb_capt_retire()
/sound/core/
Dpcm_lib.c243 int cnt; in xrun_log_show() local
250 for (cnt = 0, idx = log->idx; cnt < XRUN_LOG_CNT; cnt++) { in xrun_log_show()
/sound/pci/hda/
Dpatch_sigmatel.c644 #define STAC_ANALOG_LOOPBACK(verb_read, verb_write, cnt) \ argument
648 .count = cnt, \