Lines Matching refs:hw
72 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, in limit_channels_and_rates() argument
78 hw->channels_min = UINT_MAX; in limit_channels_and_rates()
79 hw->channels_max = 0; in limit_channels_and_rates()
80 hw->rate_min = UINT_MAX; in limit_channels_and_rates()
81 hw->rate_max = 0; in limit_channels_and_rates()
94 hw->channels_min = min(hw->channels_min, channels); in limit_channels_and_rates()
95 hw->channels_max = max(hw->channels_max, channels); in limit_channels_and_rates()
98 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
99 hw->rate_min = min(hw->rate_min, rate); in limit_channels_and_rates()
100 hw->rate_max = max(hw->rate_max, rate); in limit_channels_and_rates()
113 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
117 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
122 limit_channels_and_rates(&runtime->hw, pcm_channels); in pcm_init_hw_params()
178 substream->runtime->hw.rate_min = rate; in pcm_open()
179 substream->runtime->hw.rate_max = rate; in pcm_open()
186 substream->runtime->hw.rate_min = rate; in pcm_open()
187 substream->runtime->hw.rate_max = rate; in pcm_open()