Lines Matching refs:rate
71 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() argument
76 unsigned int rate; in parse_clock_bits() member
121 *rate = rate_entry->rate; in parse_clock_bits()
141 static int latter_get_clock(struct snd_ff *ff, unsigned int *rate, in latter_get_clock() argument
154 return parse_clock_bits(data, rate, src, ff->unit_version); in latter_get_clock()
172 static int latter_allocate_resources(struct snd_ff *ff, unsigned int rate) in latter_allocate_resources() argument
182 if (rate % 48000 == 0) in latter_allocate_resources()
184 else if (rate % 44100 == 0) in latter_allocate_resources()
186 else if (rate % 32000 == 0) in latter_allocate_resources()
191 if (rate >= 64000 && rate < 128000) in latter_allocate_resources()
193 else if (rate >= 128000) in latter_allocate_resources()
212 if (curr_rate == rate) in latter_allocate_resources()
219 if (rate == amdtp_rate_table[i]) in latter_allocate_resources()
248 static int latter_begin_session(struct snd_ff *ff, unsigned int rate) in latter_begin_session() argument
259 if (rate >= 32000 && rate <= 48000) in latter_begin_session()
261 else if (rate >= 64000 && rate <= 96000) in latter_begin_session()
263 else if (rate >= 128000 && rate <= 192000) in latter_begin_session()
271 if (rate >= 32000 && rate <= 48000) in latter_begin_session()
273 else if (rate >= 64000 && rate <= 96000) in latter_begin_session()
275 else if (rate >= 128000 && rate <= 192000) in latter_begin_session()
330 unsigned int rate; in latter_dump_status() local
366 err = parse_clock_bits(data, &rate, &src, ff->unit_version); in latter_dump_status()
373 snd_iprintf(buffer, "Referred clock: %s %d\n", label, rate); in latter_dump_status()