Lines Matching refs:pcm_channels
66 unsigned int *pcm_channels = rule->private; in hw_rule_rate() local
78 if (!snd_interval_test(c, pcm_channels[mode])) in hw_rule_rate()
91 unsigned int *pcm_channels = rule->private; in hw_rule_channels() local
106 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
107 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
114 limit_channels(struct snd_pcm_hardware *hw, unsigned int *pcm_channels) in limit_channels() argument
123 if (pcm_channels[mode] == 0) in limit_channels()
126 hw->channels_min = min(hw->channels_min, pcm_channels[mode]); in limit_channels()
127 hw->channels_max = max(hw->channels_max, pcm_channels[mode]); in limit_channels()
137 unsigned int *pcm_channels; in pcm_init_hw_params() local
143 pcm_channels = efw->pcm_capture_channels; in pcm_init_hw_params()
147 pcm_channels = efw->pcm_playback_channels; in pcm_init_hw_params()
154 limit_channels(&runtime->hw, pcm_channels); in pcm_init_hw_params()
157 hw_rule_channels, pcm_channels, in pcm_init_hw_params()
163 hw_rule_rate, pcm_channels, in pcm_init_hw_params()