Lines Matching refs:formation

21 	struct snd_oxfw_stream_formation formation;  in hw_rule_rate()  local
28 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_rate()
31 if (!snd_interval_test(c, formation.pcm)) in hw_rule_rate()
34 t.min = min(t.min, formation.rate); in hw_rule_rate()
35 t.max = max(t.max, formation.rate); in hw_rule_rate()
49 struct snd_oxfw_stream_formation formation; in hw_rule_channels() local
58 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_channels()
61 if (!snd_interval_test(r, formation.rate)) in hw_rule_channels()
63 if (list[count] == formation.pcm) in hw_rule_channels()
67 if (list[j] == formation.pcm) in hw_rule_channels()
71 list[count] = formation.pcm; in hw_rule_channels()
82 struct snd_oxfw_stream_formation formation; in limit_channels_and_rates() local
96 err = snd_oxfw_stream_parse_format(formats[i], &formation); in limit_channels_and_rates()
100 hw->channels_min = min(hw->channels_min, formation.pcm); in limit_channels_and_rates()
101 hw->channels_max = max(hw->channels_max, formation.pcm); in limit_channels_and_rates()
103 hw->rate_min = min(hw->rate_min, formation.rate); in limit_channels_and_rates()
104 hw->rate_max = max(hw->rate_max, formation.rate); in limit_channels_and_rates()
105 hw->rates |= snd_pcm_rate_to_rate_bit(formation.rate); in limit_channels_and_rates()
149 struct snd_oxfw_stream_formation formation; in limit_to_current_params() local
158 err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); in limit_to_current_params()
162 substream->runtime->hw.channels_min = formation.pcm; in limit_to_current_params()
163 substream->runtime->hw.channels_max = formation.pcm; in limit_to_current_params()
164 substream->runtime->hw.rate_min = formation.rate; in limit_to_current_params()
165 substream->runtime->hw.rate_max = formation.rate; in limit_to_current_params()