Home
last modified time | relevance | path

Searched refs:rate_table (Results 1 – 11 of 11) sorted by relevance

/sound/pci/ac97/
Dac97_pcm.c169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
322 static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *… in get_pslots() argument
354 *rate_table = 0; in get_pslots()
367 *rate_table = 1; in get_pslots()
373 *rate_table = 2; in get_pslots()
392 *rate_table = 0; in get_pslots()
454 unsigned char rate_table[2][4]; in snd_ac97_pcm_assign() local
464 memset(rate_table, 0, sizeof(rate_table)); in snd_ac97_pcm_assign()
470 avail_slots[0][i] = get_pslots(codec, &rate_table[0][i], &spdif_slots[i]); in snd_ac97_pcm_assign()
517 rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; in snd_ac97_pcm_assign()
[all …]
/sound/usb/
Dformat.c180 fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL); in parse_audio_format_rates_v1()
181 if (fp->rate_table == NULL) { in parse_audio_format_rates_v1()
208 fp->rate_table[fp->nr_rates] = rate; in parse_audio_format_rates_v1()
316 if (fp->rate_table) in parse_uac2_sample_rate_range()
317 fp->rate_table[nr_rates] = rate; in parse_uac2_sample_rate_range()
399 kfree(fp->rate_table); in parse_audio_format_rates_v2()
400 fp->rate_table = NULL; in parse_audio_format_rates_v2()
409 fp->rate_table = kmalloc(sizeof(int) * fp->nr_rates, GFP_KERNEL); in parse_audio_format_rates_v2()
410 if (!fp->rate_table) { in parse_audio_format_rates_v2()
Dquirks-table.h1640 .rate_table = (unsigned int[]) { 44100 }
1658 .rate_table = (unsigned int[]) { 44100 }
1707 .rate_table = (unsigned int[]) { 44100 }
1725 .rate_table = (unsigned int[]) { 44100 }
2124 .rate_table = (unsigned int[]) {
2150 .rate_table = (unsigned int[]) {
2195 .rate_table = (unsigned int[]) {
2221 .rate_table = (unsigned int[]) {
2265 .rate_table = (unsigned int[]) {
2289 .rate_table = (unsigned int[]) {
[all …]
Dquirks.c150 unsigned *rate_table = NULL; in create_fixed_stream_quirk() local
163 rate_table = kmemdup(fp->rate_table, in create_fixed_stream_quirk()
165 if (!rate_table) { in create_fixed_stream_quirk()
169 fp->rate_table = rate_table; in create_fixed_stream_quirk()
203 kfree(rate_table); in create_fixed_stream_quirk()
Dcard.h29 unsigned int *rate_table; /* rate table */ member
Dstream.c50 kfree(fp->rate_table); in free_substream()
718 kfree(fp->rate_table); in snd_usb_parse_audio_interface()
733 kfree(fp->rate_table); in snd_usb_parse_audio_interface()
Dproc.c106 snd_iprintf(buffer, "%d", fp->rate_table[i]); in proc_dump_substream_formats()
Dpcm.c113 if (fp->rate_table[i] == subs->cur_rate) in find_format()
598 if (fp->rate_table[i] == rate) { in match_endpoint_audioformats()
1127 rate_list[count++] = fp->rate_table[i]; in snd_usb_pcm_check_knot()
/sound/soc/codecs/
Dmax98925.c211 } rate_table[] = { variable
265 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98925_rate_value()
266 if (rate_table[i].rate >= rate) { in max98925_rate_value()
267 *value = rate_table[i].sr; in max98925_rate_value()
268 *n = rate_table[i].divisors[clock][0]; in max98925_rate_value()
269 *m = rate_table[i].divisors[clock][1]; in max98925_rate_value()
Dmax98088.c935 } rate_table[] = { variable
952 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in rate_value()
953 if (rate_table[i].rate >= rate) { in rate_value()
954 *value = rate_table[i].sr; in rate_value()
958 *value = rate_table[0].sr; in rate_value()
Dmax98095.c914 } rate_table[] = { variable
931 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in rate_value()
932 if (rate_table[i].rate >= rate) { in rate_value()
933 *value = rate_table[i].sr; in rate_value()
937 *value = rate_table[0].sr; in rate_value()