Lines Matching refs:sparams
878 struct snd_pcm_sw_params sparams;
962 memset(&sparams, 0, sizeof(sparams));
963 sparams.tstamp_mode = SNDRV_PCM_TSTAMP_ENABLE;
964 sparams.period_step = 1;
968 pcm->config.start_threshold = sparams.start_threshold = 1;
970 pcm->config.start_threshold = sparams.start_threshold =
973 sparams.start_threshold = config->start_threshold;
978 pcm->config.stop_threshold = sparams.stop_threshold =
981 pcm->config.stop_threshold = sparams.stop_threshold =
985 sparams.stop_threshold = config->stop_threshold;
989 pcm->config.avail_min = sparams.avail_min = pcm->config.period_size;
991 pcm->config.avail_min = sparams.avail_min = 1;
993 sparams.avail_min = config->avail_min;
995 sparams.xfer_align = config->period_size / 2; /* needed for old kernels */
996 sparams.silence_threshold = config->silence_threshold;
997 sparams.silence_size = config->silence_size;
998 pcm->boundary = sparams.boundary = pcm->buffer_size;
1003 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, &sparams)) {