Lines Matching refs:formations
14 struct snd_bebob_stream_formation *formations = rule->private; in hw_rule_rate() local
26 if (formations[i].pcm == 0) in hw_rule_rate()
29 if (!snd_interval_test(c, formations[i].pcm)) in hw_rule_rate()
42 struct snd_bebob_stream_formation *formations = rule->private; in hw_rule_channels() local
55 if (formations[i].pcm == 0) in hw_rule_channels()
61 t.min = min(t.min, formations[i].pcm); in hw_rule_channels()
62 t.max = max(t.max, formations[i].pcm); in hw_rule_channels()
70 struct snd_bebob_stream_formation *formations) in limit_channels_and_rates() argument
83 if (formations[i].pcm == 0) in limit_channels_and_rates()
86 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates()
87 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates()
101 struct snd_bebob_stream_formation *formations; in pcm_init_hw_params() local
107 formations = bebob->tx_stream_formations; in pcm_init_hw_params()
111 formations = bebob->rx_stream_formations; in pcm_init_hw_params()
114 limit_channels_and_rates(&runtime->hw, formations); in pcm_init_hw_params()
117 hw_rule_channels, formations, in pcm_init_hw_params()
123 hw_rule_rate, formations, in pcm_init_hw_params()