Lines Matching refs:params
89 struct snd_pcm_hw_params *params; in set_params() local
96 params = (struct snd_pcm_hw_params*) calloc(1, sizeof(struct snd_pcm_hw_params)); in set_params()
97 if (!params) { in set_params()
102 param_init(params); in set_params()
104 param_set_mask(params, SNDRV_PCM_HW_PARAM_ACCESS, in set_params()
106 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); in set_params()
107 param_set_mask(params, SNDRV_PCM_HW_PARAM_SUBFORMAT, in set_params()
110 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, period); in set_params()
112 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 10); in set_params()
113 param_set_int(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 16); in set_params()
114 param_set_int(params, SNDRV_PCM_HW_PARAM_FRAME_BITS, in set_params()
116 param_set_int(params, SNDRV_PCM_HW_PARAM_CHANNELS, in set_params()
118 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); in set_params()
120 param_set_hw_refine(pcm, params); in set_params()
122 if (param_set_hw_params(pcm, params)) { in set_params()
127 param_dump(params); in set_params()
129 pcm->buffer_size = pcm_buffer_size(params); in set_params()
130 pcm->period_size = pcm_period_size(params); in set_params()