Home
last modified time | relevance | path

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

/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/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/core/
Dpcm_lib.c1291 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_list() argument
1293 struct snd_pcm_hw_constraint_list *list = rule->private; in snd_pcm_hw_rule_list()
1294 …return snd_interval_list(hw_param_interval(params, rule->var), list->count, list->list, list->mask… in snd_pcm_hw_rule_list()
1322 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_ratnums() argument
1324 struct snd_pcm_hw_constraint_ratnums *r = rule->private; in snd_pcm_hw_rule_ratnums()
1327 err = snd_interval_ratnum(hw_param_interval(params, rule->var), in snd_pcm_hw_rule_ratnums()
1329 if (err >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in snd_pcm_hw_rule_ratnums()
1358 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_ratdens() argument
1360 struct snd_pcm_hw_constraint_ratdens *r = rule->private; in snd_pcm_hw_rule_ratdens()
1362 int err = snd_interval_ratden(hw_param_interval(params, rule->var), in snd_pcm_hw_rule_ratdens()
[all …]
Dpcm_native.c1870 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_mul() argument
1873 snd_interval_mul(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_mul()
1874 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_mul()
1875 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_mul()
1879 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_div() argument
1882 snd_interval_div(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_div()
1883 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_div()
1884 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_div()
1888 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_muldivk() argument
1891 snd_interval_muldivk(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_muldivk()
[all …]
/sound/drivers/
Daloop.c606 struct snd_pcm_hw_rule *rule) in rule_format() argument
608 struct loopback_pcm *dpcm = rule->private; in rule_format()
617 return snd_mask_refine(hw_param_mask(params, rule->var), &m); in rule_format()
621 struct snd_pcm_hw_rule *rule) in rule_rate() argument
623 struct loopback_pcm *dpcm = rule->private; in rule_rate()
633 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_rate()
637 struct snd_pcm_hw_rule *rule) in rule_channels() argument
639 struct loopback_pcm *dpcm = rule->private; in rule_channels()
649 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.c884 struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
886 struct snd_usb_substream *subs = rule->private; in hw_rule_rate()
936 struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
938 struct snd_usb_substream *subs = rule->private; in hw_rule_channels()
987 struct snd_pcm_hw_rule *rule) in hw_rule_format() argument
989 struct snd_usb_substream *subs = rule->private; in hw_rule_format()
1018 struct snd_pcm_hw_rule *rule) in hw_rule_period_time() argument
1020 struct snd_usb_substream *subs = rule->private; in hw_rule_period_time()
/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/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/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/pci/echoaudio/
Dechoaudio.c117 struct snd_pcm_hw_rule *rule) in hw_rule_capture_format_by_channels() argument
145 struct snd_pcm_hw_rule *rule) in hw_rule_capture_channels_by_format() argument
179 struct snd_pcm_hw_rule *rule) in hw_rule_playback_format_by_channels() argument
214 struct snd_pcm_hw_rule *rule) in hw_rule_playback_channels_by_format() argument
252 struct snd_pcm_hw_rule *rule) in hw_rule_sample_rate() argument
256 struct echoaudio *chip = rule->private; in hw_rule_sample_rate()
/sound/firewire/
Ddice.c318 struct snd_pcm_hw_rule *rule) in dice_rate_constraint() argument
320 struct dice *dice = rule->private; in dice_rate_constraint()
345 struct snd_pcm_hw_rule *rule) in dice_channels_constraint() argument
347 struct dice *dice = rule->private; in dice_channels_constraint()
Dspeakers.c66 struct snd_pcm_hw_rule *rule) in firewave_rate_constraint() argument
81 struct snd_pcm_hw_rule *rule) in firewave_channels_constraint() argument
/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()
DKconfig53 a simple rule like this one should do the trick (it does for me):
/sound/pci/rme9652/
Drme9652.c2228 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_channels() argument
2230 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_channels()
2237 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_channels_rate() argument
2239 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_channels_rate()
2261 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_rate_channels() argument
2263 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_rate_channels()
Dhdsp.c4323 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_in_channels() argument
4325 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels()
4342 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_out_channels() argument
4345 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels()
4360 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_in_channels_rate() argument
4362 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels_rate()
4391 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_out_channels_rate() argument
4393 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels_rate()
4422 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_rate_out_channels() argument
4424 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_out_channels()
[all …]
Dhdspm.c5908 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_in_channels_rate() argument
5910 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate()
5943 struct snd_pcm_hw_rule * rule) in snd_hdspm_hw_rule_out_channels_rate() argument
5945 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate()
5978 struct snd_pcm_hw_rule * rule) in snd_hdspm_hw_rule_rate_in_channels() argument
5980 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels()
6012 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_rate_out_channels() argument
6014 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels()
6047 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_in_channels() argument
6050 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels()
[all …]
/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.c559 struct snd_pcm_hw_rule *rule) in snd_sonicvibes_hw_constraint_dac_rate() argument