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.c686 unsigned long flags, cnt; in sb16_audio_output_block() local
709 cnt = count; in sb16_audio_output_block()
711 cnt >>= 1; in sb16_audio_output_block()
712 cnt--; in sb16_audio_output_block()
725 sb_dsp_command(devc, (unsigned char) (cnt & 0xff)); in sb16_audio_output_block()
726 sb_dsp_command(devc, (unsigned char) (cnt >> 8)); in sb16_audio_output_block()
743 unsigned long flags, cnt; in sb16_audio_start_input() local
757 cnt = count; in sb16_audio_start_input()
759 cnt >>= 1; in sb16_audio_start_input()
760 cnt--; in sb16_audio_start_input()
[all …]
Dad1848.c1027 unsigned long flags, cnt; in ad1848_output_block() local
1031 cnt = count; in ad1848_output_block()
1035 cnt /= 4; in ad1848_output_block()
1040 cnt >>= 1; in ad1848_output_block()
1043 cnt >>= 1; in ad1848_output_block()
1044 cnt--; in ad1848_output_block()
1048 cnt == devc->xfer_count) in ad1848_output_block()
1058 ad_write(devc, 15, (unsigned char) (cnt & 0xff)); in ad1848_output_block()
1059 ad_write(devc, 14, (unsigned char) ((cnt >> 8) & 0xff)); in ad1848_output_block()
1061 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.c691 int i, x, cnt, cnt2; in wavefront_get_patch_status() local
718 for (i = 0, cnt = 0, cnt2 = 0; i < WF_MAX_PATCH; i++) { in wavefront_get_patch_status()
720 cnt++; in wavefront_get_patch_status()
727 snd_printk ("%d patch slots filled, %d in use\n", cnt, cnt2); in wavefront_get_patch_status()
739 int i, x, l, cnt; in wavefront_get_program_status() local
768 for (i = 0, cnt = 0; i < WF_MAX_PROGRAM; i++) { in wavefront_get_program_status()
770 cnt++; in wavefront_get_program_status()
774 snd_printk ("%d programs slots in use\n", cnt); in wavefront_get_program_status()
/sound/soc/codecs/
Dak4613.c103 int cnt; member
247 priv->cnt--; in ak4613_dai_shutdown()
248 if (priv->cnt < 0) { in ak4613_dai_shutdown()
250 priv->cnt = 0; in ak4613_dai_shutdown()
252 if (!priv->cnt) in ak4613_dai_shutdown()
307 priv->cnt++; in ak4613_dai_startup()
591 priv->cnt = 0; in ak4613_i2c_probe()
Dda7210.c994 u8 pll_div1, pll_div2, pll_div3, cnt; in da7210_set_dai_pll() local
1001 for (cnt = 0; cnt < ARRAY_SIZE(da7210_pll_div); cnt++) { in da7210_set_dai_pll()
1003 if ((fref == da7210_pll_div[cnt].fref) && in da7210_set_dai_pll()
1004 (da7210->master == da7210_pll_div[cnt].mode) && in da7210_set_dai_pll()
1005 (fout == da7210_pll_div[cnt].fout)) { in da7210_set_dai_pll()
1007 pll_div1 = da7210_pll_div[cnt].div1; in da7210_set_dai_pll()
1008 pll_div2 = da7210_pll_div[cnt].div2; in da7210_set_dai_pll()
1009 pll_div3 = da7210_pll_div[cnt].div3; in da7210_set_dai_pll()
1013 if (cnt >= ARRAY_SIZE(da7210_pll_div)) in da7210_set_dai_pll()
Dda9055.c1289 u8 pll_frac_top, pll_frac_bot, pll_integer, cnt; in da9055_set_dai_pll() local
1299 for (cnt = 0; cnt < ARRAY_SIZE(da9055_pll_div); cnt++) { in da9055_set_dai_pll()
1301 if ((fref == da9055_pll_div[cnt].fref) && in da9055_set_dai_pll()
1302 (da9055->master == da9055_pll_div[cnt].mode) && in da9055_set_dai_pll()
1303 (fout == da9055_pll_div[cnt].fout)) { in da9055_set_dai_pll()
1305 pll_frac_top = da9055_pll_div[cnt].frac_top; in da9055_set_dai_pll()
1306 pll_frac_bot = da9055_pll_div[cnt].frac_bot; in da9055_set_dai_pll()
1307 pll_integer = da9055_pll_div[cnt].integer; in da9055_set_dai_pll()
1311 if (cnt >= ARRAY_SIZE(da9055_pll_div)) in da9055_set_dai_pll()
/sound/pci/
Dintel8x0.c994 unsigned int cnt; in snd_intel8x0_setup_pcm_out() local
1000 cnt = igetdword(chip, ICHREG(ALI_SCR)); in snd_intel8x0_setup_pcm_out()
1001 cnt &= ~ICH_ALI_SC_PCM_246_MASK; in snd_intel8x0_setup_pcm_out()
1003 cnt |= ICH_ALI_SC_PCM_4; in snd_intel8x0_setup_pcm_out()
1005 cnt |= ICH_ALI_SC_PCM_6; in snd_intel8x0_setup_pcm_out()
1006 iputdword(chip, ICHREG(ALI_SCR), cnt); in snd_intel8x0_setup_pcm_out()
1009 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_setup_pcm_out()
1010 cnt &= ~ICH_SIS_PCM_246_MASK; in snd_intel8x0_setup_pcm_out()
1012 cnt |= ICH_SIS_PCM_4; in snd_intel8x0_setup_pcm_out()
1014 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/soc/intel/skylake/
Dskl-nhlt.c200 int cnt; in skl_nhlt_trim_space() local
203 cnt = 0; in skl_nhlt_trim_space()
206 s[cnt++] = s[i]; in skl_nhlt_trim_space()
209 s[cnt] = '\0'; in skl_nhlt_trim_space()
/sound/pci/cs46xx/
Dcs46xx_lib.c682 int cnt; in snd_cs46xx_proc_start() local
697 for (cnt = 0; cnt < 25; cnt++) { in snd_cs46xx_proc_start()
773 unsigned int frameGroupLength, cnt; in snd_cs46xx_set_capture_sample_rate() local
850 for (cnt = 2; cnt <= 64; cnt *= 2) { in snd_cs46xx_set_capture_sample_rate()
851 if (((rate / cnt) * cnt) != rate) in snd_cs46xx_set_capture_sample_rate()
857 for (cnt = 5; cnt <= 125; cnt *= 5) { in snd_cs46xx_set_capture_sample_rate()
858 if (((rate / cnt) * cnt) != rate) in snd_cs46xx_set_capture_sample_rate()
/sound/usb/
Dmixer.c1145 int c, cnt, val, err; in mixer_ctl_feature_get() local
1149 cnt = 0; in mixer_ctl_feature_get()
1153 err = snd_usb_get_cur_mix_value(cval, c + 1, cnt, &val); in mixer_ctl_feature_get()
1157 ucontrol->value.integer.value[cnt] = val; in mixer_ctl_feature_get()
1158 cnt++; in mixer_ctl_feature_get()
1177 int c, cnt, val, oval, err; in mixer_ctl_feature_put() local
1181 cnt = 0; in mixer_ctl_feature_put()
1185 err = snd_usb_get_cur_mix_value(cval, c + 1, cnt, &oval); in mixer_ctl_feature_put()
1188 val = ucontrol->value.integer.value[cnt]; in mixer_ctl_feature_put()
1191 snd_usb_set_cur_mix_value(cval, c + 1, cnt, val); in mixer_ctl_feature_put()
[all …]
/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/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/davinci/
Ddavinci-mcasp.c212 u32 cnt; in mcasp_start_tx() local
228 cnt = 0; in mcasp_start_tx()
230 (cnt < 100000)) in mcasp_start_tx()
231 cnt++; in mcasp_start_tx()
/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.c811 size_t cnt, bufsize, pos; in pcm_pointer() local
813 cnt = le32_to_cpu(*pipe->dma_counter); in pcm_pointer()
814 pipe->position += cnt - pipe->last_counter; in pcm_pointer()
815 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/pci/hda/
Dpatch_sigmatel.c648 #define STAC_ANALOG_LOOPBACK(verb_read, verb_write, cnt) \ argument
652 .count = cnt, \