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