Home
last modified time | relevance | path

Searched refs:constrs (Results 1 – 2 of 2) sorted by relevance

/sound/core/
Dpcm_lib.c870 struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; in snd_pcm_hw_rule_add() local
875 if (constrs->rules_num >= constrs->rules_all) { in snd_pcm_hw_rule_add()
877 unsigned int new_rules = constrs->rules_all + 16; in snd_pcm_hw_rule_add()
881 if (constrs->rules) { in snd_pcm_hw_rule_add()
882 memcpy(new, constrs->rules, in snd_pcm_hw_rule_add()
883 constrs->rules_num * sizeof(*c)); in snd_pcm_hw_rule_add()
884 kfree(constrs->rules); in snd_pcm_hw_rule_add()
886 constrs->rules = new; in snd_pcm_hw_rule_add()
887 constrs->rules_all = new_rules; in snd_pcm_hw_rule_add()
889 c = &constrs->rules[constrs->rules_num]; in snd_pcm_hw_rule_add()
[all …]
Dpcm_native.c167 struct snd_pcm_hw_constraints *constrs = &substream->runtime->hw_constraints; in snd_pcm_hw_refine() local
168 unsigned int rstamps[constrs->rules_num]; in snd_pcm_hw_refine()
192 changed = snd_mask_refine(m, constrs_mask(constrs, k)); in snd_pcm_hw_refine()
218 changed = snd_interval_refine(i, constrs_interval(constrs, k)); in snd_pcm_hw_refine()
233 for (k = 0; k < constrs->rules_num; k++) in snd_pcm_hw_refine()
239 for (k = 0; k < constrs->rules_num; k++) { in snd_pcm_hw_refine()
240 struct snd_pcm_hw_rule *r = &constrs->rules[k]; in snd_pcm_hw_refine()
1782 struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; in snd_pcm_hw_constraints_init() local
1786 snd_mask_any(constrs_mask(constrs, k)); in snd_pcm_hw_constraints_init()
1790 snd_interval_any(constrs_interval(constrs, k)); in snd_pcm_hw_constraints_init()
[all …]