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