Lines Matching defs:rate

289 	return 104857600000000 / rate; // 100 MHz
290 return 110100480000000 / rate; // 105 MHz
996 * sample rate greater than 96kHz. The card reports the corresponding
997 * single speed. So the best means seems to get spdif rate when
1087 static void hdsp_set_dds_value(struct hdsp *hdsp, int rate)
1091 if (rate >= 112000)
1092 rate /= 4;
1093 else if (rate >= 56000)
1094 rate /= 2;
1097 n = div_u64(n, rate);
1106 static int hdsp_set_rate(struct hdsp *hdsp, int rate, int called_internally)
1121 "device is not running as a clock master: cannot set sample rate.\n");
1134 else if (rate != external_freq) {
1136 "No AutoSync source for requested rate\n");
1144 /* Changing from a "single speed" to a "double speed" rate is
1151 exists for externally-driven rate changes. All we can do
1152 is to flag rate changes in the read/write routines. */
1154 if (rate > 96000 && hdsp->io_type != H9632)
1157 switch (rate) {
1221 hdsp_set_dds_value(hdsp, rate);
1223 if (rate >= 128000) {
1225 } else if (rate > 48000) {
1249 hdsp->system_sample_rate = rate;
1962 int rate;
1974 rate = 32000;
1977 rate = 44100;
1980 rate = 48000;
1983 rate = 64000;
1986 rate = 88200;
1989 rate = 96000;
1992 rate = 128000;
1995 rate = 176400;
1998 rate = 192000;
2001 rate = 48000;
2005 hdsp_set_rate(hdsp, rate, 1);
2826 * dds_value = n / rate
2827 * rate = n / dds_value
2839 int rate = hdsp->system_sample_rate + offset_hz;
2840 hdsp_set_dds_value(hdsp, rate);
3655 snd_iprintf(buffer, "IEC958 sample rate: %d\n", x);
3657 snd_iprintf(buffer, "IEC958 sample rate: Error flag set\n");
3855 /* set a default rate so that the channel map is set up.
4092 /* how to make sure that the rate matches an externally-set one ?