Lines Matching defs:rate
472 unsigned int rate;
972 getsamplerate(struct cmdif *cif, unsigned char *intdec, unsigned int *rate)
995 *rate = (unsigned int)p[0];
997 *rate = (unsigned int)p[1];
998 snd_printdd("getsampleformat %d %d %d\n", intdec[0], intdec[1], *rate);
1026 setsamplerate(struct cmdif *cif, unsigned char *intdec, unsigned int rate)
1032 snd_printdd("setsamplerate intdec: %d,%d rate: %d\n", intdec[0],
1033 intdec[1], rate);
1035 M = ((rate == 48000) ? 47999 : rate) * 65536;
1049 *intdec, rate);
1446 unsigned int rate, channels;
1454 runtime->channels, runtime->format, runtime->rate);
1459 rate = runtime->rate;
1462 if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE)
1468 if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE)
1523 data->rate = 0;
1525 if (data->rate != rate || data->format != format ||
1527 data->rate = rate;
1532 || setsamplerate(cif, data->intdec, rate))
1896 unsigned int rate;
1934 if (!(getsamplerate(cif, data->intdec, &rate)))
1935 snd_iprintf(buffer, "rate: %d\n", rate);
1945 if (!(getsamplerate(cif, data->intdec, &rate)))
1946 snd_iprintf(buffer, "rate: %d\n", rate);