Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 25) sorted by relevance

/sound/core/
Dpcm_drm_eld.c29 struct snd_pcm_hw_rule *rule) in eld_limit_rates() argument
31 struct snd_interval *r = hw_param_interval(params, rule->var); in eld_limit_rates()
34 const u8 *sad, *eld = rule->private; in eld_limit_rates()
57 struct snd_pcm_hw_rule *rule) in eld_limit_channels() argument
59 struct snd_interval *c = hw_param_interval(params, rule->var); in eld_limit_channels()
63 const u8 *sad, *eld = rule->private; in eld_limit_channels()
Dpcm_lib.c1287 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_list() argument
1289 struct snd_pcm_hw_constraint_list *list = rule->private; in snd_pcm_hw_rule_list()
1290 …return snd_interval_list(hw_param_interval(params, rule->var), list->count, list->list, list->mask… in snd_pcm_hw_rule_list()
1318 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_ranges() argument
1320 struct snd_pcm_hw_constraint_ranges *r = rule->private; in snd_pcm_hw_rule_ranges()
1321 return snd_interval_ranges(hw_param_interval(params, rule->var), in snd_pcm_hw_rule_ranges()
1349 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_ratnums() argument
1351 const struct snd_pcm_hw_constraint_ratnums *r = rule->private; in snd_pcm_hw_rule_ratnums()
1354 err = snd_interval_ratnum(hw_param_interval(params, rule->var), in snd_pcm_hw_rule_ratnums()
1356 if (err >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in snd_pcm_hw_rule_ratnums()
[all …]
Dpcm_native.c1922 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_mul() argument
1925 snd_interval_mul(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_mul()
1926 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_mul()
1927 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_mul()
1931 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_div() argument
1934 snd_interval_div(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_div()
1935 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_div()
1936 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_div()
1940 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_muldivk() argument
1943 snd_interval_muldivk(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_muldivk()
[all …]
/sound/firewire/bebob/
Dbebob_pcm.c12 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
14 struct snd_bebob_stream_formation *formations = rule->private; in hw_rule_rate()
40 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
42 struct snd_bebob_stream_formation *formations = rule->private; in hw_rule_channels()
/sound/firewire/fireworks/
Dfireworks_pcm.c65 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
67 unsigned int *pcm_channels = rule->private; in hw_rule_rate()
90 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
92 unsigned int *pcm_channels = rule->private; in hw_rule_channels()
/sound/firewire/dice/
Ddice-pcm.c13 struct snd_pcm_hw_rule *rule) in dice_rate_constraint() argument
15 struct snd_pcm_substream *substream = rule->private; in dice_rate_constraint()
48 struct snd_pcm_hw_rule *rule) in dice_channels_constraint() argument
50 struct snd_pcm_substream *substream = rule->private; in dice_channels_constraint()
/sound/firewire/oxfw/
Doxfw-pcm.c11 struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
13 u8 **formats = rule->private; in hw_rule_rate()
42 struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
44 u8 **formats = rule->private; in hw_rule_channels()
/sound/drivers/
Daloop.c616 struct snd_pcm_hw_rule *rule) in rule_format() argument
618 struct loopback_pcm *dpcm = rule->private; in rule_format()
627 return snd_mask_refine(hw_param_mask(params, rule->var), &m); in rule_format()
631 struct snd_pcm_hw_rule *rule) in rule_rate() argument
633 struct loopback_pcm *dpcm = rule->private; in rule_rate()
643 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_rate()
647 struct snd_pcm_hw_rule *rule) in rule_channels() argument
649 struct loopback_pcm *dpcm = rule->private; in rule_channels()
659 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_channels()
/sound/ppc/
Dpmac.c554 struct snd_pcm_hw_rule *rule)
556 struct snd_pmac *chip = rule->private;
557 struct pmac_stream *rec = snd_pmac_get_stream(chip, rule->deps[0]);
568 return snd_interval_list(hw_param_interval(params, rule->var),
573 struct snd_pcm_hw_rule *rule)
575 struct snd_pmac *chip = rule->private;
576 struct pmac_stream *rec = snd_pmac_get_stream(chip, rule->deps[0]);
/sound/usb/
Dpcm.c922 struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
924 struct snd_usb_substream *subs = rule->private; in hw_rule_rate()
974 struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
976 struct snd_usb_substream *subs = rule->private; in hw_rule_channels()
1025 struct snd_pcm_hw_rule *rule) in hw_rule_format() argument
1027 struct snd_usb_substream *subs = rule->private; in hw_rule_format()
1056 struct snd_pcm_hw_rule *rule) in hw_rule_period_time() argument
1058 struct snd_usb_substream *subs = rule->private; in hw_rule_period_time()
/sound/firewire/digi00x/
Ddigi00x-pcm.c12 struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
36 struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
/sound/soc/atmel/
Datmel_ssc_dai.c208 struct snd_pcm_hw_rule *rule) in atmel_ssc_hw_rule_rate() argument
210 struct atmel_ssc_info *ssc_p = rule->private; in atmel_ssc_hw_rule_rate()
212 struct snd_interval *i = hw_param_interval(params, rule->var); in atmel_ssc_hw_rule_rate()
256 if (ret >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in atmel_ssc_hw_rule_rate()
/sound/soc/davinci/
Ddavinci-mcasp.c1131 struct snd_pcm_hw_rule *rule) in davinci_mcasp_hw_rule_slot_width() argument
1133 struct davinci_mcasp_ruledata *rd = rule->private; in davinci_mcasp_hw_rule_slot_width()
1160 struct snd_pcm_hw_rule *rule) in davinci_mcasp_hw_rule_rate() argument
1162 struct davinci_mcasp_ruledata *rd = rule->private; in davinci_mcasp_hw_rule_rate()
1197 return snd_interval_refine(hw_param_interval(params, rule->var), in davinci_mcasp_hw_rule_rate()
1202 struct snd_pcm_hw_rule *rule) in davinci_mcasp_hw_rule_format() argument
1204 struct davinci_mcasp_ruledata *rd = rule->private; in davinci_mcasp_hw_rule_format()
/sound/arm/
Daaci.c384 struct snd_pcm_hw_rule *rule) in aaci_rule_channels() argument
387 struct aaci *aaci = rule->private; in aaci_rule_channels()
398 return snd_interval_list(hw_param_interval(p, rule->var), in aaci_rule_channels()
/sound/pci/ac97/
Dac97_pcm.c699 struct snd_pcm_hw_rule *rule) in double_rate_hw_constraint_rate() argument
714 struct snd_pcm_hw_rule *rule) in double_rate_hw_constraint_channels() argument
/sound/isa/sb/
Dsb8_main.c77 struct snd_pcm_hw_rule *rule) in snd_sb8_hw_constraint_rate_channels() argument
94 struct snd_pcm_hw_rule *rule) in snd_sb8_hw_constraint_channels_rate() argument
/sound/pci/rme9652/
Drme9652.c2208 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_channels() argument
2210 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_channels()
2217 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_channels_rate() argument
2219 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_channels_rate()
2241 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_rate_channels() argument
2243 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_rate_channels()
Dhdsp.c4261 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_in_channels() argument
4263 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels()
4280 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_out_channels() argument
4283 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels()
4298 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_in_channels_rate() argument
4300 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels_rate()
4329 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_out_channels_rate() argument
4331 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels_rate()
4360 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_rate_out_channels() argument
4362 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_out_channels()
[all …]
Dhdspm.c5880 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_in_channels_rate() argument
5882 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate()
5915 struct snd_pcm_hw_rule * rule) in snd_hdspm_hw_rule_out_channels_rate() argument
5917 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate()
5950 struct snd_pcm_hw_rule * rule) in snd_hdspm_hw_rule_rate_in_channels() argument
5952 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels()
5984 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_rate_out_channels() argument
5986 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels()
6019 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_in_channels() argument
6022 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels()
[all …]
/sound/pci/echoaudio/
Dechoaudio.c119 struct snd_pcm_hw_rule *rule) in hw_rule_capture_format_by_channels() argument
147 struct snd_pcm_hw_rule *rule) in hw_rule_capture_channels_by_format() argument
181 struct snd_pcm_hw_rule *rule) in hw_rule_playback_format_by_channels() argument
216 struct snd_pcm_hw_rule *rule) in hw_rule_playback_channels_by_format() argument
254 struct snd_pcm_hw_rule *rule) in hw_rule_sample_rate() argument
258 struct echoaudio *chip = rule->private; in hw_rule_sample_rate()
/sound/soc/omap/
Domap-mcbsp.c93 struct snd_pcm_hw_rule *rule) in omap_mcbsp_hwrule_min_buffersize() argument
99 struct omap_mcbsp *mcbsp = rule->private; in omap_mcbsp_hwrule_min_buffersize()
DKconfig65 a simple rule like this one should do the trick (it does for me):
/sound/soc/codecs/
Dpcm512x.c492 struct snd_pcm_hw_rule *rule) in pcm512x_hw_rule_rate() argument
494 struct pcm512x_priv *pcm512x = rule->private; in pcm512x_hw_rule_rate()
521 return snd_interval_ranges(hw_param_interval(params, rule->var), in pcm512x_hw_rule_rate()
/sound/sparc/
Ddbri.c1999 struct snd_pcm_hw_rule *rule) in snd_hw_rule_format() argument
2015 struct snd_pcm_hw_rule *rule) in snd_hw_rule_channels() argument
/sound/pci/
Dsonicvibes.c558 struct snd_pcm_hw_rule *rule) in snd_sonicvibes_hw_constraint_dac_rate() argument