Searched refs:srates (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/usb/gadget/function/ |
D | u_audio.c | 1079 static int get_max_srate(const int *srates) in get_max_srate() argument 1084 if (srates[i] == 0) in get_max_srate() 1086 if (srates[i] > max_srate) in get_max_srate() 1087 max_srate = srates[i]; in get_max_srate() 1092 static int get_min_srate(const int *srates) in get_min_srate() argument 1097 if (srates[i] == 0) in get_min_srate() 1099 if (srates[i] < min_srate) in get_min_srate() 1100 min_srate = srates[i]; in get_min_srate() 1108 const int *srates; in u_audio_rate_info() local 1118 srates = params->c_srates; in u_audio_rate_info() [all …]
|
D | f_uac2.c | 656 DECLARE_UAC2_CNTRL_RANGES_LAY3(srates, UAC_MAX_RATES); 658 static int get_max_srate(const int *srates) in get_max_srate() argument 663 if (srates[i] == 0) in get_max_srate() 665 if (srates[i] > max_srate) in get_max_srate() 666 max_srate = srates[i]; in get_max_srate() 1618 int *srates; in in_rq_range() local 1621 srates = opts->p_srates; in in_rq_range() 1623 srates = opts->c_srates; in in_rq_range() 1627 srate = srates[i]; in in_rq_range()
|
/linux-6.12.1/sound/soc/codecs/ |
D | wm8983.c | 118 static const int srates[] = { 48000, 32000, 24000, 16000, 12000, 8000 }; variable 693 srate_best = abs(srates[0] - params_rate(params)); in wm8983_hw_params() 694 for (i = 1; i < ARRAY_SIZE(srates); ++i) { in wm8983_hw_params() 695 if (abs(srates[i] - params_rate(params)) >= srate_best) in wm8983_hw_params() 698 srate_best = abs(srates[i] - params_rate(params)); in wm8983_hw_params() 701 dev_dbg(dai->dev, "Selected SRATE = %d\n", srates[srate_idx]); in wm8983_hw_params()
|
D | wm8985.c | 208 static const int srates[] = { 48000, 32000, 24000, 16000, 12000, 8000 }; variable 791 srate_best = abs(srates[0] - params_rate(params)); in wm8985_hw_params() 792 for (i = 1; i < ARRAY_SIZE(srates); ++i) { in wm8985_hw_params() 793 if (abs(srates[i] - params_rate(params)) >= srate_best) in wm8985_hw_params() 796 srate_best = abs(srates[i] - params_rate(params)); in wm8985_hw_params() 799 dev_dbg(dai->dev, "Selected SRATE = %d\n", srates[srate_idx]); in wm8985_hw_params()
|
/linux-6.12.1/sound/soc/sof/ |
D | sof-priv.h | 80 #define SOF_DAI_STREAM(sname, scmin, scmax, srates, sfmt) \ argument 82 .rates = srates, .formats = sfmt}
|
/linux-6.12.1/net/mac80211/ |
D | parse.c | 1028 const u8 *srates, int srates_len, u32 *rates) in ieee80211_parse_bitrates() argument 1037 rate = srates[i] & 0x7f; in ieee80211_parse_bitrates()
|
D | ieee80211_i.h | 2555 const u8 *srates, int srates_len, u32 *rates);
|