Lines Matching refs:sparams
90 struct snd_pcm_sw_params *sparams;
137 sparams = (struct snd_pcm_sw_params*) calloc(1, sizeof(struct snd_pcm_sw_params));
138 if (!sparams) {
142 sparams->tstamp_mode = SNDRV_PCM_TSTAMP_NONE;
143 sparams->period_step = 1;
146 sparams->avail_min = pcm->period_size/2;
147 sparams->xfer_align = pcm->period_size/2;
149 sparams->avail_min = pcm->period_size/8;
150 sparams->xfer_align = pcm->period_size/8;
152 sparams->avail_min = pcm->period_size/12;
153 sparams->xfer_align = pcm->period_size/12;
155 sparams->avail_min = pcm->period_size/4;
156 sparams->xfer_align = pcm->period_size/4;
159 sparams->start_threshold = 1;
160 sparams->stop_threshold = INT_MAX;
161 sparams->silence_size = 0;
162 sparams->silence_threshold = 0;
164 if (param_set_sw_params(pcm, sparams)) {
169 fprintf (stderr,"avail_min (%lu)\n", sparams->avail_min);
170 fprintf (stderr,"start_threshold (%lu)\n", sparams->start_threshold);
171 fprintf (stderr,"stop_threshold (%lu)\n", sparams->stop_threshold);
172 fprintf (stderr,"xfer_align (%lu)\n", sparams->xfer_align);