Lines Matching refs:sparams
614 struct snd_pcm_sw_params sparams;
693 memset(&sparams, 0, sizeof(sparams));
694 sparams.tstamp_mode = SNDRV_PCM_TSTAMP_ENABLE;
695 sparams.period_step = 1;
699 pcm->config.start_threshold = sparams.start_threshold = 1;
701 pcm->config.start_threshold = sparams.start_threshold =
704 sparams.start_threshold = config->start_threshold;
709 pcm->config.stop_threshold = sparams.stop_threshold =
712 pcm->config.stop_threshold = sparams.stop_threshold =
716 sparams.stop_threshold = config->stop_threshold;
720 pcm->config.avail_min = sparams.avail_min = pcm->config.period_size;
722 pcm->config.avail_min = sparams.avail_min = 1;
724 sparams.avail_min = config->avail_min;
726 sparams.xfer_align = config->period_size / 2; /* needed for old kernels */
727 sparams.silence_size = 0;
728 sparams.silence_threshold = config->silence_threshold;
729 pcm->boundary = sparams.boundary = pcm->buffer_size;
734 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, &sparams)) {