Home
last modified time | relevance | path

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

/sound/core/
Dpcm_lib.c1152 struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; in snd_pcm_hw_rule_add() local
1157 if (constrs->rules_num >= constrs->rules_all) { in snd_pcm_hw_rule_add()
1159 unsigned int new_rules = constrs->rules_all + 16; in snd_pcm_hw_rule_add()
1165 if (constrs->rules) { in snd_pcm_hw_rule_add()
1166 memcpy(new, constrs->rules, in snd_pcm_hw_rule_add()
1167 constrs->rules_num * sizeof(*c)); in snd_pcm_hw_rule_add()
1168 kfree(constrs->rules); in snd_pcm_hw_rule_add()
1170 constrs->rules = new; in snd_pcm_hw_rule_add()
1171 constrs->rules_all = new_rules; in snd_pcm_hw_rule_add()
1173 c = &constrs->rules[constrs->rules_num]; in snd_pcm_hw_rule_add()
[all …]
Dpcm_native.c284 struct snd_pcm_hw_constraints *constrs = &substream->runtime->hw_constraints; in snd_pcm_hw_refine() local
285 unsigned int rstamps[constrs->rules_num]; in snd_pcm_hw_refine()
309 changed = snd_mask_refine(m, constrs_mask(constrs, k)); in snd_pcm_hw_refine()
335 changed = snd_interval_refine(i, constrs_interval(constrs, k)); in snd_pcm_hw_refine()
350 for (k = 0; k < constrs->rules_num; k++) in snd_pcm_hw_refine()
356 for (k = 0; k < constrs->rules_num; k++) { in snd_pcm_hw_refine()
357 struct snd_pcm_hw_rule *r = &constrs->rules[k]; in snd_pcm_hw_refine()
2042 struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; in snd_pcm_hw_constraints_init() local
2046 snd_mask_any(constrs_mask(constrs, k)); in snd_pcm_hw_constraints_init()
2050 snd_interval_any(constrs_interval(constrs, k)); in snd_pcm_hw_constraints_init()
[all …]