Lines Matching refs:params
85 struct snd_pcm_hw_params *params; in set_params() local
93 params = (struct snd_pcm_hw_params*) calloc(1, sizeof(struct snd_pcm_hw_params)); in set_params()
94 if (!params) { in set_params()
99 param_init(params); in set_params()
101 param_set_mask(params, SNDRV_PCM_HW_PARAM_ACCESS, in set_params()
103 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); in set_params()
104 param_set_mask(params, SNDRV_PCM_HW_PARAM_SUBFORMAT, in set_params()
107 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, period); in set_params()
109 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 10); in set_params()
110 param_set_int(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 16); in set_params()
111 param_set_int(params, SNDRV_PCM_HW_PARAM_FRAME_BITS, in set_params()
113 param_set_int(params, SNDRV_PCM_HW_PARAM_CHANNELS, in set_params()
115 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); in set_params()
116 param_set_hw_refine(pcm, params); in set_params()
118 if (param_set_hw_params(pcm, params)) { in set_params()
123 param_dump(params); in set_params()
125 pcm->buffer_size = pcm_buffer_size(params); in set_params()
126 pcm->period_size = pcm_period_size(params); in set_params()