Lines Matching refs:hw
68 limit_channels_and_rates(struct snd_pcm_hardware *hw, in limit_channels_and_rates() argument
73 hw->channels_min = UINT_MAX; in limit_channels_and_rates()
74 hw->channels_max = 0; in limit_channels_and_rates()
76 hw->rate_min = UINT_MAX; in limit_channels_and_rates()
77 hw->rate_max = 0; in limit_channels_and_rates()
78 hw->rates = 0; in limit_channels_and_rates()
85 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates()
86 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates()
88 hw->rate_min = min(hw->rate_min, snd_bebob_rate_table[i]); in limit_channels_and_rates()
89 hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]); in limit_channels_and_rates()
90 hw->rates |= snd_pcm_rate_to_rate_bit(snd_bebob_rate_table[i]); in limit_channels_and_rates()
104 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in pcm_init_hw_params()
108 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in pcm_init_hw_params()
113 limit_channels_and_rates(&runtime->hw, formations); in pcm_init_hw_params()
171 substream->runtime->hw.rate_min = sampling_rate; in pcm_open()
172 substream->runtime->hw.rate_max = sampling_rate; in pcm_open()