Lines Matching refs:sparams
86 struct snd_pcm_sw_params *sparams; in set_params() local
133 sparams = (struct snd_pcm_sw_params*) calloc(1, sizeof(struct snd_pcm_sw_params)); in set_params()
134 if (!sparams) { in set_params()
139 sparams->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; in set_params()
140 sparams->period_step = 1; in set_params()
142 sparams->avail_min = pcm->period_size/(channels * 2) ; in set_params()
143 sparams->start_threshold = pcm->period_size/(channels * 2) ; in set_params()
144 sparams->stop_threshold = pcm->buffer_size ; in set_params()
145 sparams->xfer_align = pcm->period_size/(channels * 2) ; /* needed for old kernels */ in set_params()
147 sparams->silence_size = 0; in set_params()
148 sparams->silence_threshold = 0; in set_params()
150 if (param_set_sw_params(pcm, sparams)) { in set_params()
155 fprintf (stderr,"sparams->avail_min= %lu\n", sparams->avail_min); in set_params()
156 fprintf (stderr," sparams->start_threshold= %lu\n", sparams->start_threshold); in set_params()
157 fprintf (stderr," sparams->stop_threshold= %lu\n", sparams->stop_threshold); in set_params()
158 fprintf (stderr," sparams->xfer_align= %lu\n", sparams->xfer_align); in set_params()
159 fprintf (stderr," sparams->boundary= %lu\n", sparams->boundary); in set_params()