• Home
  • Raw
  • Download

Lines Matching refs:hw

106 	vss->hw.info =  in virtsnd_pcm_build_hw()
121 vss->hw.channels_min = info->channels_min; in virtsnd_pcm_build_hw()
122 vss->hw.channels_max = info->channels_max; in virtsnd_pcm_build_hw()
126 vss->hw.formats = 0; in virtsnd_pcm_build_hw()
139 vss->hw.formats |= pcm_format_to_bits(alsa_fmt); in virtsnd_pcm_build_hw()
142 if (!vss->hw.formats) { in virtsnd_pcm_build_hw()
151 vss->hw.rates = 0; in virtsnd_pcm_build_hw()
155 if (!vss->hw.rate_min || in virtsnd_pcm_build_hw()
156 vss->hw.rate_min > g_v2a_rate_map[i].rate) in virtsnd_pcm_build_hw()
157 vss->hw.rate_min = g_v2a_rate_map[i].rate; in virtsnd_pcm_build_hw()
159 if (vss->hw.rate_max < g_v2a_rate_map[i].rate) in virtsnd_pcm_build_hw()
160 vss->hw.rate_max = g_v2a_rate_map[i].rate; in virtsnd_pcm_build_hw()
162 vss->hw.rates |= g_v2a_rate_map[i].alsa_bit; in virtsnd_pcm_build_hw()
165 if (!vss->hw.rates) { in virtsnd_pcm_build_hw()
172 vss->hw.periods_min = pcm_periods_min; in virtsnd_pcm_build_hw()
173 vss->hw.periods_max = pcm_periods_max; in virtsnd_pcm_build_hw()
182 vss->hw.buffer_bytes_max = in virtsnd_pcm_build_hw()
183 PAGE_ALIGN(sample_max * vss->hw.channels_max * pcm_buffer_ms * in virtsnd_pcm_build_hw()
184 (vss->hw.rate_max / MSEC_PER_SEC)); in virtsnd_pcm_build_hw()
193 vss->hw.period_bytes_min = in virtsnd_pcm_build_hw()
194 sample_min * vss->hw.channels_min * pcm_period_ms_min * in virtsnd_pcm_build_hw()
195 (vss->hw.rate_min / MSEC_PER_SEC); in virtsnd_pcm_build_hw()
201 vss->hw.period_bytes_max = in virtsnd_pcm_build_hw()
202 sample_max * vss->hw.channels_max * pcm_period_ms_max * in virtsnd_pcm_build_hw()
203 (vss->hw.rate_max / MSEC_PER_SEC); in virtsnd_pcm_build_hw()