/sound/core/ |
D | pcm_drm_eld.c | 29 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()
|
D | pcm_lib.c | 1287 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 …]
|
D | pcm_native.c | 1922 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/ |
D | bebob_pcm.c | 12 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/ |
D | fireworks_pcm.c | 65 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/ |
D | dice-pcm.c | 13 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/ |
D | oxfw-pcm.c | 11 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/ |
D | aloop.c | 616 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/ |
D | pmac.c | 554 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/ |
D | pcm.c | 922 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/ |
D | digi00x-pcm.c | 12 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/ |
D | atmel_ssc_dai.c | 208 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/ |
D | davinci-mcasp.c | 1131 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/ |
D | aaci.c | 384 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/ |
D | ac97_pcm.c | 699 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/ |
D | sb8_main.c | 77 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/ |
D | rme9652.c | 2208 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()
|
D | hdsp.c | 4261 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 …]
|
D | hdspm.c | 5880 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/ |
D | echoaudio.c | 119 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/ |
D | omap-mcbsp.c | 93 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()
|
D | Kconfig | 65 a simple rule like this one should do the trick (it does for me):
|
/sound/soc/codecs/ |
D | pcm512x.c | 492 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/ |
D | dbri.c | 1999 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/ |
D | sonicvibes.c | 558 struct snd_pcm_hw_rule *rule) in snd_sonicvibes_hw_constraint_dac_rate() argument
|