Lines Matching refs:rate
18 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() argument
22 unsigned int rate; in parse_clock_bits() member
49 *rate = rate_entry->rate; in parse_clock_bits()
69 static int latter_get_clock(struct snd_ff *ff, unsigned int *rate, in latter_get_clock() argument
82 return parse_clock_bits(data, rate, src); in latter_get_clock()
100 static int latter_allocate_resources(struct snd_ff *ff, unsigned int rate) in latter_allocate_resources() argument
110 if (rate % 48000 == 0) in latter_allocate_resources()
112 else if (rate % 44100 == 0) in latter_allocate_resources()
114 else if (rate % 32000 == 0) in latter_allocate_resources()
119 if (rate >= 64000 && rate < 128000) in latter_allocate_resources()
121 else if (rate >= 128000) in latter_allocate_resources()
140 if (curr_rate == rate) in latter_allocate_resources()
147 if (rate == amdtp_rate_table[i]) in latter_allocate_resources()
176 static int latter_begin_session(struct snd_ff *ff, unsigned int rate) in latter_begin_session() argument
184 if (rate >= 32000 && rate <= 48000) in latter_begin_session()
186 else if (rate >= 64000 && rate <= 96000) in latter_begin_session()
188 else if (rate >= 128000 && rate <= 192000) in latter_begin_session()
239 unsigned int rate; in latter_dump_status() local
266 err = parse_clock_bits(data, &rate, &src); in latter_dump_status()
273 snd_iprintf(buffer, "Referred clock: %s %d\n", label, rate); in latter_dump_status()