/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A 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 in u_audio_rate_info() [all...] |
H A 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()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
H A D | sof-priv.h | 46 #define SOF_DAI_STREAM(sname, scmin, scmax, srates, sfmt) \ 48 .rates = srates, .formats = sfmt}
|
/kernel/linux/linux-6.6/sound/soc/sof/ |
H A D | sof-priv.h | 80 #define SOF_DAI_STREAM(sname, scmin, scmax, srates, sfmt) \ 82 .rates = srates, .formats = sfmt}
|
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | util.c | 3507 const u8 *srates, int srates_len, u32 *rates) in ieee80211_parse_bitrates() 3517 rate = srates[i] & 0x7f; in ieee80211_parse_bitrates() 3505 ieee80211_parse_bitrates(struct cfg80211_chan_def *chandef, const struct ieee80211_supported_band *sband, const u8 *srates, int srates_len, u32 *rates) ieee80211_parse_bitrates() argument
|
H A D | ieee80211_i.h | 2224 const u8 *srates, int srates_len, u32 *rates);
|
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | ieee80211_i.h | 2504 const u8 *srates, int srates_len, u32 *rates);
|
H A D | util.c | 4012 const u8 *srates, int srates_len, u32 *rates) in ieee80211_parse_bitrates() 4022 rate = srates[i] & 0x7f; in ieee80211_parse_bitrates() 4010 ieee80211_parse_bitrates(enum nl80211_chan_width width, const struct ieee80211_supported_band *sband, const u8 *srates, int srates_len, u32 *rates) ieee80211_parse_bitrates() argument
|