Lines Matching refs:hw
80 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, u8 **formats) in limit_channels_and_rates() argument
85 hw->channels_min = UINT_MAX; in limit_channels_and_rates()
86 hw->channels_max = 0; in limit_channels_and_rates()
88 hw->rate_min = UINT_MAX; in limit_channels_and_rates()
89 hw->rate_max = 0; in limit_channels_and_rates()
90 hw->rates = 0; 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()
118 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in init_hw_params()
122 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in init_hw_params()
127 limit_channels_and_rates(&runtime->hw, formats); in init_hw_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()