Searched refs:srates (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/usb/gadget/function/ |
D | u_audio.c | 1054 static int get_max_srate(const int *srates) in get_max_srate() argument 1059 if (srates[i] == 0) in get_max_srate() 1061 if (srates[i] > max_srate) in get_max_srate() 1062 max_srate = srates[i]; in get_max_srate() 1067 static int get_min_srate(const int *srates) in get_min_srate() argument 1072 if (srates[i] == 0) in get_min_srate() 1074 if (srates[i] < min_srate) in get_min_srate() 1075 min_srate = srates[i]; in get_min_srate() 1083 const int *srates; in u_audio_rate_info() local 1093 srates = params->c_srates; in u_audio_rate_info() [all …]
|
D | f_uac2.c | 669 DECLARE_UAC2_CNTRL_RANGES_LAY3(srates, UAC_MAX_RATES); 671 static int get_max_srate(const int *srates) in get_max_srate() argument 676 if (srates[i] == 0) in get_max_srate() 678 if (srates[i] > max_srate) in get_max_srate() 679 max_srate = srates[i]; in get_max_srate() 1609 int *srates; in in_rq_range() local 1612 srates = opts->p_srates; in in_rq_range() 1614 srates = opts->c_srates; in in_rq_range() 1618 srate = srates[i]; in in_rq_range()
|
/linux-6.6.21/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.6.21/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.6.21/net/mac80211/ |
D | ieee80211_i.h | 2504 const u8 *srates, int srates_len, u32 *rates);
|
D | util.c | 4012 const u8 *srates, int srates_len, u32 *rates) in ieee80211_parse_bitrates() argument 4022 rate = srates[i] & 0x7f; in ieee80211_parse_bitrates()
|