Home
last modified time | relevance | path

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

/sound/core/
Dpcm_lib.c1156 struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; in snd_pcm_hw_rule_add() local
1161 if (constrs->rules_num >= constrs->rules_all) { in snd_pcm_hw_rule_add()
1163 unsigned int new_rules = constrs->rules_all + 16; in snd_pcm_hw_rule_add()
1169 if (constrs->rules) { in snd_pcm_hw_rule_add()
1170 memcpy(new, constrs->rules, in snd_pcm_hw_rule_add()
1171 constrs->rules_num * sizeof(*c)); in snd_pcm_hw_rule_add()
1172 kfree(constrs->rules); in snd_pcm_hw_rule_add()
1174 constrs->rules = new; in snd_pcm_hw_rule_add()
1175 constrs->rules_all = new_rules; in snd_pcm_hw_rule_add()
1177 c = &constrs->rules[constrs->rules_num]; in snd_pcm_hw_rule_add()
[all …]
Dpcm_native.c171 struct snd_pcm_hw_constraints *constrs = &substream->runtime->hw_constraints; in snd_pcm_hw_refine() local
172 unsigned int rstamps[constrs->rules_num]; in snd_pcm_hw_refine()
196 changed = snd_mask_refine(m, constrs_mask(constrs, k)); in snd_pcm_hw_refine()
222 changed = snd_interval_refine(i, constrs_interval(constrs, k)); in snd_pcm_hw_refine()
237 for (k = 0; k < constrs->rules_num; k++) in snd_pcm_hw_refine()
243 for (k = 0; k < constrs->rules_num; k++) { in snd_pcm_hw_refine()
244 struct snd_pcm_hw_rule *r = &constrs->rules[k]; in snd_pcm_hw_refine()
1829 struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; in snd_pcm_hw_constraints_init() local
1833 snd_mask_any(constrs_mask(constrs, k)); in snd_pcm_hw_constraints_init()
1837 snd_interval_any(constrs_interval(constrs, k)); in snd_pcm_hw_constraints_init()
[all …]