Lines Matching defs:rate

292 	return 104857600000000 / rate; // 100 MHz
293 return 110100480000000 / rate; // 105 MHz
1001 * sample rate greater than 96kHz. The card reports the corresponding
1002 * single speed. So the best means seems to get spdif rate when
1092 static void hdsp_set_dds_value(struct hdsp *hdsp, int rate)
1096 if (rate >= 112000)
1097 rate /= 4;
1098 else if (rate >= 56000)
1099 rate /= 2;
1102 n = div_u64(n, rate);
1111 static int hdsp_set_rate(struct hdsp *hdsp, int rate, int called_internally)
1126 "device is not running as a clock master: cannot set sample rate.\n");
1139 else if (rate != external_freq) {
1141 "No AutoSync source for requested rate\n");
1149 /* Changing from a "single speed" to a "double speed" rate is
1156 exists for externally-driven rate changes. All we can do
1157 is to flag rate changes in the read/write routines. */
1159 if (rate > 96000 && hdsp->io_type != H9632)
1162 switch (rate) {
1226 hdsp_set_dds_value(hdsp, rate);
1228 if (rate >= 128000) {
1230 } else if (rate > 48000) {
1254 hdsp->system_sample_rate = rate;
1964 int rate;
1976 rate = 32000;
1979 rate = 44100;
1982 rate = 48000;
1985 rate = 64000;
1988 rate = 88200;
1991 rate = 96000;
1994 rate = 128000;
1997 rate = 176400;
2000 rate = 192000;
2003 rate = 48000;
2007 hdsp_set_rate(hdsp, rate, 1);
2828 * dds_value = n / rate
2829 * rate = n / dds_value
2841 int rate = hdsp->system_sample_rate + offset_hz;
2842 hdsp_set_dds_value(hdsp, rate);
3582 snd_iprintf(buffer, "IEC958 sample rate: %d\n", x);
3584 snd_iprintf(buffer, "IEC958 sample rate: Error flag set\n");
3785 /* set a default rate so that the channel map is set up.
4049 /* how to make sure that the rate matches an externally-set one ?