Lines Matching defs:rate

226 #define ES_REG_1371_SMPRATE 0x10	/* W/R: Codec rate converter interface register */
227 #define ES_1371_SRC_RAM_ADDRO(o) (((o)&0x7f)<<25)/* address of the sample rate converter */
229 #define ES_1371_SRC_RAM_ADDRI(i) (((i)>>25)&0x7f)/* address of the sample rate converter */
230 #define ES_1371_SRC_RAM_WE (1<<24) /* R/W: read/write control for sample rate converter */
231 #define ES_1371_SRC_RAM_BUSY (1<<23) /* R/O: sample rate memory is busy */
232 #define ES_1371_SRC_DISABLE (1<<22) /* sample rate converter disable */
236 #define ES_1371_SRC_RAM_DATAO(o) (((o)&0xffff)<<0)/* current value of the sample rate converter */
238 #define ES_1371_SRC_RAM_DATAI(i) (((i)>>0)&0xffff)/* current value of the sample rate converter */
334 * Sample rate converter addresses
719 static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate)
724 n = rate / 3000;
728 freq = ((48000UL << 15) / rate) * n;
729 if (rate >= 24000) {
750 static void snd_es1371_dac1_rate(struct ensoniq * ensoniq, unsigned int rate)
755 freq = ((rate << 15) + 1500) / 3000;
771 static void snd_es1371_dac2_rate(struct ensoniq * ensoniq, unsigned int rate)
776 freq = ((rate << 15) + 1500) / 3000;
875 if (runtime->rate == 48000)
891 switch (runtime->rate) {
902 snd_es1371_dac1_rate(ensoniq, runtime->rate);
935 ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate));
942 snd_es1371_dac2_rate(ensoniq, runtime->rate);
973 ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate));
980 snd_es1371_adc_rate(ensoniq, runtime->rate);
1047 (SNDRV_PCM_RATE_KNOT | /* 5512Hz rate */
1959 /* Init the sample rate converter */
1978 * enabling the sample rate converter without properly programming